What is "correct way" to do
I noticed that the /etc/periodic/daily directory contains a 800.scrub-zfs script but it looks like it is disabled by default. So I put something like this into the /etc/periodic.conf file which overrides defaults
On the another hand I noticed that FreeNAS is doing scrubbing through system /etc/crontab (user crontab would IMHO be another way to do this on vanilla FreeBSD)
zpool scrub
-ing? It looks to me that there at least two different ways to do scrubbing on TrueOS which should not be very different than vanilla FreeBSD.I noticed that the /etc/periodic/daily directory contains a 800.scrub-zfs script but it looks like it is disabled by default. So I put something like this into the /etc/periodic.conf file which overrides defaults
Code:
daily_scrub_zfs_enable="YES"
daily_scrub_zfs_pools="tank storage"
daily_scrub_zfs_default_threshold="15"
On the another hand I noticed that FreeNAS is doing scrubbing through system /etc/crontab (user crontab would IMHO be another way to do this on vanilla FreeBSD)
Code:
00 00 * * 7 root PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin" /usr/local/sbin/scrub -t 15 zfsauton