Book Image

CentOS High Availability

Book Image

CentOS High Availability

Overview of this book

Table of Contents (21 chapters)
CentOS High Availability
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Two-node cluster configuration


As I said, the first option is to reconfigure your cluster to be quorate with only one active cluster node. To do so, you must edit the cluster.conf configuration file and tell the cluster that you are running a two-node cluster configuration and the number of expected votes to reach quorum is 1. You can achieve this by executing the following line:

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

Note

  • two_node="1": This parameter tells the cluster that it is running a two-node cluster configuration

  • expected_votes="1": This parameter is the number of votes expected for the cluster to be quorate

You can download an example two-node cluster.conf configuration file from the cman-conf-2.txt file from the code bundle.

Tip

You must always disable fencing in a two-node cluster configuration without a quorum disk in order to avoid fence race scenarios, where the two cluster nodes kill each other.