Starting with base options
Pacemaker, as a cluster resource manager, has some defaults that we are interested in changing. As Pacemaker is so powerful, it makes several assumptions about the composition of cluster resources and nodes it controls. One of which is that there are several nodes, and not just two.
This works well for large cooperative networks of web servers or independent services which can operate in a transient manner. However, we have two nodes that are very much dependent on shared storage that can only be used by one node at a time. So, in this recipe, we are going to perform three tasks:
- Disable STONITH because we don't currently have STONITH-enabled hardware
- Disable cluster quorum because two systems cannot produce a meaningful vote
- Enable resource stickiness to prevent disruptive automated node swaps
Getting ready
As we're continuing to configure Corosync and Pacemaker, make sure you've followed all previous recipes.
How to do it...
For this recipe, we will use...