]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
systemd: add weekly and monthly scrub timers
authorGeorgy Yakovlev <168902+gyakovlev@users.noreply.github.com>
Thu, 16 Dec 2021 19:47:22 +0000 (11:47 -0800)
committerGitHub <noreply@github.com>
Thu, 16 Dec 2021 19:47:22 +0000 (11:47 -0800)
commit2300621dc7450adccf86ddbf397c72f8e5e2d76c
treeda579686a40650ff2849da4ea9d9b0278c190eec
parentf291fa658efd146540b03ce386133632bde237bf
systemd: add weekly and monthly scrub timers

Timers can be enabled as follows:

systemctl enable zfs-scrub-weekly@rpool.timer --now
systemctl enable zfs-scrub-monthly@datapool.timer --now

Each timer will pull in zfs-scrub@${poolname}.service, which is not
schedule-specific.

Added PERIODIC SCRUB section to zpool-scrub.8.

Reviewed-by: Richard Laager <rlaager@wiktel.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Closes #12193
etc/systemd/system/.gitignore
etc/systemd/system/Makefile.am
etc/systemd/system/zfs-scrub-monthly@.timer.in [new file with mode: 0644]
etc/systemd/system/zfs-scrub-weekly@.timer.in [new file with mode: 0644]
etc/systemd/system/zfs-scrub@.service.in [new file with mode: 0644]
man/man8/zpool-scrub.8