miyagi-backup.sh aktualisiert
scrub fix
This commit is contained in:
+17
-5
@@ -140,18 +140,30 @@ run_maintenance() {
|
||||
|
||||
run_scrub_stop_src() {
|
||||
ssh root@"$SOURCEHOST" 'for pool in $(zpool list -H -o name); do
|
||||
echo " Stoppe Scrub auf Pool: $pool"
|
||||
zpool scrub -s "$pool"
|
||||
echo "Stoppe Scrub auf Pool: $pool"
|
||||
if zpool status "$pool" | grep -q "scrub in progress"; then
|
||||
if zpool scrub -s "$pool"; then
|
||||
echo "Scrub auf $pool gestoppt"
|
||||
else
|
||||
echo "Fehler beim Stoppen des Scrubs auf $pool"
|
||||
fi
|
||||
else
|
||||
echo "Kein aktiver Scrub auf $pool"
|
||||
fi
|
||||
done'
|
||||
}
|
||||
|
||||
run_scrub_stop_local() {
|
||||
for pool in $(zpool list -H -o name); do
|
||||
echo " Stoppe Scrub auf Pool: $pool"
|
||||
echo "Stoppe Scrub auf Pool: $pool"
|
||||
if zpool status "$pool" | grep -q "scrub in progress"; then
|
||||
if zpool scrub -s "$pool"; then
|
||||
echo " Scrub auf $pool gestoppt"
|
||||
echo "Scrub auf $pool gestoppt"
|
||||
else
|
||||
echo " Fehler beim Stoppen des Scrubs auf $pool"
|
||||
echo "Fehler beim Stoppen des Scrubs auf $pool"
|
||||
fi
|
||||
else
|
||||
echo "Kein aktiver Scrub auf $pool"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user