From mboxrd@z Thu Jan 1 00:00:00 1970 From: Neil Brown Subject: Re: [patch] ext2/3: document conditions when reliable operation is possible Date: Wed, 26 Aug 2009 09:08:03 +1000 Message-ID: <19092.28371.793339.764701@notabene.brown> References: <20090824195159.GD29763@elf.ucw.cz> <4A92F6FC.4060907@redhat.com> <20090824205209.GE29763@elf.ucw.cz> <4A930160.8060508@redhat.com> <20090824212518.GF29763@elf.ucw.cz> <20090824223915.GI17684@mit.edu> <20090824230036.GK29763@elf.ucw.cz> <20090825000842.GM17684@mit.edu> <20090825094244.GC15563@elf.ucw.cz> <4A93E908.6050908@redhat.com> <20090825211515.GA3688@elf.ucw.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Ric Wheeler , Theodore Tso , Florian Weimer , Goswin von Brederlow , Rob Landley , kernel list , Andrew Morton , mtk.manpages@gmail.com, rdunlap@xenotime.net, linux-doc@vger.kernel.org, linux-ext4@vger.kernel.org, corbet@lwn.net To: Pavel Machek Return-path: In-Reply-To: message from Pavel Machek on Tuesday August 25 Sender: linux-doc-owner@vger.kernel.org List-Id: linux-ext4.vger.kernel.org On Tuesday August 25, pavel@ucw.cz wrote: > > You can object any way you want, but running ext3 on flash or MD RAID5 > is stupid: > > * ext2 would be faster > > * ext2 would provide better protection against powerfail. > > "ext3 works on flash and MD RAID5, as long as you do not have > powerfail" seems to be the accurate statement, and if you don't need > to protect against powerfails, you can just use ext2. > Pavel You are over generalising. MD/RAID5 is only less than perfect if it is degraded. If all devices are present before the power failure and after the power failure, then there is no risk. RAID5 only promises to protect against a single failure. Power loss plus device loss equals multiple failure. And then there is the comment Ted made about probabilities. While you can get data corruption if a RAID5 comes back degraded after a power fail, I believe it is a lot less likely than the metadata being inconsistent on an ext2 after a power fail. So ext3 is still a good choice (especially if you put your journal on a separate device). While I think it is, in principle, worth documenting this sort of thing, there are an awful lot of fine details and distinctions that would need to be considered. NeilBrown