View Issue Details

IDProjectCategoryView StatusLast Update
0014026CentOS-7qemu-kvmpublic2019-08-01 09:54
ReporterDenis Troshchanovich 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
PlatformOSCentOSOS Version7.4.1708
Product Version 
Target VersionFixed in Version 
Summary0014026: virsh migrate --copy-storage-all fails to preserve sparse disk image
DescriptionRunning a virsh migrate --copy-storage-all, will take a 'sparse' image on the source, and create a bloated image on destination.
Steps To Reproduce1) Checking the image on the source:
 qemu-img info /vm/remove_later
image: /vm/remove_later
file format: qcow2
virtual size: 20G (20971520000 bytes)
disk size: 1.3G
cluster_size: 65536
Format specific information:
    compat: 0.10
    refcount bits: 16

2) Live migration to the new node without using shared storage:
virsh migrate --verbose --live --copy-storage-all remove_later qemu+ssh://{{ FQDN}}/system
Migration: [100 %]

3) Checking the image status at the new location:
qemu-img info /vm/remove_later
image: /vm/remove_later
file format: qcow2
virtual size: 20G (20971520000 bytes)
disk size: 20G
cluster_size: 65536
Format specific information:
    compat: 0.10
    refcount bits: 16

Additional InformationThis bug seems to be fixed in Red Hat Enterprise Linux 7 (Bug 1219541) but still resides in CentOS.
TagsNo tags attached.
abrt_hash
URL

Activities

TrevorH

TrevorH

2017-10-17 14:45

manager   ~0030388

That bz appears to say it's fixed in RHEV 4 not in RHEL 7.
Denis Troshchanovich

Denis Troshchanovich

2017-10-18 10:57

reporter   ~0030397

Sure, sorry. But I've only tested it in CentOS 7.4.1708 and it still resides.
TrevorH

TrevorH

2017-10-18 11:00

manager   ~0030398

Yes, and if you tested it on RHEL 7.4 then I am pretty sure you'd get the same results. RHEV uses a newer qemu than RHEL. CentOS is a rebuild of RHEL though I believe that one of the SIGs (virt?) ships a newer qemu-kvm than is in the base repos.

Issue History

Date Modified Username Field Change
2017-10-17 14:40 Denis Troshchanovich New Issue
2017-10-17 14:45 TrevorH Note Added: 0030388
2017-10-18 10:57 Denis Troshchanovich Note Added: 0030397
2017-10-18 11:00 TrevorH Note Added: 0030398