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

Adding cluster resources, constraints, and resource groups


In the previous chapter, we successfully installed and configured Corosync and Pacemaker on CentOS 7 and got our cluster running. Before you start adding resources, you must disable the STONITH option by issuing the following command:

pcs property set stonith-enabled=false

Note

STONITH is a cluster node fencing feature and is enabled by default. There is a whole chapter that is dedicated to the STONITH fencing configuration, so we will currently disable the STONITH option and get back to it later on.

Note that the STONITH option should always be enabled in production systems.

Validate your cluster configuration. The output of the crm_verify command should be without any errors. In the following screenshot, we can see the crm_verify command used to check the cluster configuration for errors:

Configuring resources

Currently, your cluster is lacking resources. It is time to learn how to add new resources to your cluster.

The syntax used to...