From 11655f9fb57db2745b88e4f5ced8382d4cb873d1 Mon Sep 17 00:00:00 2001 From: Georgy Yakovlev Date: Thu, 10 Jun 2021 19:40:54 -0700 Subject: [PATCH] zpool-scrub.8: add PERIODIC SCRUB section Signed-off-by: Georgy Yakovlev --- man/man8/zpool-scrub.8 | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/man/man8/zpool-scrub.8 b/man/man8/zpool-scrub.8 index 10375b6393ac..5369fba20796 100644 --- a/man/man8/zpool-scrub.8 +++ b/man/man8/zpool-scrub.8 @@ -91,8 +91,29 @@ again. .It Fl w Wait until scrub has completed before returning. .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