block migration of qcow2 VMs copies all empty space
Public bug reported:
I'm running openstack 2012.1 'icehouse' which, ultimately, calls down into qemu-system-x86 2.0.0+dfsg-2ubuntu1.10.
I primed the process by copying all necessary base images onto the destination host. Nonetheless, post-migration instances are much larger than the original image; the copy duplicated all the empty space that ought to have remained copy-on-write.
It looks like there was some attempt to address this issue in the past (e.g. https://bugzilla.redhat.com/show_bug.cgi?id=1058173 ) but perhaps I'm conflating two different issues.
** Affects: qemu
Importance: Undecided
Status: New
Signature · 25 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1449687 Title: block migration of qcow2 VMs copies all empty space Status in QEMU: New Bug description: I'm running openstack 2012.1 'icehouse' which, ultimately, calls down into qemu-system-x86 2.0.0+dfsg-2ubuntu1.10. I primed the process by copying all necessary base images onto the destination host. Nonetheless, post-migration instances are much larger than the original image; the copy duplicated all the empty space that ought to have remained copy-on-write. It looks like there was some attempt to address this issue in the past (e.g. https://bugzilla.redhat.com/show_bug.cgi?id=1058173 ) but perhaps I'm conflating two different issues. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1449687/+subscriptions
Did you paste the wrong Red Hat bugzilla link?
https://bugzilla.redhat.com/show_bug.cgi?id=1058173
I don't see how this BZ is related to expanded disk image files after migration.
** Bug watch added: Red Hat Bugzilla #1058173
https://bugzilla.redhat.com/show_bug.cgi?id=1058173
Signature · 25 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1449687 Title: block migration of qcow2 VMs copies all empty space Status in QEMU: New Bug description: I'm running openstack 2012.1 'icehouse' which, ultimately, calls down into qemu-system-x86 2.0.0+dfsg-2ubuntu1.10. I primed the process by copying all necessary base images onto the destination host. Nonetheless, post-migration instances are much larger than the original image; the copy duplicated all the empty space that ought to have remained copy-on-write. It looks like there was some attempt to address this issue in the past (e.g. https://bugzilla.redhat.com/show_bug.cgi?id=1058173 ) but perhaps I'm conflating two different issues. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1449687/+subscriptions
You're right, clearly that was a c/p fail. I can't for the life of me find the bug that I was trying to refer to :(
** Description changed:
I'm running openstack 2012.1 'icehouse' which, ultimately, calls down into qemu-system-x86 2.0.0+dfsg-2ubuntu1.10.
I primed the process by copying all necessary base images onto the destination host. Nonetheless, post-migration instances are much larger than the original image; the copy duplicated all the empty space that ought to have remained copy-on-write.
-
- It looks like there was some attempt to address this issue in the past
- (e.g. https://bugzilla.redhat.com/show_bug.cgi?id=1058173 ) but perhaps
- I'm conflating two different issues.
Signature · 21 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1449687 Title: block migration of qcow2 VMs copies all empty space Status in QEMU: New Bug description: I'm running openstack 2012.1 'icehouse' which, ultimately, calls down into qemu-system-x86 2.0.0+dfsg-2ubuntu1.10. I primed the process by copying all necessary base images onto the destination host. Nonetheless, post-migration instances are much larger than the original image; the copy duplicated all the empty space that ought to have remained copy-on-write. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1449687/+subscriptions
I found a relevant Fedora bug here:
https://bugzilla.redhat.com/show_bug.cgi?id=817700
** Bug watch removed: Red Hat Bugzilla #1058173
https://bugzilla.redhat.com/show_bug.cgi?id=1058173
** Bug watch added: Red Hat Bugzilla #817700
https://bugzilla.redhat.com/show_bug.cgi?id=817700
Signature · 21 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1449687 Title: block migration of qcow2 VMs copies all empty space Status in QEMU: New Bug description: I'm running openstack 2012.1 'icehouse' which, ultimately, calls down into qemu-system-x86 2.0.0+dfsg-2ubuntu1.10. I primed the process by copying all necessary base images onto the destination host. Nonetheless, post-migration instances are much larger than the original image; the copy duplicated all the empty space that ought to have remained copy-on-write. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1449687/+subscriptions
There is a patch available: https://lists.gnu.org/archive/html/qemu-
devel/2016-11/msg03742.html (and those which are mentioned in the responses)
** Changed in: qemu
Status: New => Confirmed
** Tags added: sparse
Signature · 21 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1449687 Title: block migration of qcow2 VMs copies all empty space Status in QEMU: Confirmed Bug description: I'm running openstack 2012.1 'icehouse' which, ultimately, calls down into qemu-system-x86 2.0.0+dfsg-2ubuntu1.10. I primed the process by copying all necessary base images onto the destination host. Nonetheless, post-migration instances are much larger than the original image; the copy duplicated all the empty space that ought to have remained copy-on-write. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1449687/+subscriptions
This patch does not help us. When migrating, the same drives become thick ...
** Changed in: qemu
Status: Confirmed => Incomplete
Signature · 21 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1449687 Title: block migration of qcow2 VMs copies all empty space Status in QEMU: Incomplete Bug description: I'm running openstack 2012.1 'icehouse' which, ultimately, calls down into qemu-system-x86 2.0.0+dfsg-2ubuntu1.10. I primed the process by copying all necessary base images onto the destination host. Nonetheless, post-migration instances are much larger than the original image; the copy duplicated all the empty space that ought to have remained copy-on-write. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1449687/+subscriptions
** Bug watch removed: Red Hat Bugzilla #1219541
https://bugzilla.redhat.com/show_bug.cgi?id=1219541
Signature · 21 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1449687 Title: block migration of qcow2 VMs copies all empty space Status in QEMU: Incomplete Bug description: I'm running openstack 2012.1 'icehouse' which, ultimately, calls down into qemu-system-x86 2.0.0+dfsg-2ubuntu1.10. I primed the process by copying all necessary base images onto the destination host. Nonetheless, post-migration instances are much larger than the original image; the copy duplicated all the empty space that ought to have remained copy-on-write. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1449687/+subscriptions
[Expired for QEMU because there has been no activity for 60 days.]
** Changed in: qemu
Status: Incomplete => Expired
Signature · 21 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1449687 Title: block migration of qcow2 VMs copies all empty space Status in QEMU: Expired Bug description: I'm running openstack 2012.1 'icehouse' which, ultimately, calls down into qemu-system-x86 2.0.0+dfsg-2ubuntu1.10. I primed the process by copying all necessary base images onto the destination host. Nonetheless, post-migration instances are much larger than the original image; the copy duplicated all the empty space that ought to have remained copy-on-write. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1449687/+subscriptions
** Changed in: qemu
Status: Expired => New
Signature · 21 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1449687 Title: block migration of qcow2 VMs copies all empty space Status in QEMU: New Bug description: I'm running openstack 2012.1 'icehouse' which, ultimately, calls down into qemu-system-x86 2.0.0+dfsg-2ubuntu1.10. I primed the process by copying all necessary base images onto the destination host. Nonetheless, post-migration instances are much larger than the original image; the copy duplicated all the empty space that ought to have remained copy-on-write. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1449687/+subscriptions
On the source :
# qemu-img info VM.img image: VM.img file format: raw virtual size: 20G (21474836480 bytes) disk size: 3.4G
On the target:
# qemu-img info VM.img image: VM.img file format: raw virtual size: 20G (21474836480 bytes) disk size: 20G
I also tried with qcow2 format but it's the same bug.
All kvm migration drop sparse disk image !
How can we resolve this ?
Does a workaround exist ?
https://bugzilla.redhat.com/show_bug.cgi?id=1219541
https://bugzilla.redhat.com/show_bug.cgi?id=1248996
https://bugzilla.redhat.com/show_bug.cgi?id=1090093
https://bugzilla.redhat.com/show_bug.cgi?id=817700
** Bug watch added: Red Hat Bugzilla #1219541
https://bugzilla.redhat.com/show_bug.cgi?id=1219541
** Bug watch added: Red Hat Bugzilla #1248996
https://bugzilla.redhat.com/show_bug.cgi?id=1248996
** Bug watch added: Red Hat Bugzilla #1090093
https://bugzilla.redhat.com/show_bug.cgi?id=1090093
** Bug watch added: Red Hat Bugzilla #817700
https://bugzilla.redhat.com/show_bug.cgi?id=817700
Signature · 21 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1449687 Title: block migration of qcow2 VMs copies all empty space Status in QEMU: New Bug description: I'm running openstack 2012.1 'icehouse' which, ultimately, calls down into qemu-system-x86 2.0.0+dfsg-2ubuntu1.10. I primed the process by copying all necessary base images onto the destination host. Nonetheless, post-migration instances are much larger than the original image; the copy duplicated all the empty space that ought to have remained copy-on-write. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1449687/+subscriptions
I forgot to inform my test envrionement :
Ubuntu Xenial
qemu-kvm version 2.5
libvirt-bin version 1.3.1
Signature · 21 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1449687 Title: block migration of qcow2 VMs copies all empty space Status in QEMU: New Bug description: I'm running openstack 2012.1 'icehouse' which, ultimately, calls down into qemu-system-x86 2.0.0+dfsg-2ubuntu1.10. I primed the process by copying all necessary base images onto the destination host. Nonetheless, post-migration instances are much larger than the original image; the copy duplicated all the empty space that ought to have remained copy-on-write. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1449687/+subscriptions
Can you please reproduce bugs with the latest version of QEMU, i.e. currently v2.11 ? Old versions like 2.5 are not supported by the upstream QEMU project anymore, and bugs from such old versions might have been fixed already. (Otherwise, if you're only interested in the Ubuntu binary, please open a bug against the Ubuntu QEMU package instead)
Signature · 21 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1449687 Title: block migration of qcow2 VMs copies all empty space Status in qemu package in Ubuntu: New Bug description: I'm running openstack 2012.1 'icehouse' which, ultimately, calls down into qemu-system-x86 2.0.0+dfsg-2ubuntu1.10. I primed the process by copying all necessary base images onto the destination host. Nonetheless, post-migration instances are much larger than the original image; the copy duplicated all the empty space that ought to have remained copy-on-write. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1449687/+subscriptions
Well, if you had a closer look at the BZs that you've quoted, especially BZ 1219541, you should have seen that this problem apparently has been solved in upstream QEMU version 2.9 or 2.10. So it's really just about the backlevel version 2.5 that you're using. I'm re-assigning this ticket to the Ubuntu package, maybe they can fix it for you.
Signature · 21 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1449687 Title: block migration of qcow2 VMs copies all empty space Status in qemu package in Ubuntu: New Bug description: I'm running openstack 2012.1 'icehouse' which, ultimately, calls down into qemu-system-x86 2.0.0+dfsg-2ubuntu1.10. I primed the process by copying all necessary base images onto the destination host. Nonetheless, post-migration instances are much larger than the original image; the copy duplicated all the empty space that ought to have remained copy-on-write. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1449687/+subscriptions
** Project changed: qemu => qemu (Ubuntu)
Signature · 21 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1449687 Title: block migration of qcow2 VMs copies all empty space Status in qemu package in Ubuntu: New Bug description: I'm running openstack 2012.1 'icehouse' which, ultimately, calls down into qemu-system-x86 2.0.0+dfsg-2ubuntu1.10. I primed the process by copying all necessary base images onto the destination host. Nonetheless, post-migration instances are much larger than the original image; the copy duplicated all the empty space that ought to have remained copy-on-write. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1449687/+subscriptions