| United States-English |
|
|
|
![]() |
Configuring OPS Clusters with MC/LockManager: > Chapter 7 Cluster and Package MaintenanceManaging Packages and Services |
|
Managing packages and services involves the following tasks:
You can use SAM or HP-UX commands to start, halt, and move packages. You can also modify package failover options without bringing down the cluster or package node. Ordinarily, a package configured as part of the cluster will start up on its primary node when the cluster starts up. You may need to start a package manually after it has been halted manually. You can do this either in SAM or with HP-UX commands. In SAM, select "Package Administration," then choose the package you wish to start. From the Actions menu, choose "Start Package." If you wish to start the package on a specific node, choose "Start a Package on a Specific Node." Otherwise, choose "Start Package," and reply Yes to the verification prompt. Use the cmrunpkg command to run the package on a particular node, then use the cmmodpkg command to enable switching for the package. Example:
This starts up the package on node 1, then enables package switching. This sequence is necessary when a package has previously been halted on some node, since halting the package disables switching. You halt a package when you wish to bring the package out of use but wish the node to continue in operation. You can halt a package using SAM or using HP-UX commands. Halting a package has a different effect than halting the node. When you halt the node, its packages may switch to adoptive nodes (assuming that switching is enabled for them); when you halt the package, it is disabled from switching to another node, and must be restarted manually on another node or on the same node. In the SAM "Package Administration" area, choose a package from the list, then select "Halt Package" from the Actions menu. Choose OK in response to the verification prompt. When you halt the package in this way, it is disabled from switching to another node. You can use SAM or HP-UX commands to move a package from one node to another. From the Package Administration screen in SAM, choose a package, then select "Move a Package" from the Actions menu. Choose the node you wish to move the package to, then select OK. Reply Yes to the verification prompt. Before you move the package, halt it on its original node using the cmhaltpkg command. This action not only halts the package, but also disables switching the package back to the node on which it halts. After you have moved the package you must restart it and enable switching. You can do this in SAM or by issuing the cmrunpkg command followed by cmmodpkg -e package_name. cmmodpkg can be used with the -n option to enable a package to run on a node if the package has been disabled from running on that node due to some sort of error. If no node is specified, the node the command is run on is the implied node. Example:
To make a permanent change in package configuration, you must use the following steps:
MC/LockManager does not require much on-going system administration intervention. As long as there are no failures, your cluster will be monitored and protected. In the event of a failure, those packages that you have designated to be transferred to another node will be transferred automatically. Your ongoing responsibility as the system administrator will be to monitor the cluster and determine if a transfer of package has occurred. If a transfer has occurred, you have to determine the cause and take corrective actions. The typical corrective actions to take in the event of a transfer of package include:
|
|||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||