pve: better status text
This commit is contained in:
@@ -14,7 +14,7 @@ alias rup="restic -q -r local:/root/jc/restic/"$HOSTNAME" -p /root/jc/restic/pas
|
|||||||
#TODO: restic -p ~/jc/restic/passwd -r local:"??no more nas??/restic/$HOSTNAME" init
|
#TODO: restic -p ~/jc/restic/passwd -r local:"??no more nas??/restic/$HOSTNAME" init
|
||||||
|
|
||||||
function waitNoRunning {
|
function waitNoRunning {
|
||||||
echo '- - - - - - - - Waiting VMs to migrate or shutdown 200s - - - - - - - -'
|
echo '- - - - - Waiting for CEPH health + VMs to migrate or shutdown 200s - - - - -'
|
||||||
while true; do
|
while true; do
|
||||||
if /root/admin_scripts/confirm_norunning.sh "$@" >/dev/null; then
|
if /root/admin_scripts/confirm_norunning.sh "$@" >/dev/null; then
|
||||||
return
|
return
|
||||||
@@ -33,7 +33,7 @@ function upg {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if ! timeout 200 bash -c waitNoRunning 0; then
|
if ! timeout 200 bash -c waitNoRunning 0; then
|
||||||
tgmsg 'ERROR: upg: running VMs before upgrade'
|
tgmsg 'ERROR: upg: CEPH unhealthy or running VMs before upgrade'
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -100,7 +100,7 @@ function on {
|
|||||||
_on "$HOSTNAME"
|
_on "$HOSTNAME"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo 're-enable resource affinities: ron'
|
echo 'PENDING: to re-enable resource affinities: $ ron'
|
||||||
}
|
}
|
||||||
|
|
||||||
alias h="echo 'avail cmds: off on roff ron | upg upgr | updl localprogress'"
|
alias h="echo 'avail cmds: off on roff ron | upg upgr | updl localprogress'"
|
||||||
|
|||||||
Reference in New Issue
Block a user