aboutsummaryrefslogtreecommitdiffstats
path: root/man/man8
diff options
context:
space:
mode:
authorGeorgy Yakovlev <[email protected]>2021-12-16 11:47:22 -0800
committerTony Hutter <[email protected]>2022-02-10 11:04:35 -0800
commitf471a0a0a7d8c303857828edbe997df2f0f3072c (patch)
treed4991ac5c9fe8265cb71e48fe5d1713abec86ea1 /man/man8
parentd76917b2ecd681cea8911ce11375842cab312c1a (diff)
systemd: add weekly and monthly scrub timers
Timers can be enabled as follows: systemctl enable [email protected] --now systemctl enable [email protected] --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 <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Georgy Yakovlev <[email protected]> Closes #12193
Diffstat (limited to 'man/man8')
-rw-r--r--man/man8/zpool-scrub.821
1 files changed, 21 insertions, 0 deletions
diff --git a/man/man8/zpool-scrub.8 b/man/man8/zpool-scrub.8
index 768f71539..69ae825b6 100644
--- a/man/man8/zpool-scrub.8
+++ b/man/man8/zpool-scrub.8
@@ -116,8 +116,29 @@ scanned at 100M/s, and 68.4M of that file data has been
scrubbed sequentially at 10.0M/s.
.El
.El
+.Sh PERIODIC SCRUB
+On machines using systemd, scrub timers can be enabled on per-pool basis.
+.Nm weekly
+and
+.Nm monthly
+timer units are provided.
+.Bl -tag -width Ds
+.It Xo
+.Xc
+.Nm systemctl
+.Cm enable
+.Cm zfs-scrub-\fIweekly\fB@\fIrpool\fB.timer
+.Cm --now
+.It Xo
+.Xc
+.Nm systemctl
+.Cm enable
+.Cm zfs-scrub-\fImonthly\fB@\fIotherpool\fB.timer
+.Cm --now
+.El
.
.Sh SEE ALSO
+.Xr systemd.timer 5 ,
.Xr zpool-iostat 8 ,
.Xr zpool-resilver 8 ,
.Xr zpool-status 8