Wednesday, April 1, 2020

Important things about HACMP and PowerHA in aix?

Important things about HACMP and PowerHA in aix?

To move the resouce group from one node to another
# clRGmove -g testRG -n nodeB -m
To create a FS in hacmp

# /usr/sbin/cluster/sbin/cl_crfs -cspoc “-n nodeA,nodeB” 
-v jfs2 -g testVG -a size=65572 -m/testFS -p rw -a size=4096

To extend the FS in hacmp

# /usr/es/sbin/cluster/sbin/cl_chfs -cspoc "-g testRG" 
-a size=+65572 /testfs        (Note: -a size is the size in block)

To list out the VG which are part of the cluster:
# cl_lsvg
To get the info about the RGs:
# clRGinfo
To get the detailed info about RGs:
# clshowres
To get the info about the disk in the RG:
# cllsdisk -g testrg
To get the filesystem info about the RG:
# cllsfs -g testrg
To get the info about the disk in cluster VG:
# /usr/es/sbin/cluster/cspoc/cl_lsrgvgdisks
To get the complete the info about cluster:
# /usr/es/sbin/cluster/utilities/cllscf
To get detailed info about VG in cluster:
# /usr/es/sbin/cluster/utilities/cllsvgdata
To get the topology info in cluster:
# cltopinfo
TO get the network info in hacmp:
# /usr/es/sbin/cluster/utilities/cllsif  and # /usr/es/sbin/cluster/utilities/cllsnw
To get the hacmp nodes and network config info:
# /usr/es/sbin/cluster/utilities/cllsnode
To list out the network present on the hacmp:
# /usr/es/sbin/cluster/utilities/cllsipnw
To get the info about network interface alive:
# /usr/es/sbin/cluster/utilities/cllsaliveif
To show cluster state and substate; needs clinfo.
# clstat
To SNMP-based tool to show cluster state
# cldump
To similar to cldump, perl script to show cluster state.
# cldisp
To list the local view of the cluster topology.
# cltopinfo
To list the local view of the cluster subsystems.
# clshowsrv -a
To locate the resource groups and display status.
# clfindres (-s)
To locate the resource groups and display status.
# clRGinfo -v
To rotate some of the log files.
# clcycle
To cluster ping program with more arguments.
# cl_ping
To cluster rsh program that take cluster node names as argument.
# clrsh
To which nodes are active?
# clgetactivegnodes
To what is the name of the local node?
# get_local_nodename
To check the HACMP ODM.
# clconfig
To online/offline or move resource groups.
# clRGmove
To sync/fix the cluster.
# cldare
To list the resource groups.
# cllsgrp
To create a large snapshot of the hacmp configuration.
# clsnapshotinfo
To list the network configuration of an hacmp cluster.
# cllscf
To show the resource group configuration.
# clshowres
To show network interface information.
# cllsif
To show short resource group information.
# cllsres
To list the cluster manager state.
# lssrc -ls clstrmgrES
To show heartbeat information.
# lssrc -ls topsvcs
To list a node centric overview of the hacmp configuration.
# cllsnode