Configuring HP DCE Cells

Integrating DCE Services with MC/ServiceGuard

Configuring the Package

Create a package for the DCE services that ServiceGuard can monitor with the following steps:

1. Create a directory for the DCE package name as follows:

mkdir /etc/cmcluster/pkg-name.conf

2.Generate and modify the package configuration script for DCE as follows:

cmmakepkg -p /etc/cmcluster/pkg-name/pkg-name.conf

This command creates a template for pkg-name.

3.Edit this template for the DCE package by supplying the necessary information (for example: PACKAGE_NAME, NODE_NAME). Use the sample file dcepkg.conf for reference.

4.Create a control script for the package as follows:

cmmakepkg -s /etc/cmcluster/pkg-name/rc.pkg-namechmod 755 /etc/cmcluster/pkg-name/rc.pkg-name

Each package has a control script that starts and stops services for the package.

5.Modify the DCE Package information in the control script

(rc.pkg-name) to include the logical volume name, IP address, service name, service and monitoring script names (for example: dce.start and dce.monitor).

Read the sample control script rc.dcepkg carefully and make the similar change in the new control script (rc.pkg-name).

6.Copy the standard DCE configuration file to your package directory. Enter the following command:

cp /etc/rc.config/dce /etc/cmcluster/pkg-name/dce

7.Modify the configuration file /etc/cmcluster/pkg-name/dceto restrict IP address to package IP address. To do this, set the environment variable RPC_SUPPORTED_NETADDRS.

8.Create the package startup script using dce.start as a sample template. Set the environment variable SG_DCE_BASE_DIR to /etc/cmcluster/pkg-name.

9.Create the DCE monitor script using dce.monitor as a sample template. Set the environment variable SG_DCE_BASE_DIR to /etc/cmcluster/pkg-name.

5-38

Planning and Configuring HP DCE 1.7