You are on page 1of 5

Untitled RedHat Cluster Suite: Configuration Guide For all supported releases: RedHat 5.

0(x86_64 & i386)

Basic Terms Overview Here are the different parts of the cluster... Fencing: a device allowing the power state of a node to be controlled. Resource: Anything that the cluster will be moving (filesystem, vip, application, etc..) Service: Basically a container of resources, allowing more failover control. Failover domain: This allows more control over where the cluster service resides and where it can go during a failover. HP iLO: An integrated Lights out Manager found on HP Proliant Servers, used for controlling and managing the hardware whether the server is on or not. Configuring a Cluster Prerequisites /etc/hosts To reduce latency and DNS queries, all networked parts of the cluster need to be in the hosts file. 1) Ensure all node's IP, FQDN, and hostname are in all of the nodes hosts files. 2) Ensure all iLO's IP, FQDN, and hostname are in all of the nodes hosts files. 3) Ensure all VIP's IP, FQDN, and hostname are in all of the nodes hosts files. HP iLo See Appendix A. for instructions. Install Cluster Manager (Conga/luci) 1) # /usr/sbin/luci_admin init 1.1)When prompted for the password, enter: r3dh@t 2) # service luci restart Login to the Cluster Manager (Conga) 1) Using Firefox (a recent version of IE might work too), connect to the Conga server on the first cluster node at: https://<node_name>:8084 1.1) Username: admin 1.2) Password: r3dh@t Create the cluster 1) Select the cluster tab towards the top of the screen. 2) Select Create a New Cluster. Page 1

Untitled 3) Enter the cluster name. 4) Enter the hostname and root password for each node. 4.1) Click the Add a cluster node button if additional fields are needed. 5) Select the Use locally installed packages radio button. 6) Uncheck Enable Shared Storage Support. 7) Click the View SSL cert fingerprints button. 7.1) Doing this will validate communication between the management server and this node. The padlock icon (to the right of the node) should now show as locked. There should also be a green frame at the bottom of the screen showing success a red frame would contain errors. 8) Click the Submit button to continue, and click OK on the pop-up validation window. Configure the cluster Quorum Disk 1) Click the cluster tab towards the top. 2) Click the cluster name. 3) Click the Quorum Partition tab in the middle. 4) Quorum Partition Configuration: 4.1) Click the Use a Quorum Partition radio button. 4.2) Enter 1 for the Interval. 4.3) Enter 1 for the Votes. 4.4) Enter 10 for TKO. 4.5) Enter 1 for Minimum Score. 4.6) Enter qdisk-label for the Label. 5) Heuristics: 5.1) Enter ping <gateway> -c1 -t1 for the program. 5.2) Enter 2 for the Interval. 5.3) Enter 1 for the Score. 6) Click the Apply button to continue, and click OK on the pop-up validation window. Failover Domains 1) Click the cluster tab towards the top. 2) Click the cluster name. 3) Click the Failover Domains link on the left. 4) Click the Add a Failover Domain link that appeared on the left. 5) Enter the failover domain name as failover_<cluster name>. 6) Check the Restrict failover to this domain's members check box. 7) Leave all other check boxes unchecked. 8) Under Failover domain membership, check the Member box for each of the nodes. 9) Click the Submit button to continue, and click OK on the pop-up validation window. Cluster Resources To add resources (used for all items in this section), do: 1) Click the cluster tab towards the top. 2) Click the cluster name. 3) Click the Resources link on the left. Page 2

Untitled 4) Click the Add a Resource link that appeared on the left. 5) ...(follow the instructions in the relevant section below)... 6) Click the Submit button to continue, and click OK on the pop-up validation window. VIP The following explains how to create a VIP cluster resource. 1) Select IP Address from the drop box. 2) Enter the IP in the IP address text box. 3) Leave Monitor link unchecked. LVM The following explains how to create an LVM cluster resource. 1) Select LVM from the drop box. 2) Enter the resource name (lvm_<vg name>_<lv suffix>). 3) Enter the VG name. 4) Leave the LV name field empty. File System The following explains how to create a file system resource. 1) Select File system from the drop box. 2) Enter the resource name (fs_<vg name>_<lv suffix>) 3) Enter the desired mount point (make sure it already exists). 4) Enter the device path. 5) Check the Force unmount check box. 6) Check the Reboot host node if unmount fails check box. 7) Leave all other check boxes unchecked. Script The following explains how to create a script resource. This needs to be done last, after the application it's starting is installed, configured, and able to run. 1) Enter the resource name (script_<cluster name>) 1.1) * Note: If this is for an Oracle start/stop script, enter the database instance name. 2) Enter the full path to the script file. 2.1) * Note: Oracle start/stop script is at: /usr/local/bin/oracledb_<instance name>.sh Cluster 1) 2) 3) 4) 5) 6) 7) 8) 9) 10) 11) 12) Services Click the cluster tab towards the top. Click the cluster name. Click the Services link on the left. Click the Add a Service link that appeared on the left. Enter the service name (srv_<instance name>) Check Automatically start this service, unless there is a reason not to. Change Failover Domain to the domain created earlier (failover_<cluster name>) Change Recovery policy to Restart. Change Maximum number of restart failures before relocating to 2. Change Length of time in seconds after which to forget a restart to 300. Click the Add a resource to this service button. Under Use an existing global resource, select one of the resources created earlier. Page 3

13) 14)

Untitled (Repeat steps 11-12 until all resources are added) Click the Submit button to continue, and click OK on the pop-up validation window.

Fencing 1) Click the cluster tab towards the top. 2) Click the first node listed. 3) Down at the bottom of the screen, below Main Fencing Method, click the Add a fence device to this level. 4) Change Use an existing Fence Device to IPMI Lan. 4.1) Enter the fence name (fence_<hostname>) 4.2) Enter the ip address of the iLO device on this node. 4.3) Enter the username: ilo_fence 4.4) Enter the password: testilo123 4.5) Check the option Use Lanplus 4.6) Click the Update main fence properties button to continue,and click OK on the pop-up validation window. 5) (Repeat steps 1-4.5 for all remaining nodes) 6) After all this steps have been performed, manually check the file /etc/cluster/cluster.conf It should read like this for fencing <fencedevice agent="fence_ipmilan" ipaddr="<XX.XX.XX.XX>" lanplus="1" login="ilo_fence" passwd="testilo123" action="reboot" name="fence_<hostname>"/> if the action=reboot doesn't appear , edit the file manually on each node to include that. Appendix A. Prerequisites: 1. Ip Address of the iLo 2. Gateway for the iLo 3. Netmask for the iLo Configure HP iLo:

During server POST , press F8 to enter the Ilo BIOS when asked. With the arrow keys, navigate to Network | DNS/DHCP and press enter With the space bar change DHCP Enable to OFF. Press F10 to save Go to Network | NIC and TCP/IP. Verify that the first two settings are on. Change the IP Address , Subnet Mask and Gateway to the correspondent values. Press F10 to save. Go to User | Edit . Select the Administrator user and press enter. Change the password to : password Verify that all privileges for the Administrator are set to YES Press F10 to save. Page 4

Untitled Go to User | Add In both User name and Login name fields enter the username: ilo_fence Change the password to: testilo123 With the space bar, modify each of the privileges to NO, except for Virtual Power and Reset . It should read : Administer User Accounts NO Virtual Power and Reset YES Configure Settings NO Remote Console Access NO Virtual Media NO

Press F10 to save. Go to File | Exit and press enter. Press enter to the confirmation questions

Page 5

You might also like