shwstppr commented on issue #8034:
URL: https://github.com/apache/cloudstack/issues/8034#issuecomment-1746352864

   I did not see the problem if the snapshot file on secondary store is rebased 
while backing up,
   ```
   diff --git a/scripts/storage/qcow2/managesnapshot.sh 
b/scripts/storage/qcow2/managesnapshot.sh
   index 2daa768347..1c840d34d2 100755
   --- a/scripts/storage/qcow2/managesnapshot.sh
   +++ b/scripts/storage/qcow2/managesnapshot.sh
   @@ -230,7 +230,12 @@ backup_snapshot() {
          #Backup volume snapshot
          cp "$disk" "${destPath}/${destName}"
          ret_code=$?
   -
   +      if [ $ret_code -gt 0 ]
   +      then
   +        printf "Failed to copy $snapshotname for disk $disk to $destPath\n" 
>&2
   +        return 2
   +      fi
   +      qemuimg_ret=$($qemu_img rebase -b "" "${destPath}/${destName}" 2>&1)
          if [ $ret_code -gt 0 ]
          then
            printf "Failed to backup $snapshotname for disk $disk to 
$destPath\n" >&2
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to