Planning and Configuring HP-UX DCE 1.9

Chapter 6
Configuring HP-UX DCE Cells
Integrating DCE Services with MC/ServiceGuard
72
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:
cmckeckconf -C /etc/cmcluster/cmclconfig.ascii \ -P /etc/cmcluster/
pkg-name
/
pkg-name
.conf
NOTE This command fails if the ServiceGuard daemons are running.
3. Apply the configuration on the cluster. From the primary node, enter:
cmapplyconf -v -f -C /etc/cmcluster/cmclconfig.ascii \ -P
/etc/cmcluster/
pkg-name/pkg-name
.conf
NOTE This command fails if the ServiceGuard daemons are running.
Starting the ServiceGuard Cluster
The ServiceGuard cluster can be started automatically after a system boot. To do this, modify
/etc/r.config.d/cmcluster and set the environment variable AUTOSTART_CMCLD to 1.
1. To manually start the ServiceGuard cluster services, enter:
cmruncl -v -n
primary_node
-n
secondary_node
2. To view the cluster status, enter:
cmviewcl -v
Starting the Package on the ServiceGuard Cluster
Configured packages are started automatically on their primary nodes when the ServiceGuard cluster is
started. Packages on the ServiceGuard cluster can be halted manually. To restart a package, use SAM or
follow these steps.
1. To restart the package on a specified host, enter:
cmrunpkg -n
host pkg-name
2. To re-enable packet switching after halting the package, enter: