On Thu Mar 20, 2008 at 12:35:51PM -0400, Theodore Tso wrote: > If a mismatch is detected in a RAID-6 configuration, it should be > possible to figure out what should be fixed (since with two hot spares > there should be enough redundancy not only to detect an error, but to > correct it.) Out of curiosity, does md do this automatically, either > when reading from a stripe, or during a resync operation? > I'm not sure about during a read (though my understanding is that the parity is entirely ignored here, so no checking is done in any RAID configuration). As for during resync, not as of last time this came up, no (I've not looked at the code but Neil was certainly opposed to trying to do this then). The problem is that you can only (safely) do a repair if you know _for a fact_ that only a single block is corrupt. Otherwise there's a reasonable chance of further corrupting the data by "repairing" good blocks to match the bad. The current md code just recalculates both parity blocks. Cheers, Robin -- ___ ( ' } | Robin Hill <robin@xxxxxxxxxxxxxxx> | / / ) | Little Jim says .... | // !! | "He fallen in de water !!" |
Attachment:
pgppN0Rbum2Pp.pgp
Description: PGP signature