Ansible roles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

9 lines
246 B

#!/bin/bash -e
# Resume all suspended pool scrubs
for ZPOOL in $(zpool list -H -o name); do
if [ $(zpool status $ZPOOL | grep -c 'scrub paused') -ge 1 ]; then
echo scrub paused for pool $ZPOOL, resuming it
zpool scrub $ZPOOL
fi
done