public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Jean-Michel Smith <jsmith@kcco.com>
To: gentoo-dev@gentoo.org, Bill Kenworthy <billk@iinet.net.au>
Subject: Re: [gentoo-dev] reiserfs
Date: Tue, 14 May 2002 19:10:31 -0500	[thread overview]
Message-ID: <200205141910.31969.jsmith@kcco.com> (raw)
In-Reply-To: <1021416261.19668.26.camel@rattus>

On Tuesday 14 May 2002 05:44 pm, Bill Kenworthy wrote:

> The question came up on a local lug as well, with reiserfs and ext3
> seeming to be the top choices, and from memory xfs seemed to be bagged
> (cant remember why - something to do with the linux implementation?).

The patch touches a great many files.  Those who want to apply other patches 
typically find the xfs patch means doing some work by hand, which puts most 
people off.  XFS is rock solid in my experience, even in the face of power 
outages, untimely shutdowns, and the like, but I am conservative and only run 
it patched against stock kernels (e.g. xfs-sources, which is 2.4.18+xfs 
patches only).  Those wanting to play with other experimental patches 
generally avoid XFS because of this (as do I on the machines I do that sort 
of thing on) for this reason.

> Reiserfs did get some bad press in the early days, and I think that may
> be a hangover that effects peoples thinking.  I think this is a case of
> YMMV, and as far as I am concerned, gentoo is the odd one out by not
> reccomending reiserfs, and because there seems to be little
> documentation to back it up its point of view, but a fair bit of
> experiance saying reiserfs is reasonably stable. 

YMMV is reason enough to not recommend a filesystem, when your milage is 
varying with respect to spontaneous filesystem corruption!  Gentoo may be the 
odd one out on this, but in my opinion that says a great deal positively 
about the technical expertise and caution of the Gentoo developers, 
particularly in light of my own experiences.

These will be my final comments on the subject.  Looking at my notes and log 
entries, I had a total of 7 machines (out of 9 total deployed) go south with 
Reiserfs on them (unrecoverable filesystem corruption, including lost 
directories, strangely null files, and in one case oddly corrupt 
files/filenames that were undeletable).  None were due to kernel oopses, 
untimely shutdowns, or any other cause that would lead one to expect 
filesystem troubles, they were all apparently spontaneous, and all happened 
within 6 months of being deployed.  The last two machines were migrated off 
of Reiser (onto ext2) before they could screw up, having been in use only 
about three months.

The corruptions happened between April and August of last year (2001).  5 
machines were running Mandrake, one Red Hat, and one Debian. (~3 months 
testing, ~8 months deployed.  I was incorrect in an earlier post when I said 
none lasted more than 6 months ... one machine survived 9 months before 
problems arose, and another didn't suffer filesystem corruption until 7 
months after deployment.  All of these machines are on 24/7)

My friend had his Suse Reiserfs go south (entire directory tree spontaneously 
vanished, but filesystem usage remained the same and even continued to grow) 
six weeks ago (April 2002), so this is by no means an early development 
glitch that is now ancient history we can comfortably dismiss and forget 
about.  (I do not know how long he had had the machine deployed for, but I 
can find out if anyone is really interested).

XFS is annoying because the patch is big, and sometimes one must wait a week 
or two after a kernel is released before a patch for xfs exists.  In the case 
of gentoo, where multiple cool patches are being applied to an experimental, 
pre-release of 2.4.19, we had to wait a week or two before some kind, 
enterprising soul managed to work the patch into the OS (testing on -r5 is 
looking very good, fwiw).  That having been said, unless one is desperate for 
a particular fix one is generally wise to wait a week or two after a kernel 
release before deploying it in a production environment anyway, so this 
(admittedly minor) irritation is mitigated for the most part.  

I've beaten on XFS under just about every condition imaginable (minus LVS, 
which I do not use) and have yet to be able to make it corrupt the 
filesystem.  I've even deliberately caused kernel oopses by trying to compile 
glibc on a kernel with high-mem, or a machine with 1 GB RAM, and been unable 
to cause damage to the filesystem.  It appears to be very solid and does not 
corrupt spontaneously.  (about 3.5 years fairly rigorous testing and very 
rigorous usage, including 2 enterprise NFS servers on large RAID devices and 
several developer workstations. Of all the filesystems I've tested, this one 
has been tested the most thoroughly, except of course for ext2 which I've 
been using a great deal longer)

