Managing HP Serviceguard A.12.00.00 for Linux, June 2014

Running package PKG1 on node test1
Successfully started package PKG1 on node test1
cmrunpkg: All specified packages are running
For more information, see the cmrunpkg (1m) manpage.
8.2.3 Halting a Package
You can halt a package using the following command:
#cmsimulatecl --session test_cluster cmhaltpkg PKG1
One or more packages or package instances have been halted
cmhaltpkg: Completed successfully on all packages specified
For more information, see the cmhaltpkg (1m) manpage.
8.2.4 Deleting a Package
You can delete the package using the following command:
#cmsimulatecl --session test_cluster cmdeleteconf -p PKG1
Modify the package configuration ([y]/n)y
Completed the package deletion
For more information, see the cmdeletepkg (1m) manpage.
8.2.5 Enabling or Disabling Switching Attributes for a Package
To enable or disable switching attributes for a package:
#cmsimulatecl --session test_cluster cmmodpkg -d PKG1.conf
cmmodpkg: Completed successfully on all packages specified
For more information, see the cmmodpkg (1m) manpage.
8.3 Simulating Failure Scenarios
You can simulate a failure or recovery of node or package or interface on a simulated cluster.
After simulating this failure, you may use the cmviewcl command in the simulator to verify the
resulting package placement and status. For more information, see cmsimulatecl (1m)
manpage.
For example, when a node test1 fails in a cluster, the packages that failover to the other nodes
might not return back to node test1. When that node is recovered and only the packages that
had failback_policy parameter configured may fail back to node test1.
Failure and recovery of a node
To simulate a failure on a specified node:
#cmsimulatecl --session test_cluster fail -n test1
NOTE: To verify whether the packages running on test1 failed over or not, and where the
packages are currently running:
#cmsimulatecl --session test_cluster cmviewcl
To recover from the last node failure:
#cmsimulatecl --session test_cluster recover -n test1
Failure and recovery of a package
To simulate a failure on a specified package:
#cmsimulatecl --session test_cluster fail -p PKG1
8.3 Simulating Failure Scenarios 261