| United States-English |
|
|
|
![]() |
Managing Serviceguard Version A.11.16, Eleventh EditionSecond Printing > Chapter 7 Cluster
and Package MaintenanceReconfiguring a Package |
|
The process of reconfiguration of a package is somewhat like the basic configuration described in Chapter 6. Refer to that chapter for details on the configuration process. The cluster can be either halted or running during package reconfiguration. The types of changes that can be made and the times when they take effect depend on whether the package is running or not. You can also make permanent changes in package configuration while the cluster is not running. Use the following steps:
You can reconfigure a package while the cluster is running, and in some cases you can reconfigure the package while the package itself is running. Only certain changes may be made while the package is running. To modify the package in Serviceguard Manager, select it and then choose Configuring Serviceguard from the Actions menu. When the configuration window opens, choose options as described in Chapter 6. Alternatively, with HP-UX commands, use the following procedure (pkg1 is used as an example):
You can create a new package and add it to the cluster configuration while the cluster is up and while other packages are running. The number of packages you can add is subject to the value of Maximum Configured Packages in the cluster configuration file. To create the package, follow the steps given in the chapter “Configuring Packages and Services.” If you are using the Serviceguard command line, however, do not specify the cluster ASCII file when verifying and distributing the configuration with HP-UX commands. For example, to use HP-UX commands to verify the configuration of newly created pkg1 on a running cluster:
Use an HP-UX command like the following to distribute the new package configuration to all nodes in the cluster:
Remember to copy the control script to the /etc/cmcluster/pkg1 directory on all nodes that can run the package. In Serviceguard Manager, first halt the package. Then, select the cluster. From the Actions menu, choose Configuring Serviceguard -> Delete Package. On the Serviceguard command line, you can delete a package from all cluster nodes by using the cmdeleteconf command. The command can only be executed when the package is not running; the cluster may be up. The command removes the package information from the binary configuration file on all the nodes in the cluster. The following example halts package mypkg and removes the package configuration from the cluster:
The command prompts for a verification before deleting the files unless you use the -f option. The directory /etc/cmcluster/mypkg is not deleted by this command. 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.
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:
The current value of the restart counter may be seen in the output of the cmviewcl -v command. All nodes in the cluster must be powered up and accessible when making configuration changes. Refer to Table 7-2 “Types of Changes to Packages ” to determine whether or not the package may be running while you implement a particular kind of change. Note that for all of the following cases the cluster may be running, and also packages other than the one being reconfigured may be running. Table 7-2 Types of Changes to Packages
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||