Managing Serviceguard 11th Edition, Version A.11.16, Second Printing June 2004

Cluster and Package Maintenance
Managing Packages and Services
Chapter 7300
the package first starts in the cluster. The initial setting for node
switching is to allow switching to all nodes that are configured to run the
package. Both node switching and package switching can be changed
dynamically as the cluster is running.
Changing Package Switching with Serviceguard Manager
To change package switching or node switching in Serviceguard
Manager, select the package on the tree or map. Either right-click it or go
to the toolbar Actions menu. Click on the radio button to change between
enabled or disabled. You can set node switching node by node
Note that if the package is currently running on a node, and you disable
switching of the package to that node, the package continues running,
but it will not be able to switch back to the node at a later time.
To change the AUTO-RUN parameter, you need to reconfigure the
package. This is only available for Serviceguard 11.16 or later. Select the
package, then choose Configuring from the Actions menu (on toolbar or
right-click menu). As on the command line, you need root permission on
the cluster to create or modify configuration.
Changing Package Switching with Serviceguard Commands
You can change package switching behavior either temporarily or
permanently using Serviceguard commands. To temporarily disable
switching to other nodes for a running package, use the cmmodpkg
command. For example, if pkg1 is currently running, and you want to
disable its ability to start up on another node, enter the following:
# cmmodpkg -d pkg1
This does not halt the package, but it will prevent the package from
starting up elsewhere.
You can also disable package switching to particular nodes by using the
-n option of the cmmodpkg command. The following disables the ability
of pkg1 to switch to node lptest3:
# cmmodpkg -d -n lptest3 pkg1
To permanently disable switching so that the next time the cluster
restarts, the change you made in package switching is still in effect, you
must change the AUTO_RUN flag in the package configuration file, then
re-apply the configuration. (Any change made this way will take effect
the next time the cluster is restarted.)