daily run output 800.scrub-zfs fixups

Alexander Leidinger Alexander at Leidinger.net
Sat Aug 21 20:08:34 UTC 2010


On Sat, 21 Aug 2010 00:17:08 -0400 jhell <jhell at DataIX.net> wrote:

> 
> Hi Alexander,
> 
> Attached is a fix for one problem and one slight overlook for
> 800.scrub-zfs.
> 
> The first & second change was probably just an oversight but none the
> less they both give a false impression of actions taken.
> 
> Change1:
> 	${daily_scrub_zfs_default_threshold=30} is missng the ':'
> which would ultimately reset the users supplied value in
> periodic.conf to 30.

I will have a look at this.

> Change2:
> 	${_scrub_diff} -le ${_pool_threshold} would cause the scrub
> to be run on the day after the threshold was met. So I changed '-le'
> -> '-lt' which causes it to be run on the 30th day instead of the
> 31st day.

This depends how you define threshold... I had number of days between
scrubs in my mind. Now it depends what I wrote in the man page, if it
tells what I had in mind (I don't remember, I have to look at it
myself, but I'm not a native english speaker, so I may have not wrote
it good enough).

This is not set in stone, if the majority of people want something
else, I'm surely not in the way.

Bye,
Alexander.

> -------- Original Message --------
> Subject: xxxxxx.dataix.local daily run output
> Date: Fri, 20 Aug 2010 03:18:09 -0400 (EDT)
> From: Superuser Root <root at xxxxxx.dataix.local>
> To: root at xxxxxx.dataix.local
> 
> ...snip...
> 
> Scrubbing of zfs pools:
>    skipping scrubbing of pool 'exports':
>       last scrubbing is 30 days ago, threshold is set to 30 days
> 
> -- End of daily output --
> 


More information about the freebsd-stable mailing list