HP Serviceguard Extended Distance Cluster for Linux A.11.20.10 Deployment Guide, December 2012

5 Configuring Packages for Extended Distance Cluster
Software
With A.11.20.10, HP Serviceguard introduces a unified method of configuring packages. Packages
created with this method are referred to as modular packages. With this new method, you can
configure any package using a single file.
Similarly, using the modular package method, you can configure the packages in serviceguard-xdc
environment. Modular packages that contain attributes and values for XDC module are referred
to serviceguard-xdc packages. The configuration parameters for XDC module in the package are
located in the package file. This chapter discusses how to create an serviceguard-xdc modular
package.
5.1 Creating a serviceguard-xdc Modular Package
NOTE: Mulitnode or system multinode package are not supported.
To create a modular package, complete the following procedure:
1. Run the following commands to create a modular package for serviceguard-xdc:
On Red Hat Enterprise Linux Server 5 and 6 with persistent reservation:
cmmakepkg -m sg/pr_cntl -m xdc/xdc
/usr/local/cmcluster/conf/xdc_pkg1/xdc_pkg1.conf
On Red Hat Enterprise Linux Server 5 and 6 without persistent reservation:
cmmakepkg -m sg/failover -m sg/priority -m sg/dependency -m sg/weight
-m sg/monitor_subnet -m sg/package_ip -m sg/service -m
sg/generic_resource -m sg/volume_group -m sg/filesystem -m sg/pev
-m sg/external_pre -m sg/external -m sg/acp -m xdc/xdc
/usr/local/cmcluster/conf/xdc_pkg1/xdc_pkg1.conf
On SUSE Linux Enterprise Server 11 with persistent reservation:
cmmakepkg -m sg/pr_cntl -m xdc/xdc
/opt/cmcluster/conf/xdc_pkg1/xdc_pkg1.conf
On SUSE Linux Enterprise Server 11 without persistent reservation:
cmmakepkg -m sg/failover -m sg/priority -m sg/dependency -m sg/weight
-m sg/monitor_subnet -m sg/package_ip -m sg/service -m
sg/generic_resource -m sg/volume_group -m sg/filesystem -m sg/pev
-m sg/external_pre -m sg/external -m sg/acp -m xdc/xdc
/opt/cmcluster/conf/xdc_pkg1/xdc_pkg1.conf
By running these commands, an empty template file is created. You will need to edit this empty
template file to enable Software RAID in your environment.
Following is a sample section of the serviceguard-xdc template file. This snippet illustrates only
the section where serviceguard-xdc configuration is specified:
2. If the MD device is active, run the following command to stop the MD device:
mdadm S /dev/md0
where, “/dev/md0” is the name of the MD device specified in the configuration file.
Ensure that the MD device that is specified in the package configuration file are activated by
the package only.
# *********************************************************************
# *** EXTENDED DISTANCE CLUSTER CONFIGURATION ***
5.1 Creating a serviceguard-xdc Modular Package 29