Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Aug 2020 20:05:01 +0200
From:      Peter Eriksson <pen@lysator.liu.se>
To:        freebsd-fs <freebsd-fs@freebsd.org>
Subject:   Re: zfs scrub enable by default
Message-ID:  <0BF85C14-5671-4779-928A-34C5FD3B82C1@lysator.liu.se>
In-Reply-To: <20200803121444.J57111@mulder.mintsol.com>
References:  <cca34d1a-1892-41ec-ce45-84865100c6e1@FreeBSD.org> <20200803121444.J57111@mulder.mintsol.com>

next in thread | previous in thread | raw e-mail | index | archive | help

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@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@freebsd.org mailing list
>> https://lists.freebsd.org/mailman/listinfo/freebsd-fs
>> To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"
>> 
> _______________________________________________
> freebsd-fs@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-fs
> To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0BF85C14-5671-4779-928A-34C5FD3B82C1>