Re: integrity verification on raid-5?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri Dec 17, 2010 at 02:08:16PM -0700, Patrick H. wrote:

> Is there a way to do integrity verification on a raid-5 array? I'm 
> working on building a storage system on SSDs under raid-5 and want to be 
> able to perform periodic integrity checks. Basically just check the 
> drives to make sure that they match what the parity drive has.
> After a bit of googling I saw other people wanting the same thing but 
> nobody with any result. I dont see why this cant be done, but is there 
> any tool to do so?

There's built-in functionality to do this.  To start the check, run:
    echo check > /sys/block/mdX/md/sync_action

You can check progress by catting /proc/mdstat, and the number of errors
is reported at the end in /sys/block/mdX/md/mismatch_cnt.  To rewrite
the parity data for any mismatches, use "repair" instead of "check" in
the first command.

Currently, there's no easy way to find out what file(s) are affected by
the mismatches though.

Cheers,
    Robin
-- 
     ___        
    ( ' }     |       Robin Hill        <robin@xxxxxxxxxxxxxxx> |
   / / )      | Little Jim says ....                            |
  // !!       |      "He fallen in de water !!"                 |

Attachment: pgpEAYGq5i_Vd.pgp
Description: PGP signature


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux