Add zfs-scrub

This commit is contained in:
Benoit S 2021-02-06 17:03:07 +09:00
parent 579d4b6a47
commit 015a8fa5d4
5 changed files with 89 additions and 1 deletions

11
files/zfs-scrub.service Normal file
View file

@ -0,0 +1,11 @@
[Unit]
Description=zpool scrub
[Service]
Nice=19
IOSchedulingClass=idle
KillSignal=SIGINT
ExecStart=/usr/local/bin/zfs-scrub.sh
[Install]
WantedBy=multi-user.target

10
files/zfs-scrub.timer Normal file
View file

@ -0,0 +1,10 @@
[Unit]
Description=Monthly zpool scrub
[Timer]
OnCalendar=monthly
RandomizedDelaySec=86400
Persistent=true
[Install]
WantedBy=multi-user.target