Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Good file system that recovers from a power failure.
Date: Sat, 01 Jan 2011 12:49:27
Message-Id: 201101011247.47994.michaelkintzios@gmail.com
In Reply to: Re: [gentoo-user] Good file system that recovers from a power failure. by Volker Armin Hemmann
1 On Friday 31 December 2010 22:11:37 Volker Armin Hemmann wrote:
2 > reiser4 is fully atomic. A transactions happens completely or it doesn't.
3 >
4 > Unlike ext4 or btrfs or xfs.
5 >
6 > reiser4 also uses barriers (the others use them too, but), when barriers
7 > are not available for some reason or another, it complains in dmesg and
8 > goes into sync mode.
9 >
10 > This combined makes it pretty robust against power failures. You won't get
11 > the good old xfs/ext4/btrfs problem that a rename can end with two useless
12 > empty files.
13
14 I read what Volker is saying and it sounds impressive from a fs design
15 perspective, but my experience does not concur with it.
16
17 I have a had a power cut (run out of battery) and the fs got corrupted. :-(
18
19 This however may not be a conclusive finding. I was running reiser4 for about
20 a year on my laptop. Unfortunately, I have a had a large number of fs
21 corruptions, most of which appeared to be random. The last one just before
22 Christmas proved to be fatal and unrecoverable with fsck.reiser4.
23
24 I could try to blame the disk, but the MSWindows ntfs which I dual boot to
25 from the same disk never failed or corrupted (admittedly though it has seen
26 hardly any use).
27
28 I have to say that when it did run without corruption reiser4 is an
29 exceptional fs in terms of performance. With the exception of mounting large
30 partitions which takes some time, I don't think anything else I've tried comes
31 close. If I were to build a desktop which unlike a laptop is not bounced
32 around when commuting on trains and what not, I would probably try it again
33 (because I have a niggling suspicion that the cause of my problems might have
34 been a mechanical reason).
35
36 Either way, I can say with some certainty that power cuts and running out of
37 space on a partition brought about fs corruption with reiser4.
38
39 I have now moved all but one of my partitions to ext4 and will wait to see
40 what happens with that, but 11 months on reiser4 has left a bad taste in my
41 mouth.
42
43 Historically, I have mostly used reiserfs and xfs. Reiserfs is in my
44 experience very reliable and easily recoverable and I can assuredly echo
45 Alan's findings. Some years ago I had a faulty memory controller which would
46 hard lock an old desktop. At least once a day (typically in the middle of an
47 emerge, or updatedb) it would crash badly and I would have to pull he plug.
48 In as many as 4 years I must have had hundreds and hundreds of hard reboots.
49 I vaguely recall one or two fs corruptions on only one or two partitions.
50 reiserfsck did recover the fs every single time without major drama.
51
52 If bleeding edge performance is not an issue I would recommend reiserfs to
53 mitigate the risk from powercuts.
54 --
55 Regards,
56 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Good file system that recovers from a power failure. Volker Armin Hemmann <volkerarmin@××××××××××.com>