HP-UX HB v13.00 Ch-15 - Serviceguard

HP-UX Handbook Rev 13.00 Page 39 (of 108)
Chapter 15 Serviceguard
October 29, 2013
removed from the existing cluster.
Starting Packages
Ordinarily when a cluster starts, the packages will start on their primary configured nodes. You
may need to start a package manually after it has been halted manually using the cmrunpkg
command. This command may be run on any node within the cluster and may operate on any
package within the cluster. If a node is not specified, the node on which the command is run will
be used. This will result in an error if the current node is unable to run the package or is not listed
as a possible owner of the package. When a package is started on a new node, the package’s run
script is executed with argument start.
root@Node1:/# cmrunpkg -v sw-pkg
Running package sw-pkg on node Node1
Successfully started package sw-pkg on node Node1
cmrunpkg: All specified packages are running
If a package startup results failure and NO_RESTART status, inspect the package log, resolve
the failure cause and re-enable the node_switching and AUTO_RUN settings using cmmodpkg
(see below).
Stopping Packages
To halt a high availability package use the command cmhaltpkg. This performs a manual halt of
high availability package(s) running on Serviceguard clusters. The command may be run on any
node within the cluster and may operate on any package within the cluster.
root@Node1:/# cmhaltpkg sw-pkg
Disabling automatic failover for failover packages to be halted.
Halting package sw-pkg
Successfully halted package sw-pkg
One or more packages or package instances have been halted. These packages
have AUTO_RUN disabled and no new instance can start automatically. To allow
automatic start, enable AUTO_RUN via cmmodpkg -e <package_name>
cmhaltpkg: Completed successfully on all packages specified
Modifying Package Switching Attributes
Note the AUTO_RUN and switching values in the cmviewcl report:
PACKAGE STATUS STATE AUTO_RUN NODE
sw-pkg up running enabled Node1
--snipped---
Node_Switching_Parameters:
NODE_TYPE STATUS SWITCHING NAME
Primary up enabled Node1 (current)
Alternate up disabled Node2