Upload
danilaix
View
170
Download
1
Embed Size (px)
DESCRIPTION
UnixMantra
Citation preview
6/30/2014 AIX PowerHA (HACMP) Commands | UnixMantra
http://www.unixmantra.com/2013/04/aix-powerha-hacmp-commands.html#.U7FrbvmSzJ4 1/3
AIX PowerHA (HACMP) Commands
Most commands should work on all PowerHA (HACMP prior to 5.5) versions.
If there is some syntax error, please consult the manual page for that command.
PowerHA(HACMP) Commands
How to start c luster daemons (options in that order:
c lstrmgr, c lsmuxpd, broadcast message, c linfo, c llockd)
clstart -m -s -b -i -l
How to show c luster state and substate (depends on c linfo) clstat
SNMP-based tool to show c luster state cldump
Similar to c ldump, perl script to show c luster state cldisp
How to list the local view of the c luster topology cltopinfo
How to list the local view of the c luster subsystems clshowsrv -a
How to show all necessary info about HACMP clshowsrv -v
How to show HACMP version lslpp -L | grep cluster.es.server.rte
How to verify the HACMP configuration /usr/es/sbin/cluster/diag/clconfig -v -O
How to list app servers configured inc luding start/stop scripts cllsserv
How to locate the resource groups and display their status clRGinfo -v
How to rotate some of the log files clcycle
A c luster ping program with more arguments cl_ping
Cluster rsh program that take c luster node names as argument clrsh
How to find out the name of the local node get_local_nodename
rHow to check the HACMP ODM clconfig
How to put online/offline or move resource groups clRGmove
How to list the resource groups cllsgrp
How to create a large snapshot of the hacmp configuration clsnapshotinfo
How to show short resource group information cllsres
How to list the c luster manager state lssrc -ls clstrmgrES
Cluster manager states
ST_NOT_CONFIGURED Node never
started
ST_INIT Node configured but down -
not running
ST_STABLE Node up and running
ST_RP_RUNNING
ST_JOINING
6/30/2014 AIX PowerHA (HACMP) Commands | UnixMantra
http://www.unixmantra.com/2013/04/aix-powerha-hacmp-commands.html#.U7FrbvmSzJ4 2/3
ST_BARRIER
ST_CBARRIER
ST_VOTING
ST_RP_FAILED Node with event
error
How to show heartbeat information lssrc -ls topsvcs
How to check logs related to hacmp odmget HACMPlogs
How to list all information from topology HACMP lssrc -ls topsvcs
How to show all info about group lssrc -ls grpsvcs
How to list the logs cllistlogs
How to list the resources defined for all resource group clshowres
How to show resource information by resource group clshowres -g'RG'
How to show resource information by node clshowres -n'NODE'
How to locate the resource groups and display status (-s) clfindres
How to list interface name/interface device name/netmask
assoc iated with a spec ified ip label / ip address of a spec ific
node
clgetif
Cluster verification utility clverify
How to list c luster topology information cllscf
X utility for c luster configuration xclconfig
X utility for hacmp management xhacmpm
X utility for c luster status xclstat
How to force shutdown c luster immediately without releasing
resources
lclstop -f -N
How to do graceful shutdown immediately with no takeover clstop -g -N
How to do graceful shutdown immediately with takeover clstop -gr -N
How to sync the c luster topology cldare -t
How to do the mock sync of topology cldare -t -f
How to sync the c luster resources cldare -r
How to do the mock sync of resources cldare -r -f
How to list the name and security level of the c luster cllsclstr
How to list the info about the c luster nodes cllsnode
How to list info about node69 cllsnode -i node69
How to list the PVID of the shared hard disk for resource group
dataRG
cllsdisk -g dataRG
How to list all c luster networks cllsnw
How to list the details of network ether1 cllsnw -n ether1
How to show network ip/nonip interface information cllsif
How to list the details of network adapter node1_service cllsif -n node1_service
How to list the shared vgs which can be accessed by all nodes cllsvg
How to list the shared vgs in resource group dbRG cllsvg -g dbRG
How to list the shared lvs cllslv
6/30/2014 AIX PowerHA (HACMP) Commands | UnixMantra
http://www.unixmantra.com/2013/04/aix-powerha-hacmp-commands.html#.U7FrbvmSzJ4 3/3
How to list the shared lvs in the resource group dbRG cllslv -g dbRG
How to list the PVID of disks in the resource group appRG cllsdisk -g appRG
How to list the shared file systems cllsfs
How to list the shared file systems in the resource group sapRG cllsfs -g sapRG
How to show info about all network modules cllsnim
How to show info about ether network module cllsnim -n ether
How to list the runtime parameters for the node node1 cllsparam -n node1
How to add a c luster definition with name dcm and id 3 claddclstr -i 3 -n dcm
How to create resource group sapRG with nodes n1,n2 in cascade claddgrp -g sapRG -r cascading -n n1 n2
Creates an application server ser1 with startscript as /usr/start and
stop script as /usr/stop
claddserv -s ser1 -b /usr/start -e
/usr/stop
How to change c luster definitions name to dcmds and id to 2 clchclstr -i 2 -n dcmds
How to change the c luster security to enhanced clchclstr -s enhanced
How to delete the resource group appRG and related resources clrmgrp -g appRG
How to remove the node node69 clrmnode -n node69
How to remove the adapter named node69_svc clrmnode -a node69_svc
How to remove all resources from resource group appRG clrmres -g appRG
How to remove the application server app69 clrmserv app69
How to remove all applicaion servers clrmserv ALL
How to list the nodes with active c luster manager processes from
cluster manager on node node1clgetaddr node1 returns a pingable
address from node node1
clgetactivenodes -n node1
How to list the info about resource group sapRG clgetgrp -g sapRG
How to list the partic ipating nodes in the resource group sapRG clgetgrp -g sapRG -f nodes
How to get the ip label assoc iated to the resource group clgetip sapRG
How to list the network for ip 192.168.100.2, netmask 255.255.255.0 clgetnet 192.168.100.2 255.255.255.0
How to list the VG of LV nodelv clgetvg -l nodelv
How to add node5 to the c luster clnodename -a node5
How to change the c luster node name node5 to node3 clnodename -o node5 -n node3
1Like Tweet 1 3 StumbleUpon0Share 96