FS_FSCK_OPT[0]="";
FS_TYPE[0]="vxfs"
5.Use the cmcheckconf command to validate the package.
#cmcheckconf -P ccmonpkg.config
6.Copy the package configuration file ccmonpkg.config and control script ccmonpkg.cntl to the monitor package directory (default name /etc/cmcluster/ccmonpkg) on all the other nodes in the cluster. Ensure this file is executable.
7.Use the cmapplyconf command to add the package to the Serviceguard configuration.
#cmapplyconf -P ccmonpkg.config
The following sample package configuration file (comments have been left out) shows a typical package configuration for a Continentalclusters monitor package:
PACKAGE_NAME ccmonpkg
PACKAGE_TYPE FAILOVER
FAILOVER_POLICY CONFIGURED_NODE
FAILBACK_POLICY MANUAL
NODE_NAME LAnode1
NODE_NAME LAnode2
AUTO_RUN YES
LOCAL_LAN_FAILOVER_ALLOWED YES
NODE_FAIL_FAST_ENABLED NO
RUN_SCRIPT /etc/cmcluster/ccmonpkg/ccmonpkg.cntl
RUN_SCRIPT_TIMEOUT NO_TIMEOUT
HALT_SCRIPT /etc/cmcluster/ccmonpkg/ccmonpkg.cntl
HALT_SCRIPT_TIMEOUT NO_TIMEOUT
SERVICE_NAME ccmonpkg.srv
SERVICE_FAIL_FAST_ENABLED NO
SERVICE_HALT_TIMEOUT 300
Configuring primary and recovery packages as legacy packages when using Continuous Access P9000 and XP
To configure Primary or Recovery Package on the Source Disk Site or Target Disk Site in legacy style:
1.Create a directory /etc/cmcluster/<pkgname> for the package.
#mkdir /etc/cmcluster/<pkgname>
2.Create a package configuration file.
#cd /etc/cmcluster/<pkgname>
#cmmakepkg -p <pkgname>.ascii
Customize the package configuration file as appropriate to your application. Be sure to include the pathname of the control script (/etc/cmcluster/<pkgname>/<pkgname>.cntl) for the RUN_SCRIPT and HALT_SCRIPT parameters.
Set the AUTO_RUN flag to NO. This is to ensure the package will not start when the cluster starts. Only after primary packages start, use cmmodpkg to enable package switching on all primary packages. Enabling package switching in the package configuration must automatically start the primary package when the cluster starts. However, if there is a source disk site disaster, resulting in the recovery package starting and running on the target disk site, the primary package must not be started until after first stopping the recovery package.
Do not use cmmodpkg to enable package switching on any recovery package. Package switching on a recovery package automatically set by the cmrecovercl command on the target disk site when it successfully starts the recovery package.
Configuring legacy packages 105