Planning and Configuring HP DCE 1.8
Chapter 5 113
Configuring HP DCE Cells
Integrating DCE Services with MC/ServiceGuard
4. Create a control script for the package as follows:
cmmakepkg -s /etc/cmcluster/pkg-name/rc.pkg-name
chmod 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/dce to
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.
10.Create the DCE daemon restart script using dce.restart as a sample
template. Set the environment variable SG_DCE_BASE_DIR to
/etc/cmcluster/pkg-name.
Distributing the Package
To distribute the package follow these steps:
1. Distribute the package configuration and control scripts across the
nodes. From the primary node, enter;
rcp -r /etc/cmcluster/pkg-name\
secondary_node:/etc/cmcluster/pkg-name
2. Verify that the configuration scripts are correct. From the primary
node, enter: