From 337b6fc6c124cdab2f5cf3ce3fd750ae2fc46ae1 Mon Sep 17 00:00:00 2001 From: lidl Date: Wed, 16 Dec 2015 04:32:33 +0000 Subject: Skip unavailable pools when running zfs pool scrubs Approved by: rpaulo (mentor) Differential Revision: https://reviews.freebsd.org/D4588 --- etc/periodic/daily/800.scrub-zfs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'etc') diff --git a/etc/periodic/daily/800.scrub-zfs b/etc/periodic/daily/800.scrub-zfs index ee0e52a..359be13 100755 --- a/etc/periodic/daily/800.scrub-zfs +++ b/etc/periodic/daily/800.scrub-zfs @@ -43,6 +43,10 @@ case "$daily_scrub_zfs_enable" in rc=3 echo "Skipping faulted pool: ${pool}" continue ;; + *UNAVAIL*) + rc=4 + echo "Skipping unavailable pool: ${pool}" + continue ;; esac # determine how many days shall be between scrubs -- cgit v1.1