Home / Redhat Cluster / Linux- How to Install Redhat Cluster Software ?

Linux- How to Install Redhat Cluster Software ?

I have been trying to post about redhat cluster from quite long time.But today only I got a time to write about it. Redhat Linux become quite popular and most of the low end and mid-range server are migrating from Unix to Redhat Linux.Once of the recent survey stated that RISC servers(Oracle’s SPARC/IBM’s POWER) shipment is keep on reducing every year and X86 servers shipment has been increased rapidly. Itanium(HP-UX) is not in that competition at all.Since Redhat Linux is emerging in the market and most of the companies are building redhat cluster for High Availability.
  
So Let me start from Redhat Cluster packages installation and many more posts will follow about redhat cluster configuration soon.


System Configuration:
UANODE1 – cluster node 1 (192.168.2.200)
UANODE2 – Cluster node 2 (192.168.2.201)
UACM  – Management server for luci. 

1. Login to both cluster nodes and install “rgmanager” using yum repository.By default it installs “cman” and “ricci”.

[root@UANODE1 ~]# yum install rgmanager
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package rgmanager.x86_64 0:3.0.12.1-12.el6 will be installed
---> Package sg3_utils.x86_64 0:1.28-4.el6 will be installed
---> Package telnet.x86_64 1:0.17-47.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=========================================================================

Package Arch Version Repository Size
=========================================================================

Installing:
rgmanager x86_64 3.0.12.1-12.el6 dvd-ha 184 k
Installing for dependencies:
cluster-glue-libs x86_64 1.0.5-6.el6 dvd-ha 116 k
clusterlib x86_64 3.0.12.1-32.el6 dvd-ha 96 k
cman x86_64 3.0.12.1-32.el6 dvd-ha 434 k
corosync x86_64 1.4.1-7.el6 dvd-ha 189 k
corosynclib x86_64 1.4.1-7.el6 dvd-ha 173 k
fence-agents x86_64 3.1.5-17.el6 dvd 150 k
fence-virt x86_64 0.2.3-9.el6 dvd-ha 36 k
ipmitool x86_64 1.8.11-13.el6 dvd 328 k
libibverbs x86_64 1.1.6-4.el6 dvd 45 k
librdmacm x86_64 1.0.15-2.el6 dvd 29 k
modcluster x86_64 0.16.2-18.el6 dvd-ha 191 k
net-snmp-utils x86_64 1:5.5-41.el6 dvd 170 k
openais x86_64 1.1.1-7.el6 dvd-ha 192 k
openaislib x86_64 1.1.1-7.el6 dvd-ha 82 k
perl-Net-Telnet noarch 3.03-11.el6 dvd 55 k
pexpect noarch 2.3-6.el6 dvd 147 k
python-suds noarch 0.4.1-3.el6 dvd 218 k
resource-agents x86_64 3.9.2-12.el6 dvd-ha 474 k
ricci x86_64 0.16.2-55.el6 dvd-ha 626 k
sg3_utils x86_64 1.28-4.el6 dvd 471 k
telnet x86_64 1:0.17-47.el6 dvd 58 k

Transaction Summary
=======================================================================

Install 22 Package(s)

Total download size: 4.4 M
Installed size: 13 M
Is this ok [y/N]: y
Downloading Packages:
-----------------------------------------------------------------------

Total 2.9

MB/s | 4.4 MB 00:01
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : libibverbs-1.1.6-4.el6.x86_64

1/22
Installing : librdmacm-1.0.15-2.el6.x86_64

2/22
Installing : corosynclib-1.4.1-7.el6.x86_64

3/22
Installing : corosync-1.4.1-7.el6.x86_64

4/22
Installing : clusterlib-3.0.12.1-32.el6.x86_64

5/22
Installing : modcluster-0.16.2-18.el6.x86_64

6/22
Installing : openaislib-1.1.1-7.el6.x86_64

7/22
Installing : openais-1.1.1-7.el6.x86_64

8/22
Installing : ricci-0.16.2-55.el6.x86_64

9/22
Installing : pexpect-2.3-6.el6.noarch

