Planning and Configuring HP-UX DCE 1.9

Chapter 6
Configuring HP-UX DCE Cells
Integrating DCE Services with MC/ServiceGuard
71
Configuring DCE
Perform the following steps to configure DCE on your system if the ServiceGuard is running:
1. Create a volume group for the DCE data file (for example: /dev/vgdce).
2. Manually activate the volume group to be accessed from the primary node (for example: vgchange -a e
/dev/vgdce).
3. Identify the filesystems and logical volumes for the package filesystem definition. These should reside in
the shared disk.
For most installations, HP recommends that the three directory trees /krb5, /var/opt/dce, and
/etc/opt/dce be set up as logical volumes after the DCE software has been installed, but before DCE has
been configured on the ServiceGuard cluster.
Before running the DCE initial configuration program, manually mount these logical volumes on shared
disk to be accessed from the primary node.
4. Once dce_config is invoked, it asks if the DCE Core services will be run under a ServiceGuard package.
Answer yes. Then dce_config prompts for a “package hostname.” Enter the package hostname. From
this point on, the dce_config script proceeds normally.
5. When the DCE configuration procedure is complete, the daemons for the core services are automatically
started. Use dce_config to manually shutdown the DCE services that are running standalone.
6. Unmount and deactivate the volume group, which is in the shared disk.
7. Manually remove the IP address from the cluster with the following command:
cmmodnet -a -i
package_IP SUBNET
8. Halt the ServiceGuard cluster with the following command:
cmhaltcl -f
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-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).