Hello all,
I have a 2 node cluster and a raspberry pi as a Qdevice with VMs and CT's configured as HA.
In the event of a power outage my UPS will run a script (after 10 minutes on battery) to shutdown the 2 nodes and the Pi.
In order to prevent any issues during the shutdown the script connects to my primary nodes and runs this script which disables HA for all VM and CT:
After 30 seconds the UPS script will ssh into each node and issue a shutdown.
Is this adequate to prevent any issues or shuffling of guests during the shutdown? Should there be any issues when starting the nodes again? I would issue the same script above but with "enable".
I also read about doing this before shutting down the nodes:
Is the latter a "better" approach?
Hope this makes sense and I welcome your thoughts!
I have a 2 node cluster and a raspberry pi as a Qdevice with VMs and CT's configured as HA.
In the event of a power outage my UPS will run a script (after 10 minutes on battery) to shutdown the 2 nodes and the Pi.
In order to prevent any issues during the shutdown the script connects to my primary nodes and runs this script which disables HA for all VM and CT:
Code:
ha-manager status | \
grep started | \
awk '{print $2}' | \
xargs -n 1 ha-manager set --state disabled
After 30 seconds the UPS script will ssh into each node and issue a shutdown.
Is this adequate to prevent any issues or shuffling of guests during the shutdown? Should there be any issues when starting the nodes again? I would issue the same script above but with "enable".
I also read about doing this before shutting down the nodes:
- systemctl stop pve-ha-lrm
- systemctl stop pve-ha-crm
Is the latter a "better" approach?
Hope this makes sense and I welcome your thoughts!