Lines Matching refs:pool
29 for pool in ${daily_scrub_zfs_pools}; do
31 _status=$(zpool list "${pool}" 2> /dev/null)
34 echo " WARNING: pool '${pool}' specified in"
43 echo "Skipping faulted pool: ${pool}"
47 echo "Skipping unavailable pool: ${pool}"
52 eval _pool_threshold=\${daily_scrub_zfs_$(echo "${pool}"|tr ".:-" "_")_threshold}
57 _last_scrub=$(zpool history ${pool} | \
58 egrep "^[0-9\.\:\-]{19} zpool scrub ${pool}\$" | tail -1 |\
62 _last_scrub=$(zpool history ${pool} | \
66 echo " skipping scrubbing of pool '${pool}':"
75 echo " skipping scrubbing of pool '${pool}':"
80 _status="$(zpool status ${pool} | grep scan:)"
83 echo " scrubbing of pool '${pool}' already in progress, skipping:"
86 echo " resilvering of pool '${pool}' is in progress, skipping:"
89 echo " starting first scrub (since reboot) of pool '${pool}':"
90 zpool scrub ${pool}
94 echo " starting scrub of pool '${pool}':"
95 zpool scrub ${pool}
100 echo " consult 'zpool status ${pool}' for the result"