This article will show you how to execute PowerHA daily management.

1.Display PowerHA Version

   
   
   
   
  1. [root@dbserv1 /]#/usr/es/sbin/cluster/cspoc/cli_on_cluster -S /usr/es/sbin/cluster/utilities/halevel -s  
  2. dbserv1: 6.1.0 SP8 
  3. dbserv2: 6.1.0 SP8 

2.Dsiplay cluster services:

   
   
   
   
  1. [root@dbserv1 /]#/usr/es/sbin/cluster/utilities/clshowsrv -v 
  2. Status of the RSCT subsystems used by HACMP: 
  3. Subsystem         Group            PID          Status  
  4.  topsvcs          topsvcs          5832938      active 
  5.  grpsvcs          grpsvcs          5636250      active 
  6.  grpglsm          grpsvcs                       inoperative 
  7.  emsvcs           emsvcs           6619156      active 
  8.  emaixos          emsvcs                        inoperative 
  9.  ctrmc            rsct             5177506      active 
  10.  
  11. Status of the HACMP subsystems: 
  12. Subsystem         Group            PID          Status  
  13.  clcomdES         clcomdES         5505228      active 
  14.  clstrmgrES       cluster          6553808      active 
  15.  
  16. Status of the optional HACMP subsystems: 
  17. Subsystem         Group            PID          Status  
  18.  clinfoES         cluster          5767368      active 

3.Display Resource Group Status:

   
   
   
   
  1. [root@dbserv2 /]#/usr/es/sbin/cluster/utilities/clRGinfo -m 
  2. --------------------------------------------------------------------------------------------------------------------- 
  3. Group Name     State                        Application state            Node           
  4. --------------------------------------------------------------------------------------------------------------------- 
  5. oradb          ONLINE                                                    dbserv1        
  6.  example                                     ONLINE MONITORED             

4.Display Topology Configuration:

   
   
   
   
  1. [root@dbserv1 /]#/usr/es/sbin/cluster/utilities/cltopinfo  
  2. Cluster Name: hatest 
  3. Cluster Connection Authentication Mode: Standard 
  4. Cluster Message Authentication Mode: None 
  5. Cluster Message Encryption: None 
  6. Use Persistent Labels for Communication: Yes 
  7. There are 2 node(s) and 3 network(s) defined 
  8.  
  9. NODE dbserv1: 
  10.         Network net_diskhb_01 
  11.                 diskhb_01       /dev/hdisk5 
  12.         Network net_ether_02 
  13.                 dbserv2-serv    172.16.255.17 
  14.                 dbserv1-serv    172.16.255.15 
  15.                 dbserv1 172.16.255.11 
  16.         Network net_ether_03 
  17.                 dbserv1-stby    192.168.0.11 
  18.  
  19. NODE dbserv2: 
  20.         Network net_diskhb_01 
  21.                 diskhb_02       /dev/hdisk5 
  22.         Network net_ether_02 
  23.                 dbserv2-serv    172.16.255.17 
  24.                 dbserv1-serv    172.16.255.15 
  25.                 dbserv2 172.16.255.13 
  26.         Network net_ether_03 
  27.                 dbserv2-stby    192.168.0.13 
  28.  
  29. Resource Group oradb 
  30.         Startup Policy   Online On First Available Node 
  31.         Fallover Policy  Fallover To Next Priority Node In The List 
  32.         Fallback Policy  Never Fallback 
  33.         Participating Nodes      dbserv1 dbserv2 
  34.         Service IP Label                 dbserv1-serv 
  35.         Service IP Label                 dbserv2-serv 
  36.  
  37. Total Heartbeats Missed:        0 
  38. Cluster Topology Start Time:    05/30/2012 14:31:17 

