From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MgNh8-000361-Ov for qemu-devel@nongnu.org; Wed, 26 Aug 2009 14:58:06 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MgNh4-0002wI-02 for qemu-devel@nongnu.org; Wed, 26 Aug 2009 14:58:06 -0400 Received: from [199.232.76.173] (port=41681 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MgNh3-0002vn-JO for qemu-devel@nongnu.org; Wed, 26 Aug 2009 14:58:01 -0400 Received: from mail2.shareable.org ([80.68.89.115]:44194) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MgNh2-0002tD-TT for qemu-devel@nongnu.org; Wed, 26 Aug 2009 14:58:01 -0400 Date: Wed, 26 Aug 2009 19:57:55 +0100 From: Jamie Lokier Subject: Re: [Qemu-devel] Re: Notes on block I/O data integrity Message-ID: <20090826185755.GF25726@shareable.org> References: <20090825181120.GA4863@lst.de> <90eb1dc70908251233m4b90ddfuabb4d26bccd62c63@mail.gmail.com> <20090825193621.GA19778@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090825193621.GA19778@lst.de> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Christoph Hellwig Cc: rusty@rustcorp.com.au, qemu-devel@nongnu.org, kvm@vger.kernel.org, Javier Guerra Christoph Hellwig wrote: > > what about LVM? iv'e read somewhere that it used to just eat barriers > > used by XFS, making it less safe than simple partitions. > > Oh, any additional layers open another by cans of worms. On Linux until > very recently using LVM or software raid means only disabled > write caches are safe. I believe that's still true except if there's more than one backing drive, so software RAID still isn't safe. Did that change? But even with barriers, software RAID may have a consistency problem if one stripe is updated and the system fails before the matching parity stripe is updated. I've been told that some hardware RAID implementations implement a kind of journalling to deal with this, but Linux software RAID does not. -- Jamie