HomeFreeBSD

Add weekly and monthly systemd timers for trimming

Description

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 zfs-trim-weekly@rpool.timer --now
systemctl enable zfs-trim-monthly@datapool.timer --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 <behlendorf1@llnl.gov>
Signed-off-by: Julian Brunner <julian.brunner@gmail.com>
Closes #13544

Details

Provenance
Julian Brunner <julian.brunner@gmail.com>Authored on Jun 11 2022, 1:22 AM
GitHub <noreply@github.com>Committed on Jun 11 2022, 1:22 AM
Parents
rG87b46d63b283: Improve sorted scan memory accounting
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG482505fd4219: Add weekly and monthly systemd timers for trimming (authored by Julian Brunner <julian.brunner@gmail.com>).Jun 11 2022, 1:22 AM