best practices using LVM and e2fsck

Tom Metro tmetro-blu-5a1Jt6qxUNc at public.gmane.org
Thu Jul 1 17:22:02 EDT 2010


Edward Ned Harvey wrote:
> ...I'm not aware of anything like a scrub in linux.
> What are you talking about?  Resilver?  Fsck?

Debian mdadm packages include a /usr/share/mdadm/checkarray script that
runs from cron monthly. It does (typically):

for array in $arrays; do
    echo "check" > /sys/block/$array/md/sync_action
done

Quoting md(4):

  md/sync_action
    This can be used to monitor and control the resync/recovery process
    of MD. In particular, writing "check" here will cause the array to
    read all data block and check that they are consistent (e.g.  par-
    ity is correct, or all mirror replicas are the same).  Any
    discrepancies found are NOT corrected.

 -Tom

-- 
Tom Metro
Venture Logic, Newton, MA, USA
"Enterprise solutions through open source."
Professional Profile: http://tmetro.venturelogic.com/





More information about the Discuss mailing list