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 =E2=80=9Cprime time=E2=80=9D 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 =E2=80=9Cprime = time hours=E2=80=9D)? - Peter > On 3 Aug 2020, at 18:35, Walter Cramer <wfc@mintsol.com> wrote: >=20 > Assuming a fairly-idle system, or one with a tiny zpool - scrubs from = 'periodic daily' can work fine. >=20 > 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"... >=20 > Our defaults should try to minimize the nasty surprises. >=20 > -Walter >=20 >=20 > On Mon, 3 Aug 2020, Steve Wills wrote: >=20 >> Hi, >>=20 >> I wonder why we don't enable zfs periodic scrub by default? >>=20 >> = https://svnweb.freebsd.org/base/head/usr.sbin/periodic/periodic.conf?view=3D= markup#l162 >>=20 >> Anyone happen to know? >>=20 >> Thanks, >> Steve >>=20 >> _______________________________________________ >> 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" >>=20 > _______________________________________________ > 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>