mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 10:01:01 +03:00
482505fd42
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
13 lines
208 B
SYSTEMD
13 lines
208 B
SYSTEMD
[Unit]
|
|
Description=Monthly zpool trim timer for %i
|
|
Documentation=man:zpool-trim(8)
|
|
|
|
[Timer]
|
|
OnCalendar=monthly
|
|
Persistent=true
|
|
RandomizedDelaySec=1h
|
|
Unit=zfs-trim@%i.service
|
|
|
|
[Install]
|
|
WantedBy=timers.target
|