Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating Cron scrub job from GUI/Webmin module #32

Open
THE-KINGDOM opened this issue Feb 14, 2020 · 1 comment
Open

Creating Cron scrub job from GUI/Webmin module #32

THE-KINGDOM opened this issue Feb 14, 2020 · 1 comment

Comments

@THE-KINGDOM
Copy link

Hi guys,

Is it possible to create a Cron scrub job from within the webmin module?
ZFS only maintains its integrity as a filesystem Manager if scrub jobs are done at least monthly if not weekly.
I know we can establish this frequency in CLI but it would be nice to able to do it from the webmin admin panel?

Thanks

@qwrty-ftw
Copy link

qwrty-ftw commented Aug 27, 2020

ZFS already have a CRON job running each month:

root:~# cat /etc/cron.d/zfsutils-linux
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# Scrub the second Sunday of every month.
24 0 8-14 * * root if [ $(date +\%w) -eq 0 ] && [ -x /usr/lib/zfs-linux/scrub ]; then /usr/lib/zfs-linux/scrub; fi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants