Peri­od­ic scrub­bing of ZFS pools

I noticed that we do not have some auto­mat­ic way of scrub­bing a ZFS pool peri­od­i­cal­ly. A quick poll on fs@ revealed, that there is inter­est in some­thing like this. So I took a lit­tle bit of time to write a peri­od­ic dai­ly script which checks if the last scrub is X days ago and scrubs a pool accord­ing­ly. The script has options to scrub all pools, or just a spe­cif­ic sub­set. It also allows to spec­i­fy a time-inter­val between scrubs for each pool with dif­fer­ent lev­els of fall-back (if no pool-specific inter­val is set, the default inter­val is used, which is set to 30 days if no oth­er default inter­val is spec­i­fied).

The dis­cus­sion about this is hap­pen­ing over at fs@, so go there and have a look for the CFT (with a link to the WIP of the script) and the dis­cus­sion if you are inter­est­ed.

So far there are some minor details to sort out (and a lit­tle bit of doc­u­men­ta­tion to write) before I can com­mit it… prob­a­bly next week.

Send to Kin­dle