The following are some commonly used HP-UX commands related to SAP HA:
- cmruncl:
- Function: Starts the High Availability (HA) service.
- Example: After system up, run
cmruncl
to bring the HA infrastructure online.
- cmviewcl:
- Function: Checks the status of the HA system.
- Example: When suspecting an issue with a cluster node, run
cmviewcl
to view detailed node, resource, and package states. - cmhaltnode -v node_name:
- Function: Gracefully removes a specific node from the cluster.
- Example: To perform maintenance on "server01", execute
cmhaltnode -v server01
.
- cmrunnode -v node_name:
- Function: Adds a particular node back into the cluster.
- Example: After finishing maintenance on "server01", run
cmrunnode -v server01
to reintegrate it.
- cmhaltpkg -v package_name:
- Function: Halts the currently active dual - node package.
- Example: If the "db_ha_package" has issues, use
cmhaltpkg -v db_ha_package
to stop it.
- cmrunpkg -n node_name package_name:
- Function: Move the resource package to another node.
- Example: When the primary node running "db_ha_package" fails, run
cmrunpkg -n server02 db_ha_package
to start on the secondary node.
- cmhaltcl –f:
- Function: Forces the termination of the HA service.
- Example: In case of an irrecoverable HA cluster state, like a corrupted config file, run
cmhaltcl –f
(use with caution).
- cmruncl -v -n node_name:
- Function: Potentially starts the HA cluster in verbose mode on a specified node in a shell script or command - line context.
- Example: In a custom startup script, uncomment and modify for the target server.
The HP-UX HA log directory is /etc/cmcluster/ .
Comments
Post a Comment