Managing HP Serviceguard for Linux, Eighth Edition, March 2008

Cluster and Package Maintenance
Reconfiguring a Package
Chapter 7292
cmhaltpkg mypkg
cmdeleteconf -p mypkg
The command prompts for a verification before deleting the files unless
you use the -f option. The directory $SGCONF/mypkg is not deleted by
this command.
Resetting the Service Restart Counter
The service restart counter tracks 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.
When a package service successfully restarts after several attempts, the
package manager does not automatically reset the restart count. You can
reset the counter online using cmmodpkg -R -s, for example:
cmmodpkg -R -s myservice pkg1
This sets the counter back to zero. The current value of the restart
counter appears in the output of cmviewcl -v.
Allowable Package States During Reconfiguration
In many cases, you can make changes to a package’s configuration while
the package is running. Table 7-2 shows exceptions - cases in which the
package must not be running, or in which the results might not be what
you expect.
Parameters not listed in the table can be changed while the package is
running.
In all cases the cluster can be running, and packages other than the one
being reconfigured can be running. (And remember too that you can
make changes to package configuration files at any time; but do not
apply them (using cmapplyconf or Serviceguard Manager) to a running
package in the cases indicated by Table 7-2.)