...
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:
to:
|
Note | ||
---|---|---|
If you have problems with hosts disconnecting from cluster, you may need to force cluster communication over unicast instead of multicast:
|
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:
...
Code Block |
---|
[ONE] # pcs constraint colocation add abiquo_rs with ping-clone score=INFINITY |
And thats it! You can check the actual status of the cluster with crm_mon command:
...