zfs scrub enable by default

Allan Jude allanjude at freebsd.org
Mon Aug 3 20:26:00 UTC 2020


On 2020-08-03 12:10, 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"

I think switching this to on-by-default is a good thing.

To be clear, which the check is part of 'periodic daily', it only
triggers a scrub if it has been more than 35 days since the last scrub.

FreeNAS already has does this, and that accounts for a large number of
FreeBSD ZFS deployments.

There is tuning you can do in ZFS to try to lessen the impact of a scrub
on your production workloads.


The periodic script lets you select which pools to include (defaults to
all), so you can tune it to only scrub your root pool every 35 days, and
not the large pool that might take too long to scrub or whatever. It
also lets you set a different threshold for each pool.

So I don't see any reason not to enable it by default, and just document
how to adjust it if people really need to disable it. Honestly, I think
those who are disabling it are doing themselves a disservice.

-- 
Allan Jude

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 834 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20200803/8e06ef5a/attachment.sig>


More information about the freebsd-fs mailing list