Alexander Leidinger

Just another weblog

Jun
11

Peri­odic scrub­bing of ZFS pools

I noticed that we do not have some auto­matic way of scrub­bing a ZFS pool peri­od­i­cally. 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­odic daily script which checks if the last scrub is X days ago and scrubs a pool accord­ingly. The script has options to scrub all pools, or just a spe­cific sub­set. It also allows to spec­ify 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 other default inter­val is specified).

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 interested.

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.

GD Star Rat­ing
load­ing…
GD Star Rat­ing
load­ing…
Peri­odic scrub­bing of ZFS pools, 10.0 out of 10 based on 2 ratings
Tags: , , , , , , , , ,

2 Responses to “Peri­odic scrub­bing of ZFS pools”

  1. Tweets that mention Peri­odic scrub­bing of ZFS pools | Alexander Leidinger -- Topsy.com Says:

    […] This post was men­tioned on Twit­ter by FreeBSD Project, freeb­s­d­blogs. freeb­s­d­blogs said: Peri­odic scrub­bing of ZFS pools: I noticed that we do not have some auto­matic way of scrub­bing a ZFS pool pe… http://tinyurl.com/3xjlm2y […]

  2. Emil Says:

    Doesn’t cre­at­ing a snap­shot [still] cause the scrub to restart from square one?

    I already have cron jobs that cre­ate snap­shots every hour, on a pool where a scrub takes more than an hour, this could be a problem…

    GD Star Rating
    loading...
    GD Star Rating
    loading...

Leave a Reply