AIX QHA

The standard tool for cluster monitoring is clstat, which comes along with PowerHA SystemMirror/HACMP. Clstat is rather slow with its updates, and sometimes the required clinfo deamon needs restarting in order to get it operational, so this is, well, not perfect. There's a script which is also easy to use. It is written by PowerHA/HACMP guru Alex Abderrazag. This script shows you the correct PowerHA/HACMP status, along with adapter and volume group information. It works fine on HACMP 5.2 through 7.2. You can download it here: qha. This is version 9.06. For the latest version, check www.lpar.co.uk.

This tiny but effective tool accepts the following flags:

  •   -n (show network interface info)
  •   -N (show interface info and active HBOD)
  •   -v (show shared online volume group info)
  •   -l (log to /tmp/qha.out)
  •   -e (show running events if cluster is unstable)
  •   -m (show status of monitor app servers if present)
  •   -1 (exit after first iteration)
  •   -c (CAA SAN / Disk Comms)
For example, run:
# qha -nev
It's useful to put "qha" in /usr/es/sbin/cluster/utilities, as that path is usually already defined in $PATH, and thus you can run qha from anywhere.

A description of the possible cluster states:
  • ST_INIT: cluster configured and down
  • ST_JOINING: node joining the cluster
  • ST_VOTING: Inter-node decision state for an event
  • ST_RP_RUNNING: cluster running recovery program
  • ST_BARRIER: clstrmgr waiting at the barrier statement
  • ST_CBARRIER: clstrmgr is exiting recovery program
  • ST_UNSTABLE: cluster unstable
  • NOT_CONFIGURED: HA installed but not configured
  • RP_FAILED: event script failed
  • ST_STABLE: cluster services are running with managed resources (stable cluster) or cluster services have been "forced" down with resource groups potentially in the UNMANAGED state (HACMP 5.4 only)

 

Topics: Monitoring, PowerHA / HACMP

0 (0)
Article Rating (No Votes)
Rate this article
Attachments
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
Creating Normal,Big,Scalable VG on AIX
Viewed 14991 times since Fri, Feb 1, 2019
How to install filesets/software in aix?
Viewed 5878 times since Mon, Jul 8, 2019
AIX rootvg Mirroring
Viewed 4542 times since Mon, May 21, 2018
AIX: Script to check if all paths are consistent and available
Viewed 3191 times since Tue, Jun 12, 2018
How do I analyze and debug core files on AIX
Viewed 6429 times since Thu, Feb 21, 2019
Using expect to automate mundane tasks
Viewed 1891 times since Mon, Jun 3, 2019
AIX Power replacing (hot-swap) failed disk in rootvg
Viewed 3660 times since Tue, Apr 16, 2019
Do you Know These 5 Use of V$session View ?
Viewed 106739 times since Thu, Jun 21, 2018
AIX 6/7 Script to create a file with commands to remove missing and failed paths
Viewed 3413 times since Tue, Jun 14, 2022
AIX smtctl The smtctl command controls the enabling and disabling of processor simultaneous multithreading mode.
Viewed 15064 times since Fri, Jan 18, 2019