linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* md-raid paranoia mode?
@ 2014-06-11  6:48 Bart Kus
       [not found] ` <CAH3kUhH06kpJNqb-zdcv5nu2e1FeZuotcW0SjBbWDOCcasm9OA@mail.gmail.com>
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Bart Kus @ 2014-06-11  6:48 UTC (permalink / raw)
  To: linux-raid

Hello,

As far as I understand, md-raid relies on the underlying devices to 
inform it of IO errors before it'll seek redundant/parity data to 
fulfill the read request.  I have, however, seen certain hard drives 
report successful reads while returning garbage data.

Is it possible to set md-raid into a paranoid mode, in which it reads 
all available data and confirms integrity?  Here's how it would work:

RAID6: read data + parity 1 + parity 2.  If 1 of the 3 mismatches, 
correct it, and write corrected data to the corrupt source.  Log the 
event.  If all 3 disagree, alert user somehow.
RAID5: read data + parity.  If they mismatch, alert user somehow.
RAID1: read data 1 + data 2.  If they mismatch, alert user somehow.

You can see this is mostly useful for RAID6 mode, where there is a 
chance at automated recovery.  However, it can also be used to prevent 
silent data corruption in the other modes, by making it not silent.

--Bart


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

end of thread, other threads:[~2014-06-12 11:27 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-11  6:48 md-raid paranoia mode? Bart Kus
     [not found] ` <CAH3kUhH06kpJNqb-zdcv5nu2e1FeZuotcW0SjBbWDOCcasm9OA@mail.gmail.com>
2014-06-11 10:34   ` Bart Kus
2014-06-12  7:26     ` Mattias Wadenstein
2014-06-11 17:31 ` Piergiorgio Sartor
2014-06-12  2:15 ` Brad Campbell
2014-06-12  6:28   ` Roman Mamedov
2014-06-12  6:45     ` NeilBrown
2014-06-12  7:26     ` David Brown
2014-06-12  8:06       ` Roman Mamedov
2014-06-12  8:30         ` Brad Campbell
2014-06-12  8:53         ` Roman Mamedov
2014-06-12 11:27         ` David Brown

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).