Remove manual zfs scrub timer+service, provided by sanoid RPM
This commit is contained in:
parent
d343e5fe39
commit
99db442590
29
build.sh
29
build.sh
|
@ -24,35 +24,6 @@ ADDPKGS=(
|
|||
## Add gregw/extras COPR
|
||||
curl -so /etc/yum.repos.d/gregw-extras-fedora-40.repo https://copr.fedorainfracloud.org/coprs/gregw/extras/repo/fedora-40/gregw-extras-fedora-40.repo
|
||||
|
||||
## Add systemd timers for periodic ZFS scrubs
|
||||
cat << EOF > /usr/lib/systemd/zfs-scrub@.service
|
||||
[Unit]
|
||||
Description=zpool scrub on %i
|
||||
|
||||
[Service]
|
||||
Nice=19
|
||||
IOSchedulingClass=idle
|
||||
KillSignal=SIGINT
|
||||
ExecStart=/usr/sbin/zpool scrub %i
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
|
||||
cat << EOF > /usr/lib//systemd/system/zfs-scrub@.timer
|
||||
[Unit]
|
||||
Description=Weekly zpool scrub on %i
|
||||
|
||||
[Timer]
|
||||
OnCalendar=Mon *-*-* 04:00:00
|
||||
AccuracySec=1h
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
|
||||
|
||||
RMSTRING=""
|
||||
ADDSTRING=""
|
||||
|
||||
|
|
Loading…
Reference in New Issue