Managing Serviceguard 13th Edition, February 2007

Cluster and Package Maintenance
Reconfiguring a Package
Chapter 7 335
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 the cmviewcl -v -l
package command. 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 packages (on systems that
support CFS), use the cfscluster, cfsdgadm, or cfsmntadm command.
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.
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 the cfs commands listed in Appendix A.
All the packages that depend on the multi-node package must be halted
on that node.
To remove the CFS mount point and disk group packages, follow these
steps:
1. Remove any dependencies on the package being deleted. Delete
DEPENDENCY parameters from the failover application package
configuration file, then apply the modified configuration file:
# cmapplyconf -v -P app1.config
2. Unmount the shared file system
# cfsumount <mount point>
3. Remove the mount point package from the cluster
# cfsmntadm delete <mount point>