Received: from eggs.gnu.org ([2001:4830:134:3::10]:45161) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vo9De-0002W2-0g for qemu-devel@nongnu.org; Wed, 04 Dec 2013 04:58:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vo9DT-0007ag-Al for qemu-devel@nongnu.org; Wed, 04 Dec 2013 04:58:09 -0500 Received: from mail-ee0-x22a.google.com ([2a00:1450:4013:c00::22a]:47264) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vo9DT-0007ac-2S for qemu-devel@nongnu.org; Wed, 04 Dec 2013 04:57:59 -0500 Received: by mail-ee0-f42.google.com with SMTP id e53so1203623eek.15 for ; Wed, 04 Dec 2013 01:57:58 -0800 (PST) Date: Wed, 4 Dec 2013 10:57:54 +0100 From: Stefan Hajnoczi Message-ID: <20131204095754.GB19096@stefanha-thinkpad.redhat.com> References: <20131126015941.27755.36754.malonedeb@soybean.canonical.com> <20131126015941.27755.36754.malonedeb@soybean.canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20131126015941.27755.36754.malonedeb@soybean.canonical.com> Subject: Re: [Qemu-devel] [Bug 1254940] [NEW] qemu-KVM guest OS occurs many ext3-fs errors after multiple forced shutdown List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Bug 1254940 <1254940@bugs.launchpad.net> Cc: qemu-devel@nongnu.org On Tue, Nov 26, 2013 at 01:59:41AM -0000, benjamin_zb wrote: > I met some filesysterm errors in a sles guest on KVM. My system environment is: > HOST: >    suse 10, the kernel version is 2.6.32.43 >    Qemu-KVM 1.2 >    Libvirt 1.0 > guest OS: >    suse 10, the kernel version is 2.6.32.43 > VMs use a qcow2 disk. > > Description of problem: > I have 20+ VMs with qcow2 disk, these VMs have been forced to shut down by > "virsh destroy" many times during and after VM installation. > When these vm reboot,dmesg show a ext3-fs mount error occurred on /usr/local > partion /dev/vda3: >     EXT3-fs warning: mounting fs with errors, running e2fsck is recommendedand > when I wrote into partion /dev/vda3,some errors occurred in dmesg: > 1.error (device vda3): ext3_free_blocks: Freeing blocks not in datazone - block > = 1869619311, count = 1error (device vda3): ext3_free_blocks_sb: bit already > cleared for block 2178152error (device vda3): ext3_readdir: bad entry in > directory #1083501: > 2.[347470.661893] attempt to access beyond end of device[347470.661896] vda3: > rw=0, want=6870892952, limit=41945715[347470.661897] EXT3-fs error (device > vda3): ext3_free_branches: Read failure, inode=1083508, block=858861618 > 3.EXT3-fs error (device vda3): ext3_new_block: block(4295028581) >= blocks > count(-1) - block_group = 1, es == ffff88021b6c7400 > > I suspect this fs-error is caused by multiple forced shutdown, but I can't > reproduce this bug now. > > Could anyone has an idea or suggestion to help me? What are the mount options for this ext3 file system? In particular, make sure the barrier=1 option is set. >From linux/Documentation/filesystems/ext3.txt: Write barriers enforce proper on-disk ordering of journal commits, making volatile disk write caches safe to use, at some performance penalty. Stefan