Bug 605757 - 2tb virtio disk gets massively corrupted filesystems
Summary: 2tb virtio disk gets massively corrupted filesystems
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: qemu
Version: 13
Hardware: x86_64
OS: Linux
low
urgent
Target Milestone: ---
Assignee: Justin M. Forbes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 612036 624293 626684 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-06-18 17:39 UTC by Dennis Gilmore
Modified: 2013-01-09 11:35 UTC (History)
14 users (show)

Fixed In Version: seabios-0.6.0-1.fc13
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-08-24 21:07:57 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Dennis Gilmore 2010-06-18 17:39:09 UTC
Description of problem:
with a 2 tb filesystem attached to a virt guest using virtio im seeing very quickly massive file system corruption.  there is no IO errors on the host or the guest. 

talking to danpb in irc it looks related to  http://www.mail-archive.com/qemu-devel@nongnu.org/msg32499.html  dan also commented on finding other patches related to disk > 1t

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Daniel Berrangé 2010-06-18 17:55:43 UTC
Trawling the upstream QEMU GIT logs for patches to the block layer that are not in 0.12.3, I see some changesets that look like they'd be valuable in avoiding data corruption. The mailing list thread suggests they impact large disks

commit cbf1dff2f1033cadcb15c0ffc9c0a3d039d8ed42
Author: Kevin Wolf <kwolf>
Date:   Fri May 21 11:09:42 2010 +0200

    block: Fix multiwrite with overlapping requests
    
    With overlapping requests, the total number of sectors is smaller than the sum
    of the nb_sectors of both requests.
    
    Signed-off-by: Kevin Wolf <kwolf>


commit 77be4366baface6613cfc312ba281f8e5860997c
Author: Christoph Hellwig <hch>
Date:   Wed May 19 20:53:10 2010 +0200

    block: fix sector comparism in multiwrite_req_compare
    
    The difference between the start sectors of two requests can be larger
    than the size of the "int" type, which can lead to a not correctly
    sorted multiwrite array and thus spurious I/O errors and filesystem
    corruption due to incorrect request merges.
    
    So instead of doing the cute sector arithmetics trick spell out the
    exact comparisms.
    
    Spotted by Kevin Wolf based on a testcase from Michael Tokarev.


commit 618fbb84299780af96e3d4c4b6f2148656fe3708
Author: Christoph Hellwig <hch>
Date:   Wed May 19 12:40:09 2010 +0200

    virtio-blk: fix barrier support
    
    Before issuing the barrier to the block driver we need to flush our oustanding
    queue of write requests, as the flush is supposed to be issued after them.
    
    Signed-off-by: Christoph Hellwig <hch>
    Signed-off-by: Kevin Wolf <kwolf>

Comment 2 Fedora Update System 2010-08-18 14:02:30 UTC
seabios-0.6.0-1.fc13,gpxe-1.0.1-1.fc13,qemu-0.12.5-1.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/seabios-0.6.0-1.fc13,gpxe-1.0.1-1.fc13,qemu-0.12.5-1.fc13

Comment 3 Fedora Update System 2010-08-20 02:16:25 UTC
seabios-0.6.0-1.fc13, gpxe-1.0.1-1.fc13, qemu-0.12.5-1.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update seabios gpxe qemu'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/seabios-0.6.0-1.fc13,gpxe-1.0.1-1.fc13,qemu-0.12.5-1.fc13

Comment 4 Fedora Update System 2010-08-24 21:07:35 UTC
seabios-0.6.0-1.fc13, gpxe-1.0.1-1.fc13, qemu-0.12.5-1.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 5 Chuck Ebbert 2010-08-27 16:37:55 UTC
*** Bug 626684 has been marked as a duplicate of this bug. ***

Comment 6 Michael Hagmann 2010-08-27 20:36:34 UTC
*** Bug 624293 has been marked as a duplicate of this bug. ***

Comment 7 Michael Hagmann 2010-08-29 16:34:10 UTC
*** Bug 612036 has been marked as a duplicate of this bug. ***


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