Hi,
On Sat, 29 May 2021 11:01:59 +0200 Brian Candler wrote:
> On Friday, 28 May 2021 at 01:00:55 UTC+1 Martin McClure wrote:
> Do you know if that limitation on RAID6 recovery applies to
> Linux kernel soft RAID?
>
>
>
> Answered here:
https://unix.stackexchange.com/questions/137384/raid6-
> scrubbing-mismatch-repair
> - although this is 7 years old.
>
>
> According to that, it assumes the parity is bad and rewrites the parity,
> rather than using the parity to correct the bad data. But you'd probably
> want to do a test to check if that's still that case.
Since this discussion has occurred, this topic "RAID6 + silent data
corruption" regularly comes to my mind. I just want to throw in some
theoretical thoughts:
RAID6 can only recover from silent parity corruption, by majority vote of
one parity copy and the calculated parity from data stripes. In this case it
would be fine to just update the wrong parity copy.
Other than that, RAID6 can not recover from silent corruption on data
stripes, because it can't tell what data stripe is wrong (this is different
from a failed disk, where you can tell, what data strip is faulty). For
recovery of silent corruption one needs to store checksum along each data
stripes. Updating parity anyway sounds bad, but seems the only automatic
option?
What do you think? Are this thoughts right? If so, RAID6 has not much
advantage over RAID5 WRT silent corruption.
Thanks, Sascha.