# on one node (or more if you like):
# remember wanted HA service stati, might not be 'started' for some
ha-manager status |grep service | awk '{print $2 " " $4}' |tr -d ')' |tee /var/tmp/ha-service-stati.txt
for service in $(ha-manager status | grep service | awk '{print $2}'); do ha-manager set $service --state ignored; done
# on all nodes stop HA services:
# wait for state switch to 'ignored' is distribured:
ha-manager status
# not before all are 'ignored', stop HA services, feel free to add sleeps inbetween:
systemctl stop pve-ha-lrm.service
systemctl stop pve-ha-crm.service
systemctl stop watchdog-mux
# optionally check services are stopped
systemctl status watchdog-mux pve-ha-crm pve-ha-lrm
# optionally check if watchdog module is unused now
lsmod |grep dog
# perform network maintenance
# on all nodes: Start HA services, better with a moment inbetween:
systemctl start watchdog-mux
sleep 3
systemctl start pve-ha-crm.service
sleep 3
systemctl start pve-ha-lrm.service
# optionally check that services are up again, if not retry starting them:
systemctl status watchdog-mux pve-ha-crm pve-ha-lrm
ha-manager status
# on one node you rememberd the original wanted HA service stati:
cat /var/tmp/ha-service-stati.txt |while read HA_SERVICE_STATE ; do
HA_SERVICE=$(echo "$HA_SERVICE_STATE" |cut -f1 -d ' ')
HA_STATE=$(echo "$HA_SERVICE_STATE" |cut -f2 -d ' ')
echo "Calling ha-manager set ${HA_SERVICE} --state ${HA_STATE}"
ha-manager set ${HA_SERVICE} --state ${HA_STATE}
done