Re: md RAID with enterprise-class SATA or SAS drives

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

 



On 2012-05-10, Phil Turmel <philip@xxxxxxxxxx> wrote:
>
> I do them weekly...  the following is called from my crontab:
>
> #!/bin/bash
> #
> # Weekly Cron Job to initiate RAID scan/repair cycles
> for x in /sys/block/md*/md/sync_action ; do
>         echo check >$x
> done
> # Process occurs in background kernel tasks

Actually RHEL/CentOS has a nice utility script that will check your
arrays and emit an error via stdout/stderr if any mismatches are found.
Obviously you could have a separate cron job to check mismatch_cnt but I
think it's handy to have the check and the report self-contained--if
your cron is properly configured you'll get email on any mismatches.
It also has a config file where you can choose to ignore some arrays,
run a check on others, and run a repair on others.  (Presumably other
distros may have something similar.)

--keith

-- 
kkeller@xxxxxxxxxxxxxxxxxxxxxxxxxx


--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[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