summaryrefslogtreecommitdiffstats
path: root/etc/periodic
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2016-02-05 18:17:37 +0000
committermav <mav@FreeBSD.org>2016-02-05 18:17:37 +0000
commitd6ed13470ae8ba961478892aefbc84081c8ece1b (patch)
tree98d221f115559020bbb1a2d5cdaa0ea002ab7436 /etc/periodic
parentc212e48d5be4c79d408a59189b0eddbaed1585bc (diff)
downloadFreeBSD-src-d6ed13470ae8ba961478892aefbc84081c8ece1b.zip
FreeBSD-src-d6ed13470ae8ba961478892aefbc84081c8ece1b.tar.gz
Update script for modern `zpool status` output.
Diffstat (limited to 'etc/periodic')
-rwxr-xr-xetc/periodic/daily/800.scrub-zfs5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/periodic/daily/800.scrub-zfs b/etc/periodic/daily/800.scrub-zfs
index b7a009d..64eac99 100755
--- a/etc/periodic/daily/800.scrub-zfs
+++ b/etc/periodic/daily/800.scrub-zfs
@@ -78,11 +78,14 @@ case "$daily_scrub_zfs_enable" in
continue
fi
- _status="$(zpool status ${pool} | grep scrub:)"
+ _status="$(zpool status ${pool} | grep scan:)"
case "${_status}" in
*"scrub in progress"*)
echo " scrubbing of pool '${pool}' already in progress, skipping:"
;;
+ *"resilver in progress"*)
+ echo " resilvering of pool '${pool}' is in progress, skipping:"
+ ;;
*"none requested"*)
echo " starting first scrub (since reboot) of pool '${pool}':"
zpool scrub ${pool}
OpenPOWER on IntegriCloud