svn commit: r292313 - head/etc/periodic/daily

Kurt Lidl lidl at FreeBSD.org
Wed Dec 16 04:32:34 UTC 2015


Author: lidl
Date: Wed Dec 16 04:32:33 2015
New Revision: 292313
URL: https://svnweb.freebsd.org/changeset/base/292313

Log:
  Skip unavailable pools when running zfs pool scrubs
  
  Approved by:	rpaulo (mentor)
  Differential Revision:	https://reviews.freebsd.org/D4588

Modified:
  head/etc/periodic/daily/800.scrub-zfs

Modified: head/etc/periodic/daily/800.scrub-zfs
==============================================================================
--- head/etc/periodic/daily/800.scrub-zfs	Wed Dec 16 03:59:54 2015	(r292312)
+++ head/etc/periodic/daily/800.scrub-zfs	Wed Dec 16 04:32:33 2015	(r292313)
@@ -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


More information about the svn-src-all mailing list