I use a weekly cronjob for scrubbing my ZFS pool "zfsspace".
> nano /etc/cron.weekly/zfs-scrub-weekly
Code:
#!/bin/bash
# set PATH
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# set pool name
ZFS_POOL="zfsspace"
# start scrub
zpool scrub "$ZFS_POOL"
> chmod +x /etc/cron.weekly/zfs-scrub-weekly
and I send this my root email address, configured in etc/zfs/zed.d/zed.rc
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.