From: Russell Coker <russell@coker.com.au>
To: Roman Mamedov <rm@romanrm.net>, linux-btrfs@vger.kernel.org
Subject: Re: Help with space
Date: Thu, 01 May 2014 11:52:33 +1000 [thread overview]
Message-ID: <2809235.lZD2oazSeA@xev> (raw)
In-Reply-To: <20140228103436.2dfd2669@natsu>
On Fri, 28 Feb 2014 10:34:36 Roman Mamedov wrote:
> > I've a 18 tera hardware raid 5 (areca ARC-1170 w/ 8 3 gig drives) in
>
> Do you sleep well at night knowing that if one disk fails, you end up with
> basically a RAID0 of 7x3TB disks? And that if 2nd one encounters unreadable
> sector during rebuild, you lost your data? RAID5 actually stopped working 5
> years ago, apparently you didn't get the memo. :)
> http://hardware.slashdot.org/story/08/10/21/2126252/why-raid-5-stops-working
> -in-2009
I've just been doing some experiments with a failing disk used for backups (so
I'm not losing any real data here). The "dup" option for metadata means that
the entire filesystem structure is intact in spite of having lots of errors
(in another thread I wrote about getting 50+ correctable errors on metadata
while doing a backup).
My experience is that in the vast majority of disk failures that don't involve
dropping a disk the majority of disk data will still be readable. For example
one time I had a workstation running RAID-1 get too hot in summer and both
disks developed significant numbers of errors, enough that it couldn't
maintain a Linux Software RAID-1 (disks got kicked out all the time). I wrote
a program to read all the data from disk 0 and read from disk 1 any blocks
that couldn't be read from disk 0, the result was that after running e2fsck on
the result I didn't lose any data.
So if you have BTRFS configured to "dup" metadata on a RAID-5 array (either
hardware RAID or Linux Software RAID) then the probability of losing metadata
would be a lot lower than for a filesystem which doesn't do checksums and
doesn't duplicate metadata. To lose metadata you would need to have two
errors that line up with both copies of the same metadata block.
One problem with many RAID arrays is that it seems to only be possible to
remove a disk and generate a replacement from parity. I'd like to be able to
read all the data from the old disk which is readable and write it to the new
disk. Then use the parity from other disks to recover the blocks which
weren't readable. That way if you have errors on two disks it won't matter
unless they both happen to be on the same stripe. Given that BTRFS RAID-5
isn't usable yet it seems that the only way to get this result is to use RAID-
Z on ZFS.
--
My Main Blog http://etbe.coker.com.au/
My Documents Blog http://doc.coker.com.au/
next prev parent reply other threads:[~2014-05-01 1:52 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-27 18:19 Help with space Justin Brown
2014-02-27 19:27 ` Chris Murphy
2014-02-27 19:51 ` Chris Murphy
2014-02-27 20:49 ` otakujunction
2014-02-27 21:11 ` Chris Murphy
2014-02-28 0:12 ` Dave Chinner
2014-02-28 0:27 ` Chris Murphy
2014-02-28 4:21 ` Dave Chinner
2014-02-28 5:49 ` Chris Murphy
2014-02-28 4:34 ` Roman Mamedov
2014-02-28 7:27 ` Duncan
2014-02-28 7:37 ` Roman Mamedov
2014-02-28 7:46 ` Justin Brown
2014-05-01 1:52 ` Russell Coker [this message]
2014-05-01 5:33 ` Duncan
2014-05-02 1:48 ` Russell Coker
2014-05-02 8:23 ` Duncan
2014-05-02 9:28 ` Brendan Hide
2014-05-02 19:21 ` Chris Murphy
2014-05-02 21:08 ` Hugo Mills
2014-05-02 22:33 ` Chris Murphy
2014-05-03 16:31 ` Austin S Hemmelgarn
2014-05-03 19:09 ` Chris Murphy
2014-05-03 20:52 ` Austin S Hemmelgarn
2014-05-03 23:16 ` Chris Murphy
2014-02-28 6:13 ` Chris Murphy
2014-02-28 6:26 ` Chris Murphy
2014-02-28 7:39 ` Justin Brown
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=2809235.lZD2oazSeA@xev \
--to=russell@coker.com.au \
--cc=linux-btrfs@vger.kernel.org \
--cc=rm@romanrm.net \
/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