Ibm Powerha 6.1 On Aix 6.1 Demonstration: Resource Group Details
Ibm Powerha 6.1 On Aix 6.1 Demonstration: Resource Group Details
1 Demonstration
Date Presented by March 2, 2010 Doug Elliott [email protected]
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
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