Bug 612507 - qcow2 image corruption when using cache=writeback
Summary: qcow2 image corruption when using cache=writeback
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kvm
Version: 5.5
Hardware: All
OS: Linux
high
medium
Target Milestone: rc
: ---
Assignee: Virtualization Maintenance
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On: 572825
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-07-08 12:09 UTC by RHEL Program Management
Modified: 2013-01-11 03:07 UTC (History)
16 users (show)

Fixed In Version: kvm-83-164.el5_5.15
Doc Type: Bug Fix
Doc Text:
Following writing metadata to a QCOW2 disk image, metadata was not flushed, which could have potentially caused the disk image to become corrupted in the event of system disruption (such as a power outage). With this update, metadata is flushed after being written, thus increasing QCOW2 image integrity, and decreasing the likelihood of image corruption.
Clone Of:
Environment:
Last Closed: 2010-07-29 05:49:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2010:0536 0 normal SHIPPED_LIVE kvm bug fix update 2010-07-29 05:49:39 UTC

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

Comment 10 Eduardo Habkost 2010-07-23 19:06:12 UTC
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.

New Contents:
Cause: qcow2 code didn't flush metadata writes, risking integrity on case of crashes.

Consequence: http://wiki.qemu.org/Features/Qcow2DataIntegrity#Metadata_update_ordering.2C_Part_2

Fix: Flush after metadata writes. Use bdrv_(p)write_sync for metadata writes.

Result: qcow2 data integrity after host crashes is improved.

Comment 11 Douglas Silas 2010-07-28 15:42:01 UTC
Technical note updated. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.

Diffed Contents:
@@ -1,7 +1 @@
-Cause: qcow2 code didn't flush metadata writes, risking integrity on case of crashes.
+Following writing metadata to a QCOW2 disk image, metadata was not flushed, which could have potentially caused the disk image to become corrupted in the event of system disruption (such as a power outage). With this update, metadata is flushed after being written, thus increasing QCOW2 image integrity, and decreasing the likelihood of image corruption.-
-Consequence: http://wiki.qemu.org/Features/Qcow2DataIntegrity#Metadata_update_ordering.2C_Part_2
-
-Fix: Flush after metadata writes. Use bdrv_(p)write_sync for metadata writes.
-
-Result: qcow2 data integrity after host crashes is improved.

Comment 12 errata-xmlrpc 2010-07-29 05:49:51 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-0536.html


Note You need to log in before you can comment on or make changes to this bug.