CFT: periodic scrubbing of ZFS pools

Ivan Voras ivoras at freebsd.org
Fri Jun 11 16:12:08 UTC 2010


On 11 June 2010 17:20, Alexander Leidinger <Alexander at leidinger.net> wrote:
> Quoting Ivan Voras <ivoras at freebsd.org> (from Fri, 11 Jun 2010 14:04:24
> +0200):

>> Fairly good and useful, but could you add a small check of "zpool
>> status" information before scrubbing that would a) complain LOUDLY AND
>> VISIBLY if a previous scrub failed and b) skip issuing a new scrub
>> command if there is such an error, to avoid stressing possibly broken
>> hardware?
>
> Can you please provide an example of such a failed scrub?

You should probably treat any status message that doesn't have "none
requested" or "scrub completed with 0 errors..." as failed.

I could setup a gnop device with errors to prove it if you'd like :)


More information about the freebsd-fs mailing list