Managing Serviceguard A.11.20, March 2013

Adding a Package to a Running Cluster
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 MAX_CONFIGURED_PACKAGES in the cluster configuration file.
To create the package, follow the steps in the chapter “Configuring Packages and Their Services
(page 232). Use a commands such as the following to verify the configuration of a newly created
pkg1 and distribute the configuration to all nodes in the cluster:
cmcheckconf -P /etc/cmcluster/pkg1/pkg1conf.ascii
cmapplyconf -P /etc/cmcluster/pkg1/pkg1conf.ascii
If this is a legacy package, remember to copy the control script to the/etc/cmcluster/pkg1
directory on all nodes that can run the package.
To create the CVM disk group or CFS mount point multi-node packages on systems that support
CFS, see “Creating the Disk Group Cluster Packages (page 208) and “Creating a File System and
Mount Point Package” (page 221).
Deleting a Package from a Running Cluster
Serviceguard will not allow you to delete a package if any other package is dependent on it. To
check for dependencies, use cmviewcl -v -l <package>. System multi-node packages cannot
be deleted from a running cluster.
You can use Serviceguard Manager to delete the package.
On the Serviceguard command line, you can (in most cases) delete a package from all cluster
nodes by using the cmdeleteconf command. To delete one of the Veritas Cluster File System
legacy packages, use cfscluster, cfsdgadm, or cfsmntadm. This removes the package
information from the binary configuration file on all the nodes in the cluster. The command can
only be executed when the package is down; the cluster can be up. To delete modular packages,
use cmhaltpkg and cmdeleteconf commands.
The following example halts the failover package mypkg and removes the package configuration
from the cluster:
cmhaltpkg mypkg
cmdeleteconf -p mypkg
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.
On systems that support CFS, you can remove nodes from a multi-node package configuration
using cfs commands. All the packages that depend on the multi-node package must be halted
on that node.
To remove the legacy CVM disk groups and CFS mount points, follow these steps:
CAUTION: You must not use the HP-UX mount and umount commands in a CFS environment;
use cfsmount or cfsumount for legacy CFS packages. For modular packages, you must use
cmcheckconf, cmapplyconf, cmrunpkg, cmmodpkg, and cmrunpkg. Non-CFS commands
(for example, mount -o cluster, dbed_chkptmount, or sfrac_chkptmount) could cause
conflicts with subsequent operations on the file system or Serviceguard packages, and will not
create an appropriate multi-node package, with the result that cluster packages are not aware of
file system changes.
318 Cluster and Package Maintenance