diff options
author | Julian Brunner <[email protected]> | 2022-06-11 03:22:14 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2022-06-10 18:22:14 -0700 |
commit | 482505fd4219a4c3a91f2857199436df27ad687e (patch) | |
tree | 556ce38cc4e04759050a695bc2d244dfca75de88 /man | |
parent | 87b46d63b283d9e2c3b10945f37233d1dedef02a (diff) |
Add weekly and monthly systemd timers for trimming
On machines using systemd, trim timers can be enabled on a per-pool
basis. Weekly and monthly timer units are provided. Timers can be
enabled as follows:
systemctl enable [email protected] --now
systemctl enable [email protected] --now
Each timer will pull in zfs-trim@${poolname}.service, which is not
schedule-specific.
The manpage zpool-trim has been updated accordingly.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Julian Brunner <[email protected]>
Closes #13544
Diffstat (limited to 'man')
-rw-r--r-- | man/man8/zpool-trim.8 | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/man/man8/zpool-trim.8 b/man/man8/zpool-trim.8 index d9a7b4400..ad0909a3b 100644 --- a/man/man8/zpool-trim.8 +++ b/man/man8/zpool-trim.8 @@ -84,8 +84,29 @@ with no flags on the relevant target devices. .It Fl w , -wait Wait until the devices are done being trimmed before returning. .El +.Sh PERIODIC TRIM +On machines using systemd, trim timers can be enabled on a 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-trim-\fIweekly\fB@\fIrpool\fB.timer +.Cm --now +.It Xo +.Xc +.Nm systemctl +.Cm enable +.Cm zfs-trim-\fImonthly\fB@\fIotherpool\fB.timer +.Cm --now +.El . .Sh SEE ALSO +.Xr systemd.timer 5 , .Xr zpoolprops 7 , .Xr zpool-initialize 8 , .Xr zpool-wait 8 |