This article will help you to setup High Availability NFS server using Pacemaker on Redhat Enterprise Linux 7. From the scratch ,we will build the pacemaker blocks which includes package installation , configuring the HA resources, fencing etc. NFS shares are used for setting up the home directories and sharing the same content across multiple servers. NFS HA will suit for customers who can’t afford NAS storage. You might have followed Pacemaker articles on UnixArena where we have setup Failover KVM VM and GFS earlier. If not , please go through it to understand the various component of pacemaker and how it works. This article is not going to cover in-depth.
Assumptions:
- Two servers installed with RHEL 7.x (Hosts- UA-HA1 / UA-HA2)
- Access to Redhat Repository or Local Repository to install packages.
- SELINUX & Firewalld can be turned off.
1. Login to the each node as root user and install the package .
2. Disable SELINUX on both the nodes.
3. Disable firewalld on both the hosts
4. Enable and Start the Services on both the Nodes.
5. On each nodes, set the password for hauser.
6.Login to any of the cluster node and authenticate “hacluster” user.
7. Create a new cluster using pcs command. The cluster name is “UACLS”.
8. Start the cluster using pcs command. “–all” will start the cluster on all the configured nodes.
9. Check the corosync communication status.This command output should show that which IP has been used for heartbeat. Refer configure-redundant-corosync
# corosync-cfgtool –s
10. Disable STONITH to avoid issues while configuring the resources. Once we complete the cluster setup, we will enable the fencing back.
10. Configure the fencing (STONITH) using ipmilan.
These IP’s are IDRAC console IP used for fencing.
11. Verify the cluster configuration.
12. Configure the volume group and Logical volume.
12. Create a filesystem. (Let’s go with XFS)
13. Modify LVM configuration similar to below. Assuming that all the volume groups are used in cluster. If you have root vg , you need to specify in lvm.conf for automatic import.
14.Configure symmetric cluster property and check the status.
Leave A Comment