Bug 602363

Summary: qcow2 corruption bug in refcount table growth
Product: Red Hat Enterprise Linux 5 Reporter: RHEL Program Management <pm-rhel>
Component: kvmAssignee: Virtualization Maintenance <virt-maint>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 5.5CC: cpelland, kwolf, llim, mkenneth, pm-eus, qzhang, tburke, virt-maint, ykaul
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kvm-83-164.el5_5.11 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-06-22 14:40:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 598488    
Bug Blocks: 556823    

Description RHEL Program Management 2010-06-09 17:12:58 UTC
This bug has been copied from bug #598488 and has been proposed
to be backported to 5.5 z-stream (EUS).

Comment 5 Qunfang Zhang 2010-06-11 03:22:19 UTC
Reproduced on kvm-83-164.el5_5.10, and verified pass on kvm-83-164.el5_5.11.

Steps:
1.Create a disk on *RHEL6* host
#qemu-img create -f qcow2 -ocluster_size=512 test.qcow2 1G
2.Copy this disk to RHEL5 host
#/usr/libexec/qemu-kvm test.qcow2 -monitor stdio -vnc :10
(qemu)savevm aaa
(qemu)savevm bbb
(qemu)info snapshots
(qemu)quit
3.#qemu-img check test.qcow2


On kvm-83-164.el5_5.10:
[root@dhcp-91-161 home]# qemu-img check test2.qcow2 
ERROR cluster 134400 refcount=0 reference=1
ERROR cluster 134467 refcount=2 reference=1
ERROR cluster 134468 refcount=2 reference=1
ERROR cluster 134656 refcount=0 reference=1
ERROR cluster 134723 refcount=2 reference=1
ERROR cluster 134724 refcount=2 reference=1
ERROR cluster 134725 refcount=2 reference=1
ERROR cluster 135936 refcount=0 reference=1
ERROR cluster 136072 refcount=2 reference=1
ERROR cluster 136073 refcount=2 reference=1
ERROR cluster 136192 refcount=0 reference=1
ERROR cluster 136328 refcount=2 reference=1
ERROR cluster 136329 refcount=2 reference=1
ERROR cluster 136330 refcount=2 reference=1
14 errors were found on the image.

On kvm-83-164.el5_5.11:
[root@dhcp-91-161 home]# qemu-img check testing.qcow2 
No errors were found on the image.

Comment 8 errata-xmlrpc 2010-06-22 14:40:13 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2010-0479.html