Because of ha settings, I would like to ask what services would ideally be stopped, in order to issue a shutdown by an usv-triggered event. Could the bash skript look something like this?
Thanks in advance for answering me, which services should be stopped to prevent HA doing HA things like trying to migrate because of server shutdown.
Code:
ssh root@1.2.3.4 "<systemctl stop pve-ha-lrm> && <systemctl stop pve-ha-crm> && <shutdown -hP now>" && ssh root@1.2.3.5 "<systemctl stop pve-ha-lrm> && <systemctl stop pve-ha-crm> && <shutdown -hP now>" && shutdown -hP now