From c4934dc271fc2d6773bf2e42123d519f06b45596 Mon Sep 17 00:00:00 2001 From: BrainwreckedTech <3752022+BrainwreckedTech@users.noreply.github.com> Date: Mon, 5 Jul 2021 00:06:27 -0400 Subject: [PATCH] Added zpool scrub timer/service --- zfs-scrub@.service | 11 +++++++++++ zfs-scrub@.timer | 10 ++++++++++ 2 files changed, 21 insertions(+) create mode 100644 zfs-scrub@.service create mode 100644 zfs-scrub@.timer diff --git a/zfs-scrub@.service b/zfs-scrub@.service new file mode 100644 index 0000000..2a78d80 --- /dev/null +++ b/zfs-scrub@.service @@ -0,0 +1,11 @@ +[Unit] +Description=zpool scrub on %i + +[Service] +Nice=19 +IOSchedulingClass=idle +KillSignal=SIGINT +ExecStart=/usr/bin/zpool scrub %i + +[Install] +WantedBy=multi-user.target diff --git a/zfs-scrub@.timer b/zfs-scrub@.timer new file mode 100644 index 0000000..506b5b2 --- /dev/null +++ b/zfs-scrub@.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Monthly zpool scrub on %i + +[Timer] +OnCalendar=Sun *-*-1..7 00:00:00 +AccuracySec=1h +Persistent=true + +[Install] +WantedBy=multi-user.target