0% found this document useful (0 votes)
99 views6 pages

Ibm Powerha 6.1 On Aix 6.1 Demonstration: Resource Group Details

This document summarizes the steps taken to demonstrate IBM PowerHA 6.1 on AIX 6.1. It describes preparing two nodes called powerha61_a and powerha61_b by installing prerequisites, creating volume groups and file systems, and configuring network interfaces. It then outlines the process of installing PowerHA, configuring a highly available cluster including persistent IP addresses and application servers, and creating resource groups to make the file systems and applications highly available across the nodes. The demonstration shows verifying the configuration and failover of resources when a node is stopped.

Uploaded by

Yeahfu Steven
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
99 views6 pages

Ibm Powerha 6.1 On Aix 6.1 Demonstration: Resource Group Details

This document summarizes the steps taken to demonstrate IBM PowerHA 6.1 on AIX 6.1. It describes preparing two nodes called powerha61_a and powerha61_b by installing prerequisites, creating volume groups and file systems, and configuring network interfaces. It then outlines the process of installing PowerHA, configuring a highly available cluster including persistent IP addresses and application servers, and creating resource groups to make the file systems and applications highly available across the nodes. The demonstration shows verifying the configuration and failover of resources when a node is stopped.

Uploaded by

Yeahfu Steven
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

IBM PowerHA 6.1 on AIX 6.

1 Demonstration
Date Presented by March 2, 2010 Doug Elliott [email protected]

Resource Group Details


WriteTime1_RG Nodes Application Server Volume Group File System WriteTime2_RG Nodes Application Server Volume Group File System powerha61_a, powerha61_b WriteTime1_AS swing01vg /swing01

powerha61_b, powerha61_a WriteTime2_AS swing02vg /swing02

Tasks Completed Before The Demo


Installed AIX 6.1 TL05 SP1, Minimum installation Verified or added prerequisites: bos.adt.lib 6.1.2.0 bos.adt.libm 7.1.0.0 6.1.2.0 bos.adt.syscalls 7.1.0.0 6.1.2.0 bos.net.tcp.client 7.1.0.0 6.1.2.0 bos.net.tcp.server 7.1.0.0 6.1.2.0 bos.rte.SRC 7.1.0.0 6.1.2.0 bos.rte.libc 7.1.0.0 6.1.2.0 bos.rte.libcfg 7.1.0.0 6.1.2.0 bos.rte.libcur 7.1.0.0 6.1.2.0 bos.rte.libpthreads 7.1.0.0 6.1.2.0 bos.rte.odm 7.1.0.0 6.1.2.0 bos.cluster 7.1.0.0 6.1.2.0 bos.lvm.rte 7.1.0.0 6.1.2.0 bos.clvm.enh 7.1.0.0 6.1.2.0 Create swing VGs, file systems, and make them mountable swing01vg hdisk3 Enhanced Concurrent Major #50 /swing01 6 GB swing02vg hdisk4 Enhanced Concurrent Major #51 /swing02 6 GB Configured network adapters for 192.168.27.x addresses Application start and stop scripts are in /usr/local/hascripts/ WriteTime1_AS /usr/local/hascripts/start_writetime1_AS.ksh

/usr/local/hascripts/stop_writetime1_AS.ksh WriteTime2_AS /usr/local/hascripts/start_writetime2_AS.ksh /usr/local/hascripts/stop_writetime2_AS.ksh

Refreshing The Demo (if previously demod)


remove all cluster file sets remove default gateway remove IP addresses reboot

The Demo
Open a terminal session to each system Install PowerHA System Mirror 6.1 /source/powerha61 cluster.es.server reboot Add Pervasive, Service, Private entries to /etc/hosts on cluster nodes 10.23.228.26 powerha61_a_per 10.23.228.27 writetime1 192.168.27.2 powerha61_a_boot powerha61_a # 10.23.228.28 powerha61_b_per 10.23.228.29 writetime2 192.168.27.3 powerha61_b_boot powerha61_b Create the cluster smitty hacmp -> Initialization and Standard Configuration -> Configure an HACMP Cluster and Nodes select hostname as an _boot address smitty hacmp -> Initialization and Standard Configuration -> Configure Resources To Make Highly Available -> Configure Service IP Labels/Addresses -> Add a Service IP Label/Address Select the two _serv addresses Select the Network Name smitty hacmp -> Initialization and Standard Configuration -> Configure Resources To Make Highly Available -> Configure HACMP Persistent Node IP Label/Addresses -> Add a Persistent Node IP Label/Address Do this for both nodes smitty hacmp -> Extended Configuration -> Extended Verification and Synchronization Set Automatically correct errors found during verification to Interactively f9 to exit

