EXT3-fs error on Git HEAD
Hi all,
I have a number of Qemu VMs. Over the weekend I updated to the latest Git head and now two of my VMs (one i386 and one x86-64) are having disk errors. Strange thing is, my arm VM is working flawlessly.
In the x86-64 VM I get errors like this:
EXT3-fs error (device sda1): ext3_xattr_block_get: inode 405992: bad block 8 EXT3-fs error (device sda1): ext3_xattr_block_get: inode 405989: bad block 8 EXT3-fs error (device sda1): ext3_xattr_block_get: inode 405986: bad block 8 EXT3-fs error (device sda1): ext3_xattr_block_get: inode 405998: bad block 8 EXT3-fs error (device sda1): ext3_xattr_block_get: inode 428975: bad block 244347 EXT3-fs error (device sda1): ext3_xattr_block_get: inode 389303: bad block 8 EXT3-fs error (device sda1): ext3_xattr_block_get: inode 290747: bad block 8 EXT3-fs error (device sda1): ext3_xattr_block_get: inode 290762: bad block 8 EXT3-fs error (device sda1): ext3_xattr_block_get: inode 239599: bad block 8 EXT3-fs error (device sda1): ext3_xattr_block_get: inode 389850: bad block 64 EXT3-fs error (device sda1): ext3_xattr_block_get: inode 389282: bad block 8 EXT3-fs error (device sda1): ext3_xattr_block_get: inode 230699: bad block 8
Any clues?
Cheers,
Erik
Signature · 3 lines
---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/
Quoted 3 lines · Erik de Castro Lopo
I have a number of Qemu VMs. Over the weekend I updated to the latest Git head and now two of my VMs (one i386 and one x86-64) are having disk errors. Strange thing is, my arm VM is working flawlessly.
These VM disk images are all qcow. The i386 and x86-64 ones I converted to qcow2 and they now work fine. The arm one is still qcow and is still working fine.
Erik
Signature · 3 lines
---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/
Quoted 9 lines · Erik de Castro Lopo
Quoted 3 lines · Erik de Castro Lopo
I have a number of Qemu VMs. Over the weekend I updated to the latest Git head and now two of my VMs (one i386 and one x86-64) are having disk errors. Strange thing is, my arm VM is working flawlessly.
These VM disk images are all qcow. The i386 and x86-64 ones I converted to qcow2 and they now work fine. The arm one is still qcow and is still working fine.
Weird. I thought it could be related to the bug fixed by "[PATCH]
block: Clean up after deleting BHs" which is not in GIT yet afaik.
http://lists.gnu.org/archive/html/qemu-devel/2009-06/msg01661.html
Best regards,
Filip Navara
Am Montag, den 29.06.2009, 13:42 +1000 schrieb Erik de Castro Lopo:
Quoted 9 lines
Quoted 3 lines · Erik de Castro Lopo
I have a number of Qemu VMs. Over the weekend I updated to the latest Git head and now two of my VMs (one i386 and one x86-64) are having disk errors. Strange thing is, my arm VM is working flawlessly.
These VM disk images are all qcow. The i386 and x86-64 ones I converted to qcow2 and they now work fine. The arm one is still qcow and is still working fine.
We're seeing the same on qemu-kvm.git. I tracked it down to following commits:
commit c16b5a2ca0b186de618654a576bdad9cdd2d1ab2
Author: Christoph Hellwig <[email protected]> Date: Mon May 25 12:37:32 2009 +0200
fully split aio_pool from BlockDriver
commit ad53089b0d0b4bc0731d978e5713365e1a91ba74
Author: Christoph Hellwig <[email protected]> Date: Mon May 25 15:45:37 2009 +0200
qcow: add qcow_aio_setup helper
Steps to reproduce:
1. Install some Linux distro with EXT3 file system in a qcow image. Everything up to kvm-86-178-g54c5a33 should be working if qemu-kvm.git is used for it.
2. Start a VM with the image on kvm-86-235-g0936eb0 (merge containing the two commits above) or newer.
3. Run CTCS [1] or some other file system stress test on it. Usually, after 5-10 minutes the file system on the image is dead.
[1] http://sourceforge.net/projects/va-ctcs/
Quick howto for CTCS:
$ tar xzf ctcs-1.3.1-pre1.tgz $ cd ctcs-1.3.1pre1 $ make install $ ./newburn 10m
Signature · 15 lines
Frank Arnold <[email protected]> System Design Technician, Software Test AMD Operating System Research Center Dresden, Germany Tel: +49 351 448 356702 Legal Information: Advanced Micro Devices GmbH Karl-Hammerschmidt-Str. 34 85609 Dornach b. München Geschäftsführer: Thomas M. McCoy; Giuliano Meroni Sitz: Dornach, Gemeinde Aschheim, Landkreis München Registergericht München, HRB Nr. 43632
Quoted 17 lines · Frank Arnold
Am Montag, den 29.06.2009, 13:42 +1000 schrieb Erik de Castro Lopo:
Quoted 8 lines
Quoted 3 lines · Erik de Castro Lopo
I have a number of Qemu VMs. Over the weekend I updated to the latest Git head and now two of my VMs (one i386 and one x86-64) are having disk errors. Strange thing is, my arm VM is working flawlessly.
These VM disk images are all qcow. The i386 and x86-64 ones I converted to qcow2 and they now work fine. The arm one is still qcow and is still working fine.
We're seeing the same on qemu-kvm.git. I tracked it down to following commits:
commit
c16b5a2ca0b186de618654a576bdad9cdd2d1ab2Author: Christoph Hellwig <[email protected]> Date: Mon May 25 12:37:32 2009 +0200
Quoted 7 lines
fully split
aio_poolfrom BlockDrivercommit
ad53089b0d0b4bc0731d978e5713365e1a91ba74Author: Christoph Hellwig <[email protected]> Date: Mon May 25 15:45:37 2009 +0200qcow: add
qcow_aio_setuphelper
This one has an obvious bug. Does the following change help?
block/qcow.c +0 -0
@@ -723,7 +723,7 @@ static BlockDriverAIOCB
*qcow_aio_writev(BlockDriverState *bs,
s->cluster_cache_offset = -1; /* disable compressed cache */
- acb = qcow_aio_setup(bs, sector_num, qiov, nb_sectors, cb, opaque, 0);
+ acb = qcow_aio_setup(bs, sector_num, qiov, nb_sectors, cb, opaque, 1);
if (!acb)
return NULL;Kevin
Am Dienstag, den 30.06.2009, 11:07 +0200 schrieb Kevin Wolf:
Quoted 14 lines
Quoted 5 lines · Frank Arnold
commit
ad53089b0d0b4bc0731d978e5713365e1a91ba74Author: Christoph Hellwig <[email protected]> Date: Mon May 25 15:45:37 2009 +0200qcow: add
qcow_aio_setuphelperThis one has an obvious bug. Does the following change help?
block/qcow.c +0
-0
block/qcow.c static BlockDriverAIOCB · line 729
Quoted 8 lines
block/qcow.c +1
-1@@ -723,7 +723,7 @@ static BlockDriverAIOCB *qcow_aio_writev (BlockDriverState *bs, s->cluster_cache_offset = -1; /* disable compressed cache */ - acb =qcow_aio_setup (bs, sector_num, qiov, nb_sectors, cb, opaque,0 ); + acb =qcow_aio_setup (bs, sector_num, qiov, nb_sectors, cb, opaque,1 );if (!acb)return NULL ;
Yes, this change seems to fix it. The guest survived 3 hours of stress testing and the image was still intact.
Tested on top of kvm-87-71-g6179556 (qemu-kvm.git).
Thanks for looking into it.
Signature · 15 lines
Frank Arnold <[email protected]> System Design Technician, Software Test AMD Operating System Research Center Dresden, Germany Tel: +49 351 448 356702 Legal Information: Advanced Micro Devices GmbH Karl-Hammerschmidt-Str. 34 85609 Dornach b. München Geschäftsführer: Thomas M. McCoy; Giuliano Meroni Sitz: Dornach, Gemeinde Aschheim, Landkreis München Registergericht München, HRB Nr. 43632
Hi,
can someone please apply the patch below from Kevin?
I know that QCOW1 is kind of deprecated, but this should not mean that such serious errors stay unfixed. I have this patch in all, well: almost
:-( of my branches and would love to see it upstream.
And yes, we are about to convert our images to QCOW2...
Thanks!
Regards,
Andre.
Quoted 45 lines · Kevin Wolf
Quoted 16 lines · Frank Arnold
Am Montag, den 29.06.2009, 13:42 +1000 schrieb Erik de Castro Lopo:
Quoted 8 lines
Quoted 3 lines · Erik de Castro Lopo
I have a number of Qemu VMs. Over the weekend I updated to the latest Git head and now two of my VMs (one i386 and one x86-64) are having disk errors. Strange thing is, my arm VM is working flawlessly.
These VM disk images are all qcow. The i386 and x86-64 ones I converted to qcow2 and they now work fine. The arm one is still qcow and is still working fine.
We're seeing the same on qemu-kvm.git. I tracked it down to following commits:
commit
c16b5a2ca0b186de618654a576bdad9cdd2d1ab2Author: Christoph Hellwig <[email protected]> Date: Mon May 25 12:37:32 2009 +0200Quoted 7 lines
fully split
aio_poolfrom BlockDrivercommit
ad53089b0d0b4bc0731d978e5713365e1a91ba74Author: Christoph Hellwig <[email protected]> Date: Mon May 25 15:45:37 2009 +0200qcow: add
qcow_aio_setuphelperThis one has an obvious bug. Does the following change help?
block/qcow.c +1
-1@@ -723,7 +723,7 @@ static BlockDriverAIOCB *qcow_aio_writev (BlockDriverState *bs, s->cluster_cache_offset = -1; /* disable compressed cache */ - acb =qcow_aio_setup (bs, sector_num, qiov, nb_sectors, cb, opaque,0 ); + acb =qcow_aio_setup (bs, sector_num, qiov, nb_sectors, cb, opaque,1 );if (!acb)return NULL ;Kevin
Signature · 9 lines
Andre Przywara AMD-Operating System Research Center (OSRC), Dresden, Germany Tel: +49 351 448 3567 12 ----to satisfy European Law for business letters: Advanced Micro Devices GmbH Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen Geschaeftsfuehrer: Thomas M. McCoy; Giuliano Meroni Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632