Managing HP Serviceguard for Linux, Sixth Edition, August 2006

Cluster and Package Maintenance
Reconfiguring a Package on a Running Cluster
Chapter 7 257
Changing Package Switching Behavior
You can change package switching behavior either temporarily or
permanently. 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.
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.)
See the previous section “Reconfiguring a Package on a Running Cluster”
for detailed instructions on reconfiguration.
Resetting the Service Restart Counter
The service restart counter is the number of times a package service has
been automatically restarted. This value is used to determine when the
package service has exceeded its maximum number of allowable
automatic restarts.
NOTE The maximum number of allowable restarts for a given service is set in
the package control script parameter SERVICE_RESTART[]. This
parameter is not the same as the restart counter, which is maintained
separately by the package manager.
When a package service successfully restarts after several attempts, the
package manager does not automatically reset the restart count.
However, you may choose to reset the counter online using the cmmodpkg
-R -s command, thus enabling the service in future restart situations to
have the full number of restart attempts up to the configured
SERVICE_RESTART count. Example:
# cmmodpkg -R -s myservice pkg1