Redhat Cluster High Availability Installation – Part 2


In previous article, we have discussed how to install the Redhat HA cluster setup. Here we are going to see how to add the nodes to cluster.

Please follow the below steps in both nodes (cnode1 & cnode2).

Step 1: YUM client configuation

[root@cnode1 ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.1.100 cluster.example.com cluster
192.168.1.201 cnode1.example.com cnode1
192.168.1.202 cnode2.example.com cnode2

[root@cnode1 ~]# mount -t iso9660 /dev/sr0 /mnt/
mount: block device /dev/sr0 is write-protected, mounting read-only

[root@cnode1 ~]# rpm -ivh /mnt/Packages/vsftpd-2.2.2-11.el6_4.1.x86_64.rpm
warning: /mnt/Packages/vsftpd-2.2.2-11.el6_4.1.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing... ########################################### [100%]
1:vsftpd ########################################### [100%]

[root@cnode1 ~]# /etc/init.d/iptables stop
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Flushing firewall rules: [ OK ]
iptables: Unloading modules: [ OK ]

[root@cnode1 ~]# /etc/init.d/ip6tables stop
ip6tables: Setting chains to policy ACCEPT: filter [ OK ]
ip6tables: Flushing firewall rules: [ OK ]
ip6tables: Unloading modules: [ OK ]

[root@cnode1 ~]# chkconfig iptables off
[root@cnode1 ~]# chkconfig ip6tables off
[root@cnode1 ~]# chkconfig vsftpd on

Disable SELINUX Policy

[root@cnode1 ~]# setenforce 0

Step 2: Install ricci package

Install ricci and set the password for the ricci user

[root@cnode1 ~]# yum -y install ricci

It is very important to set the password for ricci user. If you didn’t do this we can’t add the host to the cluster. For safety purpose, assign your root password for ricci user.

[root@cnode1 ~]# passwd ricci

[root@cnode1 ~]# /etc/init.d/ricci start
Starting system message bus: [ OK ]
Starting oddjobd: [ OK ]
generating SSL certificates... done
Generating NSS database... done
Starting ricci: [ OK ]

[root@cnode1 ~]# chkconfig ricci on

Step 3: Install and configure iSCSI initiator

[root@cnode1 ~]# yum -y install iscsi-initiator-utils

[root@cnode1 ~]# iscsiadm --mode discovery -t st -p 192.168.1.100
Starting iscsid: [ OK ]
192.168.1.100:3260,1 iqn.2015-09.com.tcs:haqdisk
192.168.1.100:3260,1 iqn.2015-09.com.tcs:hawebdisk

[root@cnode1 ~]# iscsiadm --mode node -P 192.168.1.100:3260,1 iqn.2015-09.com.tcs:hawebdisk --login
Logging in to [iface: default, target: iqn.2015-09.com.tcs:haqdisk, portal: 192.168.1.100,3260] (multiple)
Logging in to [iface: default, target: iqn.2015-09.com.tcs:hawebdisk, portal: 192.168.1.100,3260] (multiple)
Login to [iface: default, target: iqn.2015-09.com.tcs:haqdisk, portal: 192.168.1.100,3260] successful.
Login to [iface: default, target: iqn.2015-09.com.tcs:hawebdisk, portal: 192.168.1.100,3260] successful.

Step 4: Add the nodes to HA Cluster

Open the web browser and type “https://192.168.1.100:8084 or https://cluster.example.com:8084” and accept the certificate warning message.

Now, use your cluster host root credentials to login in to CONGA console.

  1. Click “Managae Cluster” in Right Side column
  2. Click “Create” button
  3. Enter the “Cluster Name” ie., Linux_HA
  4. Enter Node name and password in respective column, and use “Add Another Node” button to add additonal nodes ie., 192.168.1.201 and 192.168.1.202
  5. Select “Download Packages”
  6. Click “Enabled Shared Storage Support”
  7. Finally click “Create Cluster”

Now your nodes are started to add in the Cluster. Using ” tail -f /var/log/messages” command you can see the installation progress on both nodes.

[root@cnode1 ~]# tail -f /var/log/messages
...
...
Sep 22 15:45:54 cnode1 yum[1485]: Installed: libtalloc-2.0.7-2.el6.x86_64
Sep 22 15:45:55 cnode1 yum[1485]: Installed: libgssglue-0.1-11.el6.x86_64
Sep 22 15:45:55 cnode1 yum[1485]: Installed: libtevent-0.9.18-3.el6.x86_64
...
...
Sep 22 15:47:12 cnode1 rgmanager[3208]: Initializing Services
Sep 22 15:47:12 cnode1 rgmanager[3208]: Services Initialized
Sep 22 15:47:12 cnode1 rgmanager[3208]: State change: Local UP
Sep 22 15:47:12 cnode1 rgmanager[3208]: State change: 192.168.1.202 UP

[root@cnode1 ~]# clustat
Cluster Status for Linux_HA @ Tue Sep 22 16:18:29 2015
Member Status: Quorate

Member Name ID Status
—— —- —- ——
192.168.1.201 1 Online, Local
192.168.1.202 2 Online

That’s all. Now both nodes are added to your cluster machine.