parent
3849618d5d
commit
92749ddfe4
3 changed files with 25 additions and 0 deletions
@ -0,0 +1,9 @@ |
||||
#!/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 |
@ -0,0 +1,9 @@ |
||||
#!/bin/bash -e |
||||
|
||||
# Suspend any running pool scrubs |
||||
for ZPOOL in $(zpool list -H -o name); do |
||||
if [ $(zpool status $ZPOOL | grep -c 'scrub in progress') -ge 1 ]; then |
||||
echo scrub running for pool $ZPOOL, suspending it |
||||
zpool scrub -p $ZPOOL |
||||
fi |
||||
done |
Loading…
Reference in new issue