Site icon UnixArena

How to Configure Redhat Cluster in Linux ?

Once the redhat cluster package installation has been done,you can start configuring new cluster using luci which is web based graphical user interface available in Redhat Linux. Luci can be installed any management host(Redhat Linux  to manage all the Redat clusters which are available in your environment.) Here i have installed “luci” on the one of the cluster since this is a test environment.You can access the luci web interface using hostname or IP address from the web browser(Refer:screenshots). Unlike Sun cluster configuration, this is very simple one and easy to implement as well.

Server Names: UANODE1P(192.168.2.200),UANODE2P(192.168.2.201)
Cluster Alias: UANODE1(192.168.2.210),UANODE2(192.168.2.211)

In this setup,i have installed luci on UANODE2P server but this can be installed on any Redhat Linux node. LUCI provides a web interface for redhat cluster management. 

1. Login to UANODE1P and configure new IP(192.168.2.210) with host alias UANODE1.

[root@UANODE1P ~]# ifconfig  bond1
bond1 Link encap:Ethernet HWaddr 00:1B:ED:1C:28:5A
inet addr:192.168.2.210 Bcast:172.16.25.63 Mask:255.255.255.224
inet6 addr: fe80::20b:cdff:fe1c:185a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2341604 errors:0 dropped:0 overruns:0 frame:0
TX packets:2217673 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:293460932 (279.8 MiB) TX bytes:1042006549 (993.7 MiB)
Interrupt:185 Memory:f7fe0000-f7ff0000

System’s  /etc/host file may be having the below entries on both node.
192.168.2.200                UANODE1P
192.168.2.201                UANODE2P

Add the below entries to /etc/hosts file on both the servers.
192.168.2.210                UANODE1
192.168.2.211                UANODE2

2.Login to UANODE2P and configure new IP with host alias UANODE2.

[root@UANODE2P ~]# ifconfig  bond1
bond1 Link encap:Ethernet HWaddr 00:1B:ED:1C:28:5A
inet addr:192.168.2.211 Bcast:172.16.25.63 Mask:255.255.255.224
inet6 addr: fe80::20b:cdff:fe1c:185a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2341604 errors:0 dropped:0 overruns:0 frame:0
TX packets:2217673 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:293460932 (279.8 MiB) TX bytes:1042006549 (993.7 MiB)
Interrupt:185 Memory:f7fe0000-f7ff0000



3. Login to luci web-interface using root user.




























4.From the home page , Navigate  the windows to ” Manage Cluster”













5.Click on Create a new Cluster link. 

6.Enter the cluster node details and cluster name.Provide “ricci” account password here.
Redhat cluster will send heartbeat using this alias name.That’s the reason we have separated  the public network by configuring new IP’s (Step 1 & 2).
You may get the below error while creating the cluster.
The following errors occurred while creating cluster “UACL1”:Unable to establish an SSL connection to UANODE1:11111 after 5 tries.Is the ricci service running ? : Operation already in progress, Authentication to the ricci agent at UANODE2:11111 failed.
To fix the above error.
1.Start the ricci services on both the nodes
2.Set the password for “ricci” account on both nodes and enter the same here.

Cluster creation on the progress.

7.After creation of Cluster,Just join nodes in cluster by clicking “Join Cluster” link.

8.You will get the notification is that cluster services are started or not.

9.Just refresh the window and see both nodes will shows as cluster nodes.

10.You can also view the cluster status from the command level.
[root@UANODE1 ~]# clustat
Cluster Status for UACL1 @ Sun Oct 13 12:47:10 2013
Member Status: Quorate
Member Name ID Status
------ ---- ---- ------
UANODE1 1 Online, Local
UANODE2 2 Online
[root@UANODE1 ~]#

So we just added the nodes in cluster .Still there are plenty of work to do on this configuration to use it in production.

Pending items in Redhat cluster configuration:
1.We need to configure the fencing to reboot/halt the nodes if any network partition or server hung happens.
2. Need to Configure the service group with KVM virtual machines and make sure that redhat cluster provides high availability to the VM’s.

Hope I will come up with the above setup soon to provide the complete live cluster environment.Mean time you can try the above things and let us know if you have any issues.
Exit mobile version