Lines Matching refs:pool
30 for pool in ${daily_scrub_zfs_pools}; do
32 _status=$(zpool list "${pool}" 2> /dev/null)
35 echo " WARNING: pool '${pool}' specified in"
44 echo "Skipping faulted pool: ${pool}"
48 echo "Skipping unavailable pool: ${pool}"
53 eval _pool_threshold=\${daily_scrub_zfs_$(echo "${pool}"|tr ".:-" "_")_threshold}
58 _last_scrub=$(zpool history ${pool} | \
59 egrep "^[0-9\.\:\-]{19} zpool scrub ${pool}\$" | tail -1 |\
62 # creation time of the pool if no scrub was done
63 _last_scrub=$(zpool history ${pool} | \
67 echo " skipping scrubbing of pool '${pool}':"
76 echo " skipping scrubbing of pool '${pool}':"
81 _status="$(zpool status ${pool} | grep scan:)"
84 echo " scrubbing of pool '${pool}' already in progress, skipping:"
87 echo " resilvering of pool '${pool}' is in progress, skipping:"
90 echo " starting first scrub (since reboot) of pool '${pool}':"
91 zpool scrub ${pool}
95 echo " starting scrub of pool '${pool}':"
96 zpool scrub ${pool}
101 echo " consult 'zpool status ${pool}' for the result"