Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
[ONE] # ccs -f /etc/cluster/cluster.conf --addfencedev pcmk agent=fence_pcmk
[ONE] # ccs -f /etc/cluster/cluster.conf --addmethod pcmk-redirect rsha1
[ONE] # ccs -f /etc/cluster/cluster.conf --addmethod pcmk-redirect rsha2
[ONE] # ccs -f /etc/cluster/cluster.conf --addfenceinst pcmk rsha1 pcmk-redirect port=rsha1
[ONE] # ccs -f /etc/cluster/cluster.conf --addfenceinst pcmk rsha2 pcmk-redirect port=rsha2
Note

When setting up a 2 node CMAN cluster, you need to specify some parameters on cluster.conf file to allow the cluster to bring online the hosts. Edit cluster.conf and change the following tag:

Code Block
<cman/>

to:

Code Block
<cman two_node="1" expected_votes="1"/>

At this point, you need to copy theĀ /etc/cluster/cluster.conf file over to every node that will form up your cluster.

CMAN was originally written for rgmanager and assumes the cluster should not start until the node has quorum, so before trying to start the cluster, disable this behavior:

...