HA Cluster

nitaish

Well-Known Member
Feb 1, 2014
53
4
48
Mumbai
www.techknowlogy.in
I have setup a HA cluster in Proxmox 4.2 with 3 nodes. I created a VM and enabled HA for the same. However, I can see the VM only in the node that I created, it does not show it in the second and the third nodes. How can I verify if the VM is indeed configured in HA and will start from another node if the primary node is down?
 
I have setup a HA cluster in Proxmox 4.2 with 3 nodes. I created a VM and enabled HA for the same. However, I can see the VM only in the node that I created, it does not show it in the second and the third nodes. How can I verify if the VM is indeed configured in HA and will start from another node if the primary node is down?

unplug the power cord of the host and the VM should be started on another host.
 
Yes, it will stay on the recovery node. Also, you don't just reboot the protected node to test it. It literally must be unplugged. Also, make sure your fencing is working well in the Datacenter->HA tab.
 
Th simplest test is, I think, reboot node on which your VM is running.
Nope, unfortunately PM does not migrate resources for a planed/clean reboot unlike most software clusters do. It will force stop running VM/CT instead and then reboot.
I'd like to see an option (HA group level) to automatically migrate HA resources in case of reboot in order to avoid to manually do it.
 
Last edited:
I successfully tested the HA. However, after the first node came up, the VMs did not move back to the first node. Is it a normal behavior?
I think you have to play with nofailover (disable) option in HA group configuration to do that. And configure nodes preference. If node1 is preferred over node2 and node3 in a HA group and it fails, VMs will be migrated to node2 and node3 and then automatically failed back to node1 once available again. If nofailover option is enabled, VMs won't fail back to node1.