linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: raid is dangerous but that's secret (was Re: [patch] ext2/3:
@ 2009-08-31  0:54 George Spelvin
  2009-08-31 11:04 ` Pavel Machek
  0 siblings, 1 reply; 12+ messages in thread
From: George Spelvin @ 2009-08-31  0:54 UTC (permalink / raw)
  To: linux-doc, linux-ext4, linux-kernel

Actually, there is something the file system can do to make journaling
safe on degraded RAIDs: make the (checksummed) journal blocks equal to
the RAID stripe size.  Or, equivalently, pad out to the RAID stripe
size each commit.

This sometimes leads to awkward block sizes, but while writing
to any *one* stripe on a degraded RAID-5 endangers the others, you
can write to *all* of them with the usual semantics.

That's something that's a good idea for performance anyway, so maybe
ext[34] should be more vociferous about it.  E.g. check each mount
and warn if the journal is mis-sized.  Or even change the journal
bock size on mount if it starts empty.

The other solution, of course, is RAID-1, which I like to use for
performance and simplicity reasons anyway.  (It's really something
of a degenerate case of the RAID-[456] rule.)

That's one thing I really like about ZFS: its policy of "don't trust
the disks."  If nothing else, simply telling you "your disks f*ed up,
and I caught them doing it", instead of the usual mysterious corruption
detectec three months later, is tremendoudly useful information.

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2009-09-02  1:10 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-31  0:54 raid is dangerous but that's secret (was Re: [patch] ext2/3: George Spelvin
2009-08-31 11:04 ` Pavel Machek
2009-08-31 15:45   ` david
2009-09-01  0:56     ` George Spelvin
2009-09-01  8:36       ` NeilBrown
2009-09-01  8:46         ` Pavel Machek
2009-09-01 11:18         ` George Spelvin
2009-09-01 12:35           ` NeilBrown
2009-09-01 15:25             ` david
2009-09-01 21:12               ` NeilBrown
2009-09-01 16:18       ` Andreas Dilger
2009-09-02  1:10         ` George Spelvin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).