mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-17 02:33:17 +02:00
10 lines
246 B
Bash
10 lines
246 B
Bash
#!/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
|