systemd: add weekly and monthly scrub timers

Timers can be enabled as follows:

systemctl enable zfs-scrub-weekly@rpool.timer --now
systemctl enable zfs-scrub-monthly@datapool.timer --now

Each timer will pull in zfs-scrub@${poolname}.service, which is not
schedule-specific.

Added PERIODIC SCRUB section to zpool-scrub.8.

Reviewed-by: Richard Laager <rlaager@wiktel.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Closes #12193
This commit is contained in:
Georgy Yakovlev
2021-12-16 11:47:22 -08:00
committed by Tony Hutter
parent d76917b2ec
commit f471a0a0a7
6 changed files with 64 additions and 1 deletions
+1
View File
@@ -1,3 +1,4 @@
*.service
*.target
*.preset
*.timer