Check that pervasive address is on the adapter ifconfig a netstat i verify that there is no default route netstat rn Add static route on each node smitty route -> Add Static Route 0.0.0.0 as the destination address 10.23.228.1 as the gateway Verify the route netstat rn Open Telnet sessions to each host now that hosts are accessible via their _per addresses 10.23.228.26 10.23.228.28

Add an application server smitty hacmp -> Extended Configuration -> Extended Resource Configuration -> HACMP Extended Resources Configuration -> Configure HACMP Application Servers -> Configure HACMP Application Servers -> Add an application Server WriteTime1_AS /usr/local/hascripts/start_writetime1_AS.ksh /usr/local/hascripts/stop_writetime1_AS.ksh WriteTime2_AS /usr/local/hascripts/start_writetime2_AS.ksh /usr/local/hascripts/stop_writetime2_AS.ksh Discover and Sync Smitty hacmp -> Extended Configuration -> Discover HACMP-related Information from Configured Nodes F3,f3 -> Extended Verification and Synchronization Add a resource groups smitty hacmp -> Extended Configuration -> Extended Resource Configuration -> HACMP Extended Resource Group Configuration -> Add a Resource Group WriteTime1_RG powerha61_a powerha61_b Never Failback WriteTime2_RG powerha61_b powerha61_a Never Failback smitty hacmp -> Change/Show Resources and Attributes for a Resource Grup WriteTime1_RG Powerha61_a_serv

WriteTime1_AS swing01vg WriteTime2_RG Powerha61_bb_serv WriteTime2_AS swing02vg Add disk heartbeats Smitty hacmp -> Extended Configuration -> Extended Topology Configuration -> Configure HACMP Communication Interfaces/Devices -> Add Communication Interfaces/Devices -> Add Discovered Communication Interface and Device -> Communication Devices Select two disk pairs Smitty hacmp -> Extended Configuration -> Extended Verification and Syncronization

Start Up The Cluster


Smitty hacmp -> System Management (C-SPOC) -> HACMP Services ->

Verification
Is everything where Id expect it? df netstat i file systems are mounted ps ef | grep writetime Fast, easy, but not thorough test Kill a node via the HMC Start up the node Start HACMP Move the resource back Logs /var/hacmp/adm/cluster.log /var/hacmp/log/hacmp.out

Demo Cleanup
smitty hacmp -> System Management (C-SPOC) -> Stop cluster Both nodes Remove resource groups Remove nodes Remove cluster.* file sets reboot

Script Contents
start_writetime1_AS.ksh #!/usr/bin/ksh nohup /usr/local/hascripts/writetime1.ksh & exit 0 stop_writetime1_AS.ksh #!/usr/bin/ksh ps ax | grep writetime1.ksh | awk '{print $1}' | xargs kill exit 0 start_writetime2_AS.ksh #!/usr/bin/ksh nohup /usr/local/hascripts/writetime2.ksh & exit 0 stop_writetime2_AS.ksh #!/usr/bin/ksh ps ax | grep writetime2.ksh | awk '{print $1}' | xargs kill exit 0 writetime1.ksh #!/usr/bin/ksh OUTFILE=/swing01/writetime1.out rm -f i$OUTFILE while [ TRUE ] ; do print "A \c" >> $OUTFILE date >> $OUTFILE sleep 10 done writetime2.ksh #!/usr/bin/ksh OUTFILE=/swing02/writetime2.out rm -f i$OUTFILE while [ TRUE ] ; do print "A \c" >> $OUTFILE date >> $OUTFILE sleep 10 done

You might also like