I'm having a few issues trying to understand ha.cf and how the cluster picks up on updates.
For example, when creating a new cluster, I usually:
- Set some default options in ha.cf on node 1 - node x
- Start the cluster.
- Run crm on any node, configure resources.
Whilst I usually do nodes up/down, resources up/down, I have never actually added a new node at a later date.
Just for "fun", I decided to run a new server that only specified one node in the cluster in it's ha.cf, and then start heartbeat.
This machine successfully joined the cluster and added itself to every other node in the cluster.... Where I get confused is that even if I shutdown all nodes, and reboot the original 2 nodes, they both still have the third server as in the cluster but offline, despite the third not being in the original 2 node's ha.cf file.
Even if I edit ha.cf and change some nonsense value/or touch the file, reboot the server and cluster, it is still there. So my conclusion is that CIB takes preference over ha.cf, but, what I don't get is why/how.
I'm really looking for best practices - should any machine just have enough in ha.cf to "get it up", then do everythign in CRM? Is ha.cf a waste of time, or should I be using it a lot more?
Trying not to be so vague - I'm really just looking for what I should be doing in CRM, and what I should be doing in ha.cf?
Thanks,
Wil