-
I am able to take backups of instances, and use "Restore Instance backup" to restore an instance while it is shut down. However, if I use the "Restore and attach backup volume" to attach a backup to another instance to recover files, what happens is it attaches the qcow2 file as raw, which I would expect is not the intended behavior? Test environment is ACS 4.20, all KVM / NFS. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
@yyzkevin, what is the source primary storage type? Is it NFS? |
Beta Was this translation helpful? Give feedback.
-
I notice that the format does not get set on the new volume, resulting in a null value, leading to the attachment as raw? |
Beta Was this translation helpful? Give feedback.
-
Hi @yyzkevin, I’m looking into this and would appreciate a few details to help debug: Also, if the destination instance was running during restore, there could be hot-plugging issues. Could you try the same with the instance in a stopped state? Thanks! |
Beta Was this translation helpful? Give feedback.
-
I am closing this discussion. @yyzkevin please open more issues if you come across any. |
Beta Was this translation helpful? Give feedback.
There is a bug in CloudStack where the disk format isn’t correctly set in the volumes table. As a result, the domain XML generated by CloudStack specifies raw, which causes virsh qemu-monitor-command to report the format as raw, even though the actual image is qcow2 (as confirmed by you and qemu-img info below).
I’ve been able to reproduce this and will raise a PR to fix the incorrect DB entry. Just to confirm—do you see any other issues related to this?