CFT: periodic scrubbing of ZFS pools

Alexander Leidinger Alexander at Leidinger.net
Tue Jun 15 09:45:10 UTC 2010


Quoting Ivan Voras <ivoras at freebsd.org> (from Fri, 11 Jun 2010  
18:11:45 +0200):

> 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 prefer to make it explicit instead of failing on everything which is  
unknown.

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

Would be great.

Bye,
Alexander.

-- 
"My two friends have my share of the money, I'll have to speak to them."
		-- Vito Corleone, "Chapter 14", page 197

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 mailing list