cluster centos - 1




This how to describes an easy step by step installation of the RedHat Cluster Suite on  2  CentOS nodes and prepare them as nodes of a cluster. You will also install the Management suite which is web based and is known as Conga.
You will use three nodes to form the cluster and one node as the cluster management node and as a cluster node it will not take part. All the nodes and the management node should be resolvable either by host file entries or by DNS.

OS - All Nodes:
    CentOS 6 Minimal
Cluster Nodes - Software Installation:
yum groupinstall "High Availability"
yum install ricci
Cluster Management Node - Software Installation:
yum groupinstall "High Availability Management"
yum install ricci

Cluster Nodes:
hkconfig iptables off
chkconfig ip6tables off
chkconfig ricci on
chkconfig cman on
chkconfig rgmanager on
chkconfig modclusterd on
Create a password for the ricci service user with
passwd ricci
service iptables stop
service ip6tables stop
service ricci start
service cman start
service rgmanager start
service modclusterd start



Cluster Management Node:
chkconfig iptables off
chkconfig ip6tables off
chkconfig luci on
chkconfig ricci on
service iptables stop
service ip6tables stop
service luci start
service ricci start
luci service is the management service that presents the web based cluster interface via https at port 8084 and can be accessed in any browser at
https://<cluster management node FQDN or hostname:8084>/
ricci service is the underlying daemon that helps in cluster configuration sync and file copy, service start, stop etc. and uses tcp port 11111.
cman, rgmanager and modclusterd are the actual cluster services which futher start other services that actually make the clustering happen and keep it live.
Open a browser and enter the conga node url which in tis case is https://centos:8084/
After clicking 'ok' to the initial warning information you will be presented with the login screen. Enter the root user and root password of that system and start the interface.
Now click Add cluster and add the first node  and the ricci password, click 'ok' and it will detect the other two nodes also, add the ricci passwords and the cluster will be added to the Cluster Management interface. The cluster can be managed and configured from this interface. Care should be taken as the cluster.conf file sometimes does not get synced to all cluster nodes, they will get fenced due to version misconfiguration. At such times copy the cluster.conf file from node1 to all the other nodes. If all the nodes are in sync then the uptime is shown in the cluster nodes list.
Getting a cluster, configuring and managing, your cluster is up, live and configured in no time and later other clusters can be added into this management interface for easy maintenance.

Comentarios