The 2006 Linux File Systems Workshop
Posted Jul 6, 2006 14:06 UTC (Thu) by
nix (subscriber, #2304)
In reply to:
The 2006 Linux File Systems Workshop by hmh
Parent article:
The 2006 Linux File Systems Workshop
md-raid can already do this.
Just stick in cron something like
2 5 15 * * echo check > /sys/block/md-$blah/md/sync_action
to check parity on array md-${blah} (which of course reads every block on every disk in the array).
(OK, so you might want something a bit more elaborate to prevent checking if sync_action for the array is not 'idle' so as not to interrupt a real resync.)
This will proceed in the background and respect other accesses to the block device by slowing down, just like md resyncs always have.
(
Log in to post comments)