Cluster Commands
Cluster Commands
lssrc –al topsvcs | grep –I instance - This will show the instance number of the
cluster( i.e. how many times its been syncronized in the past). Run on both
sides. IMPORTANT: MUST BE THE SAME. If not, you may have a buggered
cluster.
lsvg - Shows available volume groups. Hopefully the cluster volume group is
shown.
lsvg –o - Shows if the cluster volume group is online. It must only be online on
one side of the cluster at a time.
lsvg –l <vg> - Will show all mounted filesystems for the resource. Make sure
they are open/synced
smitty clstop - Stops the cluster. The defaults will do it gracefully. If the
resource is up on this side, it will fail over at this point unless you take the
resource offline manually.
smitty clstart - Starts the cluster. This will automatically start the resource
unless either
(2) Its not set up in the Config of the cluster to start automatically.
Manually starting or stopping the resource group will differ depending on the
version of HACMP you’re using.
All the application and other log files are under /var/hacmp/log (the same place
as the hacmp.out is located). If you run ls -alrt they you will see all the newest
files.
/var/hacmp/log/clappmond_failed_logs.<date_tame& gt;
Look for the error log that it was moaning about in the hacmp.out log file. I.E - if
its moaning about mon_longtime_db, look for the logfile
clappmond.mon_longtime_db.<resource_name>.lo g
cd /usr/es/local/script
If you get issues and need to escalate to IBM, they will ask you to do a snap –e.
Rename and send the output off to the usual place.
emgr -l
/var/hacmp/log
/usr/es/sbin/cluster/clstrmgr
#lssrc -s ctrmc
Subsystem Group PID Status
ctrmc rsct 348334 active
checks Have both servers rebooted? Bring up the cluster using 'smitty clstart
Once you know its stable, bring up the resources
'Checks Startup the resources outside of cluster. Vary on the VG Add the IP alias
Start up the service
# smitty hacmp
~~~~~~~~~~~~~~~~~~~~~~~~~
Initialization and Standard Configuration
Extended Configuration
System Management (C-SPOC) <---
Problem Determination Tools
~~~~~~~~~~~~~~~~~~~~~~~~~
HACMP Communication Interface Management <---
HACMP Resource Group and Application Management
HACMP Log Viewing and Management
HACMP File Collection Management
HACMP Security and Users Management
HACMP Logical Volume Management
HACMP Concurrent Logical Volume Management
HACMP Physical Volume Management
Configure GPFS
Open a SMIT Session on a Node
~~~~~~~~~~~~~~~~~~~~~~~~~
Manage HACMP Services
Start Cluster Services <---
Stop Cluster Services
Show Cluster Services
~~~~~~~~~~~~~~~~~~~~~~~~~
* Start now, on system restart or both [now+]
Start Cluster Services on these nodes[AIX_Box_1]+
* Manage Resource Groups [Automatically+]
BROADCAST message at startup? [true+]
Startup Cluster Information Daemon? [true+]
Ignore verification errors?[ false+]
Automatically correct errors found during [Interactively+]
cluster start? <---
~~~~~~~~~~~~~~~~~~~~~~~~~