ZFS How to make ZFS scrub periodically run?

After finishing my zrepl snapshot settings, I want to set up a periodic ZFS scrub.
I see someone suggested creating /etc/periodic.conf and adding these lines:

Code:
daily_scrub_zfs_enable="YES"
daily_scrub_zfs_pools=""
#daily_scrub_zfs_default_threshold="35"

However, after a few days, I cannot see any scrub is running. I would like to know how to make it work.
Thanks for your help!
 
I see someone suggested creating /etc/periodic.conf and adding these lines:

#daily_scrub_zfs_default_threshold="35"
If this variable is not set, then the default in /etc/defaults/periodic.conf is executed, which is:
Code:
daily_scrub_zfs_default_threshold="35"          # days between scrubs
To override the default, it must be set in /etc/periodic.conf

periodic.conf(5)
Rich (BB code):
DESCRIPTION
     The file periodic.conf contains a description of how daily, weekly and
     monthly system maintenance jobs should run.  It resides in the
     /etc/defaults directory and parts may be overridden by a file of the same
     name in /etc, which itself may be overridden by the
     /etc/periodic.conf.local file.
 
Back
Top