Liu Bo wrote:
On Wed, Mar 21, 2018 at 9:50 AM, Menion <menion@xxxxxxxxx> wrote:
Hi all
I am trying to understand the status of RAID5/6 in BTRFS
I know that there are some discussion ongoing on the RFC patch
proposed by Liu bo
But it seems that everything stopped last summary. Also it mentioned
about a "separate disk for journal", does it mean that the final
implementation of RAID5/6 will require a dedicated HDD for the
journaling?
Thanks for the interest on btrfs and raid56.
The patch set is to plug write hole, which is very rare in practice, tbh.
The feedback is to use existing space instead of another dedicate
"fast device" as the journal in order to get some extent of raid
protection. I'd need some time to pick it up.
With that being said, we have several data reconstruction fixes for
raid56 (esp. raid6) in 4.15, I'd say please deploy btrfs with the
upstream kernel or some distros which do kernel updates frequently,
the most important one is
8810f7517a3b Btrfs: make raid6 rebuild retry more
https://patchwork.kernel.org/patch/10091755/
AFAIK, no other data corruptions showed up.
I am very interested in the "raid"5/6 like behavior myself. Actually
calling it RAID in the past may have had it's benefits , but these days
continuing to use the RAID term is not helping. Even technically minded
people seem to get confused.
For example: It was suggested that "raid"5/6 should have hot-spare
support. In BTRFS terms a hot spare devicse sounds wrong to me, but
reserving extra space for a "hot-space" so any "raid"5/6 like system can
(auto?) rebalance to missing blocks to the rest of the pool sounds
sensible enough (as long as the number of devices allows to separate the
different bits and pieces).
Anyway , I got carried away a bit there. Sorry about that.
What I really wanted to comment is about usability of "raid"5/6
How would really a metadata "raid"1 + data "raid"5 or 6 compare to say
mdraid 5 or 6 from a reliability point of view.
Sure mdraid has the advantage, but even with the write hole and the risk
of corruption of data (not the filesystem) would not BTRFS in "theory"
be safer that at least mdraid 5 if run with metadata "raid"5 ?!
You have to run scrub on both mdraid as well as BTRFS to ensure data is
not corrupted.
PS! It might be worth mentioning that I am slightly affected by a
Glenfarclas 105 Whisky while writing this so please bare with me in case
something is too far off :)
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html