diff options
author | lidl <lidl@FreeBSD.org> | 2015-12-23 21:59:38 +0000 |
---|---|---|
committer | lidl <lidl@FreeBSD.org> | 2015-12-23 21:59:38 +0000 |
commit | c598c5a4e9a7ae898a6d899b47c0e01f760c95c1 (patch) | |
tree | 709f0a7a012b24879426b8c81794ebc1e2241314 /etc | |
parent | 8d600f995bdad830aacc775d19cd7c7178c78119 (diff) | |
download | FreeBSD-src-c598c5a4e9a7ae898a6d899b47c0e01f760c95c1.zip FreeBSD-src-c598c5a4e9a7ae898a6d899b47c0e01f760c95c1.tar.gz |
MFC r292313:
Skip unavailable pools when running zfs pool scrubs
Approved by: rpaulo (mentor)
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/periodic/daily/800.scrub-zfs | 4 |
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 |