CFT: periodic scrubbing of ZFS pools
Alexander at Leidinger.net
Thu Jun 10 14:26:38 UTC 2010
as there seems to be interest in a periodic script to scrub zpools, I
modified my monthly-POC into a daily script with parameters for which
pools to scrub, how many days between scrubs (even different per pool,
if required), and several error checks (non-existing pool specified,
scrub in progress).
You can find it at
Please put it into /etc/periodic/daily and test it. Possible
periodic.conf variables are:
daily_scrub_zfs_pools="name1 name2 name3" # all if unset or empty
daily scrub_zfs_default_threshold="<number_of_days>" # default: 30
If there is no specific threshold for a pool (= days between scrubs),
the default threshold is used.
the guru who refused Novocaine while having a tooth pulled because
he wanted to transcend dental medication?
http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137
More information about the freebsd-fs