My custom aliases
clstate='clcmd lssrc -ls clstrmgrES|egrep "NODE |Current state";clRGinfo -v;clRGinfo -s' lll='/usr/linux/bin/ls -lsa --color=auto' lsha='clshowsrv -v' lsrg=/usr/es/sbin/cluster/utilities/clRGinfo qha='/root/scripts/qha.sh -nemvc'
AIX (CAA) tunables
https://www.ibm.com/developerworks/aix/library/au-aix-powerha-caa/index.html
http://www.ibmsystemsmag.com/Blogs/AIXchange/October-2015/An-Underutilized-PowerHA-Option/
You can use SEA poll_uplink method (requires VIOS 2.2.3.4). In this case SEA can pass up the link status, no “!REQD” style ping is required any more. Yes, you can install VIOS 2.2.3.50 on top of 2.2.3.4. At the moment I'm not aware any official documentation regarding how to configure SEA poll_uplink in PowerHA environment. I was in touch with Dino Quintero (editor of the PowerHA Redbooks) and his team will update the latest PowerHA Redbook with this information soon. However, it's very easy to enable SEA poll_uplink in PowerHA. Configuration steps: * Enable poll_uplink on ent0 interface (run this command for all virtual interfaces on all nodes):
# chdev -l ent0 -a poll_uplink=yes -P
* This change requires a reboot. Check ent0 and the uplink status:
# lsattr -El ent0 | grep poll_uplink poll_uplink yes Enable Uplink Polling True poll_uplink_int 1000 Time interval for Uplink Polling True # entstat -d ent0 | grep -i bridge Bridge Status: Up
New command line: clmgr
Starting with PowerHA SystemMirror 7.1, the following features are no longer available:
IP address takeover (IPAT) via IP replacement Locally administered address (LAA) for hardware MAC address takeover (HWAT) Heartbeat over IP aliases The following IP network types: – ATM – FDDI – Token ring The following point-to-point (non-IP) network types: – RS232 – TMSCSI – TMSSA – Disk heartbeat (diskhb) – Multi-node disk heartbeat (mndhb) Two-node configuration assistant WebSMIT (replaced with the IBM Systems Director plug-in) Though PowerHA Enterprise Edition was never supported with WebSMIT, the 7.1.2 version is supported with the IBM Systems Director plug-in.
SAN based heartbeat
PowerHA 7.1.2 supports SAN based heartbeat only within a site.
Using real adapters on the cluster nodes and enabling the storage framework capability(sfwcomm device) of the HBAs. Currently FC and SAS technologies are supported.
In a virtual environment using NPIV or vSCSI with a VIO server, enabling the sfwcomm interface requires activating the target mode (tme attribute) on the real adapter in the VIO server and defining a private VLAN (id 3358) for communication between the partition containing the sfwcomm interface and the VIO server.
http://www.ibm.com/developerworks/aix/library/au-aix-powerha-heartbeat/
While clstat seem to be no more a standard you can check the state of the cluster using my home made command “clstate”:
alias clstate='clcmd lssrc -ls clstrmgrES|egrep "NODE |Current state";clRGinfo -v;clRGinfo -s'
We can use the HTML report as great summary of our IBM PowerHA cluster!!
To create the HTML report with clmgr command:
# clmgr view report cluster TYPE=html FILE=/tmp/powerha.report
[root@powerha1] # rmcluster -r hdisk2 rmcluster: This operation will scrub hdisk2, removing any volume groups and clearing cluster identifiers. If another cluster is using this disk, that cluster will be destroyed. Are you sure? (y/[n]) y rmcluster: Local host must be an online member of a cluster. rmcluster: Could not remove cluster. Function not implemented [root@powerha1] # mkcluster -n cluster1 -r hdisk2 -m powerha1,powerha2 ERROR: ****************************************************************************************************** ERROR: *** POWERHA SCRIPT /usr/es/sbin/cluster/sbin/smcaactrl RETURNED ERROR, FAILING ADD_NODE CHECK *** ERROR: *** SEE POWERHA SCRIPT LOGS FOR ERRORS *** ERROR: ****************************************************************************************************** WARNING: trans_id=2, client config FAIL: ADD_NODE CHECK powerha1 rc=1 ERROR: trans_id=2 Timeout occurred on initiator powerha1; fail the request. ERROR: rc= -1 timeout_or_error_effect ERROR: CHECK failed mkcluster: ADD_NODE operation failed for powerha1. WARNING: Force continue. ERROR: return = -1,Could not open cluster repository cache file WARNING: Could not get cluster disk names from repos: No such file or directory mkcluster: Could not create cluster. Permission denied