JFS I've done less testing with.  It appears to be pretty good, but others 
have reported LVS corruption which may have been caused by JFS.  I haven't 
beaten on it nearly as hard as I have XFS, so I cannot say with certainty 
that it is reliable, but thus far I've yet to have it screw up.  Not exactly 
a ringing endorsement, but a cautious "it looks ok so far." (~3 months casual 
testing)

ditto ext3.  It needs more testing.  It seems to do alright thus far, but I 
tend to treat it as I would an ext2 filesystem. (~5 months casual testing).

ext2 is very solid, provided it is treated correctly (no improper shutdowns or 
power-offs), or buffering is turned off.  It does not corrupt spontaneously, 
ever.  BUT, and this is a big BUT, it can and does become corrupted if it is 
not shutdown properly (and this can happen due to system hangs, e.g. X with 
Nvidia drivers on some configurations, power outage, impatient user hitting 
the reset switch, etc.).  Most of the time it will recover through fsck, but 
not always, and I echo others who have lost ext2 filesystems that have been 
unrecoverably corrupted in this way.  It is why I prefer journalled 
filesystems and have gone to deploying XFS where possible and practical 
(often, but not always, the case due to the patch's size and complexity), and 
why I am keeping an eye on JFS and others.

It is important to note that filesystem corruption due to untimely shutdowns, 
which both ext2 and reiser have suffered from, are a completely different 
animal from the apparent spontaneous loss of data that is my major complaint 
with Reiser, and why I am so vocal in defending Gentoo's word of caution 
regarding it.

Kernel oopses:  all bets are off for any filesystem (though I've yet to be 
able to get XFS to corrupt from this, it is theoretically possible AFAICT 
since something might be going on within the kernel's vfs layer when the hang 
happens.  This is the only situation in which I find filesystem corruption in 
a journaled filesystem to be at all forgivable.

The only filesystem I have ever experienced that has corrupted itself during 
normal operations, with no unexpected reboots, kernel oopses, or other 
mitigating circumstances to explain the corruption, is Reiserfs, and these 
experiences are all within the last 14 months.

The only filesystem I've been unable to corrupt has been XFS.  (JFS and ext3 
do not count, I haven' t beaten on them the way I have ext2, XFS, and 
Reiser).

So while people should continue to experiement with Reiser (after all, that is 
how these sorts of bugs will be found and fixed), a word of caution is IMHO 
certainly in order, regardless of whether or not that makes Gentoo "the odd 
man out" or not.

Jean.


  reply	other threads:[~2002-05-15  0:12 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-14 14:56 [gentoo-dev] reiserfs Sean Mitchell
2002-05-14 15:07 ` Alexander Gretencord
2002-05-14 15:39   ` Jean-Michel Smith
2002-05-14 15:52     ` Mark Bainter
2002-05-14 16:21       ` Jean-Michel Smith
2002-05-14 16:30         ` Ben Lutgens
2002-05-14 17:07     ` Alexander Gretencord
2002-05-14 17:22       ` Per Wigren
2002-05-14 18:50         ` Matthew Kennedy
2002-05-14 19:09           ` Jean-Michel Smith
2002-05-14 17:49       ` Mark Bainter
2002-05-14 18:17         ` Alexander Gretencord
2002-05-14 18:32           ` Mark Bainter
2002-05-14 19:03             ` Alexander Gretencord
2002-05-14 20:39         ` Mikko Moilanen
2002-05-14 22:44         ` Bill Kenworthy
2002-05-15  0:10           ` Jean-Michel Smith [this message]
2002-05-15  0:39             ` Spider
2002-05-15  0:57               ` Jean-Michel Smith
2002-05-14 21:29       ` Spider
  -- strict thread matches above, loose matches on Subject: below --
2002-05-14 15:39 Sean Mitchell
2002-05-14 14:44 Brady Wied
2002-05-14 21:17 ` Spider
2002-05-15  8:20   ` Alexander Gretencord

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200205141910.31969.jsmith@kcco.com \
    --to=jsmith@kcco.com \
    --cc=billk@iinet.net.au \
    --cc=gentoo-dev@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox