I don't know why but PowerHA commands are not very well documented (in my humble opinion) or there is not much information about it, maybe because with smitty you can do everything and it is much more intuitive.
In this post, I will take a look at some commands, at least those from what you can display information from the cluster configuration.
Most of the commands are under /usr/es/sbin/cluster/utilities/ path so if I don't mention other path, the commmand will be inside that directory.
clRGinfo
gives you information on the location and state of one or more specified resource groups.clRGinfo - a very useful to track cluster events while they are happening
-----------------------------------------------------------------------------
Group Name Type Resource Group Movement
-----------------------------------------------------------------------------
m1_RG non-concurrent PRIMARY=":node1"
m2_RG non-concurrent PRIMARY="node2:"
m3_RG non-concurrent PRIMARY="node1:node2"
Explanation:
The first RG (m1_RG) is being moved from offline to online in node1.
The second RG (m2_RG)is being moved from node2 to offline.
The third RG (m3_RG) is being moved from node1 to node2.
clRGinfo -s -p shows a lot of information about RG and its policy configuration.
m2_RG:ONLINE:node2:non-concurrent:OHN:FNPN:NFB:ignore::: : :::
This means that m2_RG is online on node2 that starts on home node only (OHN), Fails over to next node configured (FNPN), Never Fails back (NFB) and ignore intersite policies (ignore).
If you want to know the explanation to all the different configuration policies, take a look at the first link
cltopinfo
displays cluster topology information. It is very useful to get a quick overview of how the cluster is configured.
Switches can be used to narrow the output. -c shows the clustername; -i shows all the interfaces configured.
clshowres
Shows resource group information for a cluster or a node.
clshowres -g m1_RG displays information about the RG such as Service Ip Label, Volume Groups, Application Servers.
clshowres-n node1
clshowsrv
gives you a view of the cluster subsystems.clshowsrv -a
Subsystem Group PID Status
clstrmgrES cluster 8585226 active
clinfoES cluster 14483554 active
clcomdES clcomdES 6422536 active
clshowsrv -v gives you details about more HACMP subsystems
clstat
monitors cluster status. It is under the path /usr/es/sbin/cluster/If you run it without options you get a graphical display with the status of the cluster. You can get a text display using clstat -o
clstat - HACMP Cluster Status Monitor
-------------------------------------
Cluster: CLUSTERPROD (1292631894)
Thu Oct 2 09:40:00 2014
State: UP Nodes: 4
SubState: STABLE
References
clRGinfo optionsHACMP Commands
No comments:
Post a Comment