Hide Forgot
Description of problem: After convert the source image with the option "-S 0", the dest image will not be fully allocated. Version-Release number of selected component (if applicable): [root@ibm-x3650m3-03 test]# rpm -qa | grep qemu-img qemu-img-rhev-2.5.0-4.el7.x86_64 [root@ibm-x3650m3-03 test]# uname -r 3.10.0-382.el7.x86_64 How reproducible: 3/3 Steps to Reproduce: 1.qemu-img create -f qcow2 src.qcow2 10G 2.qemu-img create -f qcow2 src.qcow2 10G 3.qemu-img convert -p -f qcow2 -O qcow2 -S 0 src.qcow2 dst.qcow2 4.qemu-img info dst.qcow2 Actual results: [root@ibm-x3650m3-03 test]# qemu-img info dst.qcow2 image: dst.qcow2 file format: qcow2 virtual size: 10G (10737418240 bytes) disk size: 2.1M cluster_size: 65536 Format specific information: compat: 1.1 lazy refcounts: false refcount bits: 16 corrupt: false [root@ibm-x3650m3-03 Expected results: disk size should be greater than or eqaul to the virtual size. Additional info: [root@ibm-x3650m3-03 test]# qemu-img info src.qcow2 image: src.qcow2 file format: qcow2 virtual size: 10G (10737418240 bytes) disk size: 196K cluster_size: 65536 Format specific information: compat: 1.1 lazy refcounts: false refcount bits: 16 corrupt: false
Fix will be included in 2.6.0.
[root@hp-z420-02 home]# uname -r 3.10.0-396.el7.x86_64 [root@hp-z420-02 home]# rpm -qa | grep qemu-kvm qemu-kvm-rhev-2.6.0-1.el7.x86_64 [root@hp-z420-02 home]# qemu-img create -f qcow2 src.qcow2 10G Formatting 'src.qcow2', fmt=qcow2 size=10737418240 encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16 [root@hp-z420-02 home]# qemu-img convert -p -f qcow2 -O qcow2 -S 0 src.qcow2 dst.qcow2 (100.00/100%) [root@hp-z420-02 home]# qemu-img info src.qcow2 image: src.qcow2 file format: qcow2 virtual size: 10G (10737418240 bytes) disk size: 196K cluster_size: 65536 Format specific information: compat: 1.1 lazy refcounts: false refcount bits: 16 corrupt: false [root@hp-z420-02 home]# qemu-img info dst.qcow2 image: dst.qcow2 file format: qcow2 virtual size: 10G (10737418240 bytes) disk size: 10G cluster_size: 65536 Format specific information: compat: 1.1 lazy refcounts: false refcount bits: 16 corrupt: false
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2016-2673.html