Setting up the cluster in Linux 7.x
Perform the following steps:
- Install the Red Hat High Availability Add-On software packages along with all available fence agents from the High Availability channel running the following command:
yum install pcs pacemaker fence-agents-all
- Disable the firewall service by running the following command:
systemctl disable firewalld.service
- To use pcs to configure the cluster and communication among nodes, set a password on each node for the user ID on each node in the cluster, by running the following command:
passwd haclusterIt is recommended that the password for user
haclusterbe the same on each node.
- On each node in the cluster, execute the following commands to start the pcsd service and to enable pcsd at system start:
systemctl start pcsd.service
systemctl enable pcsd.service
Authenticate the pcs user
haclusterfor each node in the cluster on the node from which you will run pcs.
For example, the z.example.com is a two-node cluster, where z1.example.com and z2.example.com are the nodes. For each node in the cluster, the following commands authenticate the user
pcs cluster auth z1.example.com z2.example.com
- Configure pcs cluster by using the following link and using the
- Click Manage Clusters, and select Create to create a cluster.
Set the following properties:
pcs property set stonith-enabled=false
pcs property set no-quorum-policy=ignore
Create a partition on one node and save it.
To create filesystem shared disk on two nodes, use the following commands on the nodes:
mkfs-ext4 /dev/<partition name>
Go to https://z.example.com:2224 and add the filesystem & IP address.
Restart the server.