5.Show Resource Information

   
   
   
   
  1. [root@dbserv1 /]#/usr/es/sbin/cluster/utilities/clshowres            
  2.  
  3. Resource Group Name                                 oradb  
  4. Participating Node Name(s)                          dbserv1 dbserv2  
  5. Startup Policy                                      Online On First Available Node  
  6. Fallover Policy                                     Fallover To Next Priority Node In The List  
  7. Fallback Policy                                     Never Fallback  
  8. Site Relationship                                   ignore  
  9. Dynamic Node Priority                                
  10. Service IP Label                                    dbserv1-serv dbserv2-serv  
  11. Filesystems                                         ALL  
  12. Filesystems Consistency Check                       fsck 
  13. Filesystems Recovery Method                         sequential 
  14. Filesystems/Directories to be exported (NFSv2/NFSv3) 
  15. Filesystems/Directories to be exported (NFSv4)       
  16. Filesystems to be NFS mounted                        
  17. Network For NFS Mount                                
  18. Filesystem/Directory for NFSv4 Stable Storage        
  19. Volume Groups                                       oradata  
  20. Concurrent Volume Groups                             
  21. Use forced varyon for volume groups, if necessary   false  
  22. Disks                                                
  23. GMVG Replicated Resources                            
  24. GMD Replicated Resources                             
  25. PPRC Replicated Resources                            
  26. SVC PPRC Replicated Resources                        
  27. EMC SRDFReplicated Resources                       
  28. TRUECOPY Replicated Resources                        
  29. GENXD Replicated Resources                           
  30. Connections Services                                 
  31. Fast Connect Services                                
  32. Shared Tape Resources                                
  33. Application Servers                                 example  
  34. Highly Available Communication Links                 
  35. Primary Workload Manager Class                       
  36. Secondary Workload Manager Class                     
  37. Delayed Fallback Timer                               
  38. Miscellaneous Data                                   
  39. Automatically Import Volume Groups                  false  
  40. Inactive Takeover                                    
  41. SSA Disk Fencing                                    false  
  42. Filesystems mounted before IP configured            false 
  43. WPAR Name                                            
  44. Run Time Parameters: 
  45.  
  46. Node Name                                           dbserv1 
  47. Debug Level                                         high  
  48. Format for hacmp.out                                Standard  
  49.  
  50. Node Name                                           dbserv2 
  51. Debug Level                                         high  
  52. Format for hacmp.out                                Standard  

6.View Current State:

   
   
   
   
  1. [root@dbserv1 /]#/usr/es/sbin/cluster/utilities/cldump 
  2.  
  3. Obtaining information via SNMP from Node: dbserv1... 
  4.  
  5. _____________________________________________________________________________ 
  6. Cluster Name: hatest 
  7. Cluster State: UP 
  8. Cluster Substate: STABLE 
  9. _____________________________________________________________________________ 
  10.  
  11. Node Name: dbserv1              State: UP 
  12.  
  13.   Network Name: net_diskhb_01      State: UP 
  14.  
  15.     Address:                 Label: diskhb_01          State: UP 
  16.  
  17.   Network Name: net_ether_02       State: UP 
  18.  
  19.     Address: 172.16.255.11   Label: dbserv1            State: UP 
  20.     Address: 172.16.255.15   Label: dbserv1-serv       State: UP 
  21.     Address: 172.16.255.17   Label: dbserv2-serv       State: UP 
  22.  
  23.   Network Name: net_ether_03       State: UP 
  24.  
  25.     Address: 192.168.0.11    Label: dbserv1-stby       State: UP 
  26.  
  27. Node Name: dbserv2              State: UP 
  28.  
  29.   Network Name: net_diskhb_01      State: UP 
  30.  
  31.     Address:                 Label: diskhb_02          State: UP 
  32.  
  33.   Network Name: net_ether_02       State: UP 
  34.  
  35.     Address: 172.16.255.13   Label: dbserv2            State: UP 
  36.  
  37.   Network Name: net_ether_03       State: UP 
  38.  
  39.     Address: 192.168.0.13    Label: dbserv2-stby       State: UP 
  40.  
  41.  
  42. Cluster Name: hatest  
  43.  
  44. Resource Group Name: oradb 
  45. Startup Policy: Online On First Available Node 
  46. Fallover Policy: Fallover To Next Priority Node In The List 
  47. Fallback Policy: Never Fallback 
  48. Site Policy: ignore 
  49. Node                         Group State       
  50. ---------------------------- ---------------  
  51. dbserv1                      ONLINE           
  52. dbserv2                      OFFLINE          

7.Switch Resource Group to another node:

   
   
   
   
  1. [root@dbserv1 /]#/usr/es/sbin/cluster/utilities/clRGmove -s false  -m -i -g oradb -n dbserv2  
  2. Attempting to move resource group oradb to node dbserv2. 
  3.  
  4. Waiting for the cluster to process the resource group movement request.... 
  5.  
  6. Waiting for the cluster to stabilize............ 
  7.  
  8. Resource group movement successful. 
  9. Resource group oradb is online on node dbserv2. 
  10.  
  11.  
  12.  
  13. Cluster Name: hatest  
  14.  
  15. Resource Group Name: oradb 
  16. Node                         State             
  17. ---------------------------- ---------------  
  18. dbserv1                      OFFLINE          
  19. dbserv2                      ONLINE     

