From 7ef18f5a2b6f5f514c7dd88a7833b3124aeb2447 Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Sun, 11 Sep 2022 19:08:59 +0200 Subject: [PATCH] Remove zfs cron job and update zfs systemd timers --- machine.yml | 5 +++++ root/etc/systemd/system/zfs-scrub-monthly@.timer | 2 +- root/etc/systemd/system/zfs-trim-monthly@.timer | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/machine.yml b/machine.yml index f62bd66..f18a57f 100644 --- a/machine.yml +++ b/machine.yml @@ -310,6 +310,11 @@ enabled: yes state: started + - name: Remove the zfsutils cron job + file: + state: absent + path: /etc/cron.d/zfsutils-linux + # ---------------------------------------------------------------------------------------------- # UPS configuration. # ---------------------------------------------------------------------------------------------- diff --git a/root/etc/systemd/system/zfs-scrub-monthly@.timer b/root/etc/systemd/system/zfs-scrub-monthly@.timer index 9030684..d3d6b0b 100644 --- a/root/etc/systemd/system/zfs-scrub-monthly@.timer +++ b/root/etc/systemd/system/zfs-scrub-monthly@.timer @@ -3,7 +3,7 @@ Description=Monthly zpool scrub timer for %i Documentation=man:zpool-scrub(8) [Timer] -OnCalendar=monthly +OnCalendar=Sun *-*-08..14 02:00:00 Persistent=true RandomizedDelaySec=1h Unit=zfs-scrub@%i.service diff --git a/root/etc/systemd/system/zfs-trim-monthly@.timer b/root/etc/systemd/system/zfs-trim-monthly@.timer index 8c13ffb..c8930cb 100644 --- a/root/etc/systemd/system/zfs-trim-monthly@.timer +++ b/root/etc/systemd/system/zfs-trim-monthly@.timer @@ -3,7 +3,7 @@ Description=Monthly zpool trim timer for %i Documentation=man:zpool-trim(8) [Timer] -OnCalendar=monthly +OnCalendar=Sun *-*-01..07 02:00:00 Persistent=true RandomizedDelaySec=1h Unit=zfs-trim@%i.service