The 2006 Linux File Systems Workshop
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.
The LWN site is currently under high scraper load, so comment display has been suppressed for anonymous users. If you are a human, you may read the comments by clicking the button below:
Note: you can avoid this step in the future by logging into your LWN account.