8.HACMP Cluster Status Monitor:

   
   
   
   
  1. [root@dbserv2 cluster]#/usr/es/sbin/cluster/clstat 
  2.  
  3.  
  4.  
  5.                 clstat - HACMP Cluster Status Monitor 
  6.                 ------------------------------------- 
  7.  
  8. Cluster: hatest (1078875880) 
  9. Wed May 30 14:56:14 CST 2012 
  10.                 State: UP               Nodes: 2 
  11.                 SubState: STABLE 
  12.  
  13.         Node: dbserv1           State: UP 
  14.            Interface: dbserv1 (1)               Address: 172.16.255.11 
  15.                                                 State:   UP 
  16.            Interface: dbserv1-stby (2)          Address: 192.168.0.11 
  17.                                                 State:   UP 
  18.            Interface: diskhb_01 (0)             Address: 0.0.0.0 
  19.                                                 State:   UP 
  20.  
  21.         Node: dbserv2           State: UP 
  22.            Interface: dbserv2 (1)               Address: 172.16.255.13 
  23.                                                 State:   UP 
  24.            Interface: dbserv2-stby (2)          Address: 192.168.0.13 
  25.                                                 State:   UP 
  26.            Interface: diskhb_02 (0)             Address: 0.0.0.0 
  27.                                                 State:   UP 

9.Show Network information:

   
   
   
   
  1. [root@dbserv2 /]#netstat -i 
  2. Name  Mtu   Network     Address            Ipkts Ierrs    Opkts Oerrs  Coll 
  3. en0   1500  link#2      0.9.6b.2e.c3.3c    258065     0   183578     0     0 
  4. en0   1500  172.16.255  dbserv2.xzxj.edu   258065     0   183578     0     0 
  5. en0   1500  172.16.255  dbserv1-serv       258065     0   183578     0     0 
  6. en0   1500  172.16.255  dbserv2-serv       258065     0   183578     0     0 
  7. en1   1500  link#3      0.9.6b.be.c6.c4     30577     0    38142 12630     0 
  8. en1   1500  192.168.0   dbserv2-stby        30577     0    38142 12630     0 
  9. en1   1500  192.168.2   dbserv2-pers        30577     0    38142 12630     0 
  10. lo0   16896 link#1                         250460     0   250460     0     0 
  11. lo0   16896 127         localhost          250460     0   250460     0     0 
  12. lo0   16896 localhost                      250460     0   250460     0     0 

   
   
   
   
  1. [root@dbserv1 /]#netstat -i 
  2. Name  Mtu   Network     Address            Ipkts Ierrs    Opkts Oerrs  Coll 
  3. en0   1500  link#2      0.14.5e.c.ce.42    129690     0    71388     0     0 
  4. en0   1500  172.16.255  dbserv1.xzxj.edu   129690     0    71388     0     0 
  5. en1   1500  link#3      0.14.5e.c.b7.65      6523     0     4566     3     0 
  6. en1   1500  192.168.0   dbserv1-stby         6523     0     4566     3     0 
  7. en1   1500  192.168.2   dbserv1-pers         6523     0     4566     3     0 
  8. lo0   16896 link#1                          29256     0    29256     0     0 
  9. lo0   16896 127         localhost           29256     0    29256     0     0 
  10. lo0   16896 localhost                       29256     0    29256     0     0 

10.Make Resource Group online or offline:

   
   
   
   
  1. [root@dbserv2 /]#/usr/es/sbin/cluster/utilities/clRGmove -g oradb -n dbserv2 -d  
  2. Attempting to bring group oradb offline on node dbserv2. 
  3.  
  4. Waiting for the cluster to process the resource group movement request.... 
  5.  
  6. Waiting for the cluster to stabilize........ 
  7.  
  8. Resource group movement successful.  
  9. Resource group oradb is offline on node dbserv2. 
   
   
   
   
  1. [root@dbserv2 /]#/usr/es/sbin/cluster/utilities/clRGmove -g oradb -n dbserv1 -u  
  2. Attempting to bring group oradb online on node dbserv1. 
  3.  
  4. Waiting for the cluster to process the resource group movement request.... 
  5.  
  6. Waiting for the cluster to stabilize....... 
  7.  
  8. Resource group movement successful.  
  9. Resource group oradb is online on node dbserv1.