summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorlidl <lidl@FreeBSD.org>2015-12-16 04:32:33 +0000
committerlidl <lidl@FreeBSD.org>2015-12-16 04:32:33 +0000
commit337b6fc6c124cdab2f5cf3ce3fd750ae2fc46ae1 (patch)
treebede321bfed64f6f983e0c969cd26e0008d909db /etc
parent15a44baef9f206de4d2c74a325fae0538bccca41 (diff)
downloadFreeBSD-src-337b6fc6c124cdab2f5cf3ce3fd750ae2fc46ae1.zip
FreeBSD-src-337b6fc6c124cdab2f5cf3ce3fd750ae2fc46ae1.tar.gz
Skip unavailable pools when running zfs pool scrubs
Approved by: rpaulo (mentor) Differential Revision: https://reviews.freebsd.org/D4588
Diffstat (limited to 'etc')
-rwxr-xr-xetc/periodic/daily/800.scrub-zfs4
1 files changed, 4 insertions, 0 deletions
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
OpenPOWER on IntegriCloud