Managing HP Serviceguard for Linux Ninth Edition, April 2009

modules used by a package are started in the order shown near the top of its
package configuration file.)
cmrunpkg -m sg/package_ip pkg1
4. Perform maintenance on the services and test manually that they are working
correctly.
NOTE: If you now run cmviewcl, you'll see that the STATUS of pkg1 is up and
its STATE is MAINTENANCE.
5. Halt the package:
cmhaltpkg pkg1
NOTE: You can also use cmhaltpkg -s, which stops the modules started by
cmrunpkg -m — in this case, all the modules up to and including package_ip.
6. Run the package to ensure everything is working correctly:
cmrunpkg pkg1
NOTE: The package is still in maintenance mode.
7. If everything is working as expected, halt the package and bring it out of
maintenance mode:
cmhaltpkg pkg1
cmmodpkg -m off pkg1
8. Restart the package:
cmrunpkg pkg1
NOTE: You cannot use the -t option of any command that operates on a package
that is in partial-startup maintenance mode; see “Previewing the Effect of Cluster
Changes” (page 241) for information about the -t option.
Excluding Modules
In the example above, we used cmrunpkg -m to run all the modules up to and including
package_ip, but none of those after it. But you might want to run the entire package
apart from the module whose components you are going to work on. In this case you
can use the -e option:
cmrunpkg -e sg/service pkg1
This runs all the package's modules except the services module.
238 Cluster and Package Maintenance