10/22
Installing : perl-Net-Telnet-3.03-11.el6.noarch

11/22
Installing : 1:telnet-0.17-47.el6.x86_64

12/22
Installing : cluster-glue-libs-1.0.5-6.el6.x86_64

13/22
Installing : resource-agents-3.9.2-12.el6.x86_64

14/22
Installing : 1:net-snmp-utils-5.5-41.el6.x86_64

15/22
Installing : ipmitool-1.8.11-13.el6.x86_64

16/22
Installing : python-suds-0.4.1-3.el6.noarch

17/22
Installing : fence-virt-0.2.3-9.el6.x86_64

18/22
Installing : sg3_utils-1.28-4.el6.x86_64

19/22
Installing : fence-agents-3.1.5-17.el6.x86_64

20/22
Installing : cman-3.0.12.1-32.el6.x86_64

21/22
Installing : rgmanager-3.0.12.1-12.el6.x86_64

22/22
dvd-ha/productid

| 1.7 kB 00:00 ...
Installed products updated.
Verifying : modcluster-0.16.2-18.el6.x86_64

1/22
Verifying : corosync-1.4.1-7.el6.x86_64

2/22
Verifying : sg3_utils-1.28-4.el6.x86_64

3/22
Verifying : fence-virt-0.2.3-9.el6.x86_64

4/22
Verifying : cman-3.0.12.1-32.el6.x86_64

5/22
Verifying : corosynclib-1.4.1-7.el6.x86_64

6/22
Verifying : python-suds-0.4.1-3.el6.noarch

7/22
Verifying : ipmitool-1.8.11-13.el6.x86_64

8/22
Verifying : openais-1.1.1-7.el6.x86_64

9/22
Verifying : openaislib-1.1.1-7.el6.x86_64

10/22
Verifying : 1:net-snmp-utils-5.5-41.el6.x86_64

11/22
Verifying : cluster-glue-libs-1.0.5-6.el6.x86_64

12/22
Verifying : 1:telnet-0.17-47.el6.x86_64

13/22
Verifying : perl-Net-Telnet-3.03-11.el6.noarch

14/22
Verifying : libibverbs-1.1.6-4.el6.x86_64

15/22
Verifying : pexpect-2.3-6.el6.noarch

16/22
Verifying : fence-agents-3.1.5-17.el6.x86_64

17/22
Verifying : clusterlib-3.0.12.1-32.el6.x86_64

18/22
Verifying : librdmacm-1.0.15-2.el6.x86_64

19/22
Verifying : rgmanager-3.0.12.1-12.el6.x86_64

20/22
Verifying : ricci-0.16.2-55.el6.x86_64

21/22
Verifying : resource-agents-3.9.2-12.el6.x86_64

22/22

Installed:
rgmanager.x86_64 0:3.0.12.1-12.el6

Dependency Installed:
cluster-glue-libs.x86_64 0:1.0.5-6.el6
clusterlib.x86_64 0:3.0.12.1-32.el6
cman.x86_64 0:3.0.12.1-32.el6
corosync.x86_64 0:1.4.1-7.el6
corosynclib.x86_64 0:1.4.1-7.el6
fence-agents.x86_64 0:3.1.5-17.el6
fence-virt.x86_64 0:0.2.3-9.el6
ipmitool.x86_64 0:1.8.11-13.el6
libibverbs.x86_64 0:1.1.6-4.el6
librdmacm.x86_64 0:1.0.15-2.el6
modcluster.x86_64 0:0.16.2-18.el6
net-snmp-utils.x86_64 1:5.5-41.el6
openais.x86_64 0:1.1.1-7.el6
openaislib.x86_64 0:1.1.1-7.el6
perl-Net-Telnet.noarch 0:3.03-11.el6
pexpect.noarch 0:2.3-6.el6
python-suds.noarch 0:0.4.1-3.el6
resource-agents.x86_64 0:3.9.2-12.el6
ricci.x86_64 0:0.16.2-55.el6
sg3_utils.x86_64 0:1.28-4.el6
telnet.x86_64 1:0.17-47.el6

