You are on page 1of 3

Setup Redhat cluster and GFS2 on RedHat Enterprise Linux 6

Configuring Red Hat High Availability Add-On With Conga First create a RHEL 6.1 Virtual machine, give it hostname in my case it is node1, domain name should be your domain name, my domain name is dialnetindia.com, assign IP 192.168.1.10, subnet 255.255.255.0 gateway 192.168.1.1. Make necessary changes in /etc/sysconfig/network and /etc/hosts file, also make entries for new two node which will be node2 and node3. If you want you can make changes in yum repo file too, Before proceeding we have to make sure that following software are installed. luci, ricci, openais, cman, rgmanager, lvm2-cluster, modcluster, gfs2-utils, firefox. chkconfig luci on chkconfig ricci on chkconfig cman on chkconfig rgmanager on chkconfig modclusterd on chkconfig clvmd on chkconfig NetworkManager off chkconfig iptables off

cman service will not start if NetworkManager is running we will configure firewall later.

Make sure following services are running. Cluster Daemons Status cman rgmanager ricci modclusterd clvmd Running Running Running Running Running

After Node1 is ready shutdown shutdown system, and make two clone of node1 named node2 and node3. Note down MAC address of node2 and node3. Start node2 and node3 make changes in /etc/network file for hostname, also make change in /etc/sysconfig/network-script/ifcfg-eth0 for MAC address and IP address. Start all three nodes. Set password for user ricci in all three machine, issue command #passwd ricci Ricci runs on port 11111. At a Web browser, place the URL of the luci server into the URL address box and click Go (or the equivalent). The URL syntax for the luci server is https://luci_server_hostname:luci_server_port. The default value of luci_server_port is 8084. The first time you access luci, a web browser specific prompt regarding the self-signed SSL certificate (of the luci server) is displayed. Upon acknowledging the dialog box or boxes, your Web browser displays the luci login page. Although any user able to authenticate on the system that is hosting luci can log in to luci, as of Red Hat Enterprise Linux 6.2 only the root user on the system that is running luci can access any of the luci components until an administrator (the root user or a user with administrator permission) sets permissions for that user.

Creating a Cluster Click Manage Clusters from the menu on the left side of the luci Homebase page.

Click Create. The Create New Cluster dialog box appears,

At the Cluster Name text box, enter a cluster name. The cluster name cannot exceed 15 characters. If each node in the cluster has the same ricci password, you can check Use the same password for all nodes to autofill the password field as you add nodes. Enter the node name (node1, node2, node3) for a node in the cluster in the Node Name column and enter the ricci password for the node in the Password column. Click on Add Another Node and enter the node name and ricci password for each additional node in the cluster.

After clicking Create Cluster to create the cluster, you can add or delete nodes from the cluster by clicking the Add or Delete function from the menu at the top of the cluster node display page. Unless you are deleting an entire cluster, nodes must be stopped before being deleted.

Cluster Firewall and SELinux configuration. We have to open following ports. IP Port Number Protocol 5404, 5405 11111 21064 16851 UDP TCP TCP TCP

Component corosync/cman (Cluster Manager) ricci (propagates updated cluster information) dlm (Distributed Lock Manager) modclusterd

You might also like