I have a 2 node cluster running Corosync and Pacemaker. If I physically unplug the network cable on one node, the other one becomes standalone.
But when I plug the network cable back in, I want it to automatically join the cluster, without any other human interference.
Is that doable?
Best Answer
Yes it is, but you'll need to use some sort of reliable fencing/stonith; this will trigger a reboot of one node when you pull the network, allowing it to rejoin on startup: http://clusterlabs.org/doc/crm_fencing.html
Fencing is a very important, and often overlooked, concept in clustering.
You should also look into configuring redundant ring support in Corosync to avoid cluster partitions when there is a problem with a single communication link.