From: Duncan <1i5t5.duncan@cox.net>
To: linux-btrfs@vger.kernel.org
Subject: Re: Scrubbing with BTRFS Raid 5
Date: Mon, 20 Jan 2014 13:21:30 +0000 (UTC) [thread overview]
Message-ID: <pan$a0b44$f26ffac9$eee521fc$3b37eb85@cox.net> (raw)
In-Reply-To: BF66C259-5EEA-46DF-A6C6-1A98DCD95F68@gmail.com
Graham Fleming posted on Sun, 19 Jan 2014 16:53:13 -0800 as excerpted:
> From the wiki, I see that scrubbing is not supported on a RAID 5 volume.
>
> Can I still run the scrub routing (maybe read-only?) to check for any
> issues. I understand at this point running 3.12 kernel there are no
> routines to fix parity issues with RAID 5 while scrubbing but just want
> to know if I'm either a) not causing any harm by running the scrub on a
> RAID 5 volume and b) it's actually goin to provide me with useful
> feedback (ie file X is damaged).
This isn't a direct answer to your question, but answers a somewhat more
basic question...
Btrfs raid5/6 isn't ready for use in a live-environment yet, period, only
for testing where the reliability of the data beyond the test doesn't
matter. It works as long as everything works normally, writing out the
parity blocks as well as the data, but besides scrub not yet being
implemented, neither is recovery from loss of device, or from out-of-sync-
state power-off.
Since the whole /point/ of raid5/6 is recovery from device-loss, without
that it's simply a less efficient raid0, which accepts the risk of fully
data loss if a device is lost in ordered to gain the higher thruput of N-
way data striping. So in practice at this point, if you're willing to
accept loss of all data and want the higher thruput, you'd use raid0 or
perhaps single mode instead, or if not, you'd use raid1 or raid10 mode.
--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman
next prev parent reply other threads:[~2014-01-20 13:21 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-20 0:53 Scrubbing with BTRFS Raid 5 Graham Fleming
2014-01-20 13:21 ` Duncan [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-01-21 9:06 Graham Fleming
2014-01-21 17:08 ` Duncan
2014-01-21 17:18 ` Jim Salter
2014-01-21 17:38 ` Chris Murphy
2014-01-21 18:25 ` Jim Salter
2014-01-22 16:02 ` Duncan
2014-01-22 20:45 ` Chris Mason
2014-01-22 21:06 ` ronnie sahlberg
2014-01-22 21:16 ` Chris Mason
2014-01-22 22:36 ` ronnie sahlberg
2014-01-21 18:03 Graham Fleming
2014-01-22 15:39 ` Duncan
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='pan$a0b44$f26ffac9$eee521fc$3b37eb85@cox.net' \
--to=1i5t5.duncan@cox.net \
--cc=linux-btrfs@vger.kernel.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