Complete!
[root@UANODE1 ~]#

2.Verify the following packages are installed or not .

[root@UANODE1 ~]# yum install ricci
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Setting up Install Process
Package ricci-0.16.2-55.el6.x86_64 already installed and latest version
Nothing to do
[root@UANODE1 ~]# yum install cman
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Setting up Install Process
Package cman-3.0.12.1-32.el6.x86_64 already installed and latest version
Nothing to do
[root@UANODE1 ~]# yum install httpd
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Setting up Install Process
Package httpd-2.2.15-15.el6_2.1.x86_64 already installed and latest version
Nothing to do
[root@UANODE1 ~]#


3.To configure the redhat cluster, we need to install luci on non cluster node(Hostname-UACM).So that we will be having web interface accessibility in case of both cluster nodes down. 
Note:You can also install luci on the cluster node but if the configured luci node is down,then you may not able to manage cluster using luci.

[root@UACM ~]# yum install luci
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package luci.x86_64 0:0.26.0-13.el6 will be installed
---> Package python-markdown.noarch 0:2.0.1-3.1.el6 will be installed
---> Package python-peak-util-symbols.noarch 0:1.0-4.1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
luci x86_64 0.26.0-13.el6

dvd-ha 543 k
Installing for dependencies:
TurboGears2 noarch 2.0.3-4.el6 dvd 150 k
python-babel noarch 0.9.4-5.1.el6 dvd 1.4 M
python-cheetah x86_64 2.4.1-1.el6 dvd 364 k
python-decoratortools noarch 1.7-4.1.el6 dvd 27 k
python-formencode noarch 1.2.2-2.1.el6 dvd 245 k
python-genshi x86_64 0.5.1-7.1.el6 dvd 429 k
python-markdown noarch 2.0.1-3.1.el6 dvd 118 k
python-myghty noarch 1.1-11.el6 dvd 519 k
Transaction Summary
==========================================================================
Install 42 Package(s)

Total download size: 8.8 M
Installed size: 40 M
Is this ok [y/N]: y
Downloading Packages:
-----------------------------------------------------------------------------
Total 1.8

MB/s | 8.8 MB 00:04
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : python-paste-1.7.4-1.el6.noarch

1/42
Installing : python-setuptools-0.6.10-3.el6.noarch

2/42
Installing : python-webob-0.9.6.1-3.el6.noarch

3/42
Installing : python-paste-deploy-1.3.3-2.1.el6.noarch

4/42
Installing : python-decoratortools-1.7-4.1.el6.noarch

5/42
Installing : python-pygments-1.1.1-1.el6.noarch

6/42
Installing : python-routes-1.10.3-2.el6.noarch

7/42
Installing : python-tempita-0.4-2.el6.noarch

8/42
Installing : python-weberror-0.10.2-1.el6.noarch

9/42
Installing : python-webhelpers-0.6.4-4.el6.noarch

10/42
Installing : python-peak-util-addons-0.6-4.1.el6.noarch

11/42
Installing : python-webtest-1.2-2.el6.noarch

12/42
Installing : python-toscawidgets-0.9.8-1.el6.noarch

13/42
Installing : python-nose-0.10.4-3.1.el6.noarch

14/42
Installing : python-formencode-1.2.2-2.1.el6.noarch

15/42
Installing : python-sqlalchemy-0.5.5-3.el6_2.noarch

16/42
Installing : python-markdown-2.0.1-3.1.el6.noarch

17/42
Installing : python-cheetah-2.4.1-1.el6.x86_64

18/42
Installing : python-paste-script-1.7.3-4.el6.noarch

19/42
Installing : python-peak-util-symbols-1.0-4.1.el6.noarch

20/42
Installing : python-peak-util-assembler-0.5.1-1.el6.noarch

21/42
Installing : python-babel-0.9.4-5.1.el6.noarch

22/42
Installing : python-genshi-0.5.1-7.1.el6.x86_64

23/42
Installing : python-webflash-0.1-0.2.a9.el6.noarch

