Update to 2021-12-01 19:13

This commit is contained in:
Daniel Berteaud
2021-12-01 19:13:34 +01:00
commit 4c4556c660
2153 changed files with 60999 additions and 0 deletions

View File

@@ -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

View File

@@ -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