zfs scrub enable by default
Peter Eriksson
pen at lysator.liu.se
Mon Aug 3 18:05:10 UTC 2020
On our pretty big ZFS fileservers (home directories) we run scrubs manually but every now and then - but I have a script that pauses the scrubs during “prime time” since a full scrub run takes a day or so...
Crontab:
# zpool-scrub-pause
0 8 * * 1-5 /sbin/zpool-scrub pause all >/var/liu/log/zpool-scrub-pause 2>&1
# zpool-scrub-resume
0 21 * * 1-5 /sbin/zpool-scrub resume all >/var/liu/log/zpool-scrub-resume 2>&1
The script can be downloaded from:
https://www.grebo.net/~peter/zfs/ <https://www.grebo.net/~peter/zfs/>
Perhaps something similar could be used with configurable “prime time hours”)?
- Peter
> On 3 Aug 2020, at 18:35, Walter Cramer <wfc at mintsol.com> wrote:
>
> Assuming a fairly-idle system, or one with a tiny zpool - scrubs from 'periodic daily' can work fine.
>
> In cases where that assumption is false - the resources consumed by an hours-long scrub, slowing down a system which people expect to be "as responsive as it usually it"...
>
> Our defaults should try to minimize the nasty surprises.
>
> -Walter
>
>
> On Mon, 3 Aug 2020, Steve Wills wrote:
>
>> Hi,
>>
>> I wonder why we don't enable zfs periodic scrub by default?
>>
>> https://svnweb.freebsd.org/base/head/usr.sbin/periodic/periodic.conf?view=markup#l162
>>
>> Anyone happen to know?
>>
>> Thanks,
>> Steve
>>
>> _______________________________________________
>> freebsd-fs at freebsd.org mailing list
>> https://lists.freebsd.org/mailman/listinfo/freebsd-fs
>> To unsubscribe, send any mail to "freebsd-fs-unsubscribe at freebsd.org"
>>
> _______________________________________________
> freebsd-fs at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-fs
> To unsubscribe, send any mail to "freebsd-fs-unsubscribe at freebsd.org"
More information about the freebsd-fs
mailing list