diff options
author | mav <mav@FreeBSD.org> | 2016-02-05 18:17:37 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2016-02-05 18:17:37 +0000 |
commit | d6ed13470ae8ba961478892aefbc84081c8ece1b (patch) | |
tree | 98d221f115559020bbb1a2d5cdaa0ea002ab7436 /etc/periodic | |
parent | c212e48d5be4c79d408a59189b0eddbaed1585bc (diff) | |
download | FreeBSD-src-d6ed13470ae8ba961478892aefbc84081c8ece1b.zip FreeBSD-src-d6ed13470ae8ba961478892aefbc84081c8ece1b.tar.gz |
Update script for modern `zpool status` output.
Diffstat (limited to 'etc/periodic')
-rwxr-xr-x | etc/periodic/daily/800.scrub-zfs | 5 |
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} |