24/42
Installing : python-peak-util-extremes-1.1-4.1.el6.noarch

25/42
Installing : python-peak-rules-0.5a1.dev-9.2582.1.el6.noarch

26/42
Installing : python-prioritized-methods-0.2.1-5.1.el6.noarch

27/42
Installing : python-turbojson-1.2.1-8.1.el6.noarch

28/42
Installing : python-zope-filesystem-1-5.el6.x86_64

29/42
Installing : python-zope-interface-3.5.2-2.1.el6.x86_64

30/42
Installing : python-repoze-who-1.0.18-1.el6.noarch

31/42
Installing : python-transaction-1.0.1-1.el6.noarch

32/42
Installing : python-zope-sqlalchemy-0.4-3.el6.noarch

33/42
Installing : python-repoze-tm2-1.0-0.5.a4.el6.noarch

34/42
Installing : python-repoze-who-friendlyform-1.0-0.3.b3.el6.noarch

35/42
Installing : python-repoze-who-testutil-1.0-0.4.rc1.el6.noarch

36/42
Installing : python-repoze-what-1.0.8-6.el6.noarch

37/42
Installing : python-myghty-1.1-11.el6.noarch

38/42
Installing : python-pylons-0.9.7-2.el6.noarch

39/42
Installing : python-repoze-what-pylons-1.0-4.el6.noarch

40/42
Installing : TurboGears2-2.0.3-4.el6.noarch

41/42
Installing : luci-0.26.0-13.el6.x86_64

42/42
Installed products updated.
Verifying : python-myghty-1.1-11.el6.noarch

1/42
Verifying : python-zope-filesystem-1-5.el6.x86_64

2/42
Verifying : python-paste-1.7.4-1.el6.noarch

3/42
Verifying : python-repoze-what-1.0.8-6.el6.noarch

4/42
Verifying : python-peak-util-extremes-1.1-4.1.el6.noarch

5/42
Verifying : python-repoze-who-friendlyform-1.0-0.3.b3.el6.noarch

6/42
Verifying : python-repoze-who-1.0.18-1.el6.noarch

7/42
Verifying : python-peak-util-addons-0.6-4.1.el6.noarch

8/42
Verifying : python-webtest-1.2-2.el6.noarch

9/42
Verifying : python-pylons-0.9.7-2.el6.noarch

10/42
Verifying : TurboGears2-2.0.3-4.el6.noarch

11/42
Verifying : python-decoratortools-1.7-4.1.el6.noarch

12/42
Verifying : python-pygments-1.1.1-1.el6.noarch

13/42
Verifying : python-toscawidgets-0.9.8-1.el6.noarch

14/42
Verifying : python-webflash-0.1-0.2.a9.el6.noarch

15/42
Verifying : python-paste-script-1.7.3-4.el6.noarch

16/42
Verifying : python-nose-0.10.4-3.1.el6.noarch

17/42
Verifying : python-babel-0.9.4-5.1.el6.noarch

18/42
Verifying : python-tempita-0.4-2.el6.noarch

19/42
Verifying : python-transaction-1.0.1-1.el6.noarch

20/42
Verifying : python-repoze-who-testutil-1.0-0.4.rc1.el6.noarch

21/42
Verifying : python-peak-util-symbols-1.0-4.1.el6.noarch

22/42
Verifying : python-cheetah-2.4.1-1.el6.x86_64

23/42
Verifying : python-routes-1.10.3-2.el6.noarch

24/42
Verifying : python-repoze-what-pylons-1.0-4.el6.noarch

25/42
Verifying : python-webhelpers-0.6.4-4.el6.noarch

26/42
Verifying : python-markdown-2.0.1-3.1.el6.noarch

27/42
Verifying : python-setuptools-0.6.10-3.el6.noarch

28/42
Verifying : luci-0.26.0-13.el6.x86_64

29/42
Verifying : python-zope-sqlalchemy-0.4-3.el6.noarch

30/42
Verifying : python-peak-util-assembler-0.5.1-1.el6.noarch

31/42
Verifying : python-zope-interface-3.5.2-2.1.el6.x86_64

32/42
Verifying : python-formencode-1.2.2-2.1.el6.noarch

33/42
Verifying : python-paste-deploy-1.3.3-2.1.el6.noarch

34/42
Verifying : python-turbojson-1.2.1-8.1.el6.noarch

35/42
Verifying : python-genshi-0.5.1-7.1.el6.x86_64

36/42
Verifying : python-weberror-0.10.2-1.el6.noarch

37/42
Verifying : python-peak-rules-0.5a1.dev-9.2582.1.el6.noarch

38/42
Verifying : python-prioritized-methods-0.2.1-5.1.el6.noarch

39/42
Verifying : python-repoze-tm2-1.0-0.5.a4.el6.noarch

40/42
Verifying : python-webob-0.9.6.1-3.el6.noarch

41/42
Verifying : python-sqlalchemy-0.5.5-3.el6_2.noarch

42/42

Installed:
luci.x86_64 0:0.26.0-13.el6

Dependency Installed:
TurboGears2.noarch 0:2.0.3-4.el6 python-babel.noarch 0:0.9.4-5.1.el6
python-cheetah.x86_64 0:2.4.1-1.el6 python-decoratortools.noarch 0:1.7-4.1.el6
python-formencode.noarch 0:1.2.2-2.1.el6 python-genshi.x86_64 0:0.5.1-7.1.el6
python-markdown.noarch 0:2.0.1-3.1.el6 python-myghty.noarch 0:1.1-11.el6
python-nose.noarch 0:0.10.4-3.1.el6 python-paste.noarch 0:1.7.4-1.el6
python-paste-deploy.noarch 0:1.3.3-2.1.el6 python-paste-script.noarch 0:1.7.3-4.el6
python-peak-rules.noarch 0:0.5a1.dev-9.2582.1.el6 python-peak-util-addons.noarch 0:0.6-

4.1.el6
python-peak-util-assembler.noarch 0:0.5.1-1.el6 python-peak-util-extremes.noarch 0:1.1-

4.1.el6
python-peak-util-symbols.noarch 0:1.0-4.1.el6 python-prioritized-methods.noarch 0:0.2.1-

5.1.el6
python-pygments.noarch 0:1.1.1-1.el6 python-pylons.noarch 0:0.9.7-2.el6
python-repoze-tm2.noarch 0:1.0-0.5.a4.el6 python-repoze-what.noarch 0:1.0.8-6.el6
python-repoze-what-pylons.noarch 0:1.0-4.el6 python-repoze-who.noarch 0:1.0.18-1.el6
python-repoze-who-friendlyform.noarch 0:1.0-0.3.b3.el6 python-repoze-who-testutil.noarch 0:1.0-

0.4.rc1.el6
python-routes.noarch 0:1.10.3-2.el6 python-setuptools.noarch 0:0.6.10-3.el6
python-sqlalchemy.noarch 0:0.5.5-3.el6_2 python-tempita.noarch 0:0.4-2.el6
python-toscawidgets.noarch 0:0.9.8-1.el6 python-transaction.noarch 0:1.0.1-1.el6
python-turbojson.noarch 0:1.2.1-8.1.el6 python-weberror.noarch 0:0.10.2-1.el6
python-webflash.noarch 0:0.1-0.2.a9.el6 python-webhelpers.noarch 0:0.6.4-4.el6
python-webob.noarch 0:0.9.6.1-3.el6 python-webtest.noarch 0:1.2-2.el6
python-zope-filesystem.x86_64 0:1-5.el6 python-zope-interface.x86_64 0:3.5.2-

2.1.el6
python-zope-sqlalchemy.noarch 0:0.4-3.el6

Complete!
[root@UACM ~]#


4.Start the services on both cluster nodes.(UANODE1 & UANODE2)

[root@UANODE1 rc5.d]# ln -s /etc/init.d/ricci S91ricci
[root@UANODE1 rc5.d]# ls -lrt |grep ricci
lrwxrwxrwx. 1 root root 15 Oct 12 14:29 K01ricci -> ../init.d/ricci
lrwxrwxrwx. 1 root root 17 Oct 12 16:45 S91ricci -> /etc/init.d/ricci
[root@UANODE1 rc5.d]# service ricci start
Starting oddjobd: [ OK ]generating SSL certificates... done
Generating NSS database... done
Starting ricci: [ OK ][root@UANODE1 rc5.d][root@UANODE1 rc5.d]# ssh UANODE2
root@uanode2's password:
Last login: Sat Oct 12 16:42:49 2013 from uanode1
[root@UANODE2 ~]# cd /etc/rc5.d
[root@UANODE2 rc5.d]# ln -s /etc/init.d/ricci S91ricci
[root@UANODE2 rc5.d]# ls -lrt |grep ricci
lrwxrwxrwx. 1 root root 15 Oct 12 14:29 K01ricci -> ../init.d/ricci
lrwxrwxrwx. 1 root root 17 Oct 12 16:45 S91ricci -> /etc/init.d/ricci
[root@UANODE2 rc5.d]# service ricci start
Starting oddjobd: [ OK ]generating SSL certificates... done
Generating NSS database... done
Starting ricci: [ OK ][root@UANODE2 rc5.d]#


5.Start the luci services on UACM.(Non-cluster node).

[root@UANODE2 rc5.d]# service luci start
Adding following auto-detected host IDs (IP addresses/domain names), corresponding to `UANODE2' address, to the configuration of self-managed certificate `/var/lib/luci/etc/cacert.config' (you can change them by editing `/var/lib/luci/etc/cacert.config', removing the generated certificate `/var/lib/luci/certs/host.pem' and restarting luci):
(none suitable found, you can still do it manually as mentioned above)

Generating a 2048 bit RSA private key
writing new private key to '/var/lib/luci/certs/host.pem'
Start luci... [ OK ]Point your web browser to https://UANODE2:8084 (or equivalent) to access luci
[root@UANODE2 rc5.d]#


6.Access the luci console using https://UANODE2:8084 address from UACM node.
If you have any issue to access this portal from other machine,disable firewall using 
“# service iptables stop”





















7.Login to the console.




















8.Click on “Manage Cluster” tab to configure new cluster.




















9.Click on “Create” tab to begin the cluster configuration.





















That all about redhat cluster suite installation on redhat Linux 6.3.

Hope you will also join with me to build a redhat cluster.Please leave a comment if you have any doubt. 

Thank you for visiting UnixArena.

VMTURBO-CLOUD-CAPACITY

10 comments

  1. Hi

    Very impressive post I am eagerly waiting for more posts on Redhat Cluster.

  2. good work 🙂

  3. Getting below error.

    [root@localhost ~]# yum install ricci
    Loaded plugins: product-id, refresh-packagekit, rhnplugin, security, subscription-manager
    This system is receiving updates from Red Hat Subscription Management.
    This system is receiving updates from RHN Classic or RHN Satellite.
    rhel-6-server-rpms | 3.8 kB 00:00
    rhel-server-dts-6-rpms | 2.9 kB 00:00
    rhel-server-dts2-6-rpms | 2.9 kB 00:00
    Setting up Install Process
    No package ricci available.
    Error: Nothing to do

  4. One of the best articles i have seen on this website, simple, to the point steps, very impressive, thank you, and keep posting such wonderful blogs.

  5. Hi,
    You have said Start the luci services on UACM.(Non-cluster node).But your screenshot says you have started the service on UANODE2 – Cluster node 2 (192.168.2.201).
    Please explain which step to follow!!!

    Waiting for reply.
    thank u
    Prabodh

    • I don;t have dedicated server to manage these clusters. So i have installed luci on the one of the cluster node itself.
      If you have the large cluster environment , then you can think of having dedicated system to manage the cluster.

  6. Impressive work.. Thanks

  7. Impressive work… very useful for me……

  8. Hi Guys,

    What is the default user name password to login to console. ?

  9. Very Good and Simple …Thanks…..

Leave a Reply

Your email address will not be published. Required fields are marked *