HP Serviceguard Extended Distance Cluster for Linux A.01.01 Deployment Guide, Third Edition, May 2008

Configuring your Environment for Software RAID
Configuring the Legacy Package Control Script and RAID Configuration File
Chapter 376
# cmmakepkg –s <package file name>.sh
For example: # cmmakepkg –s oracle_pkg.sh
An empty template file for this package is created. You will need to edit
this package control script, in order to enable Software RAID in your
environment.
To Edit the DATA_REP Variable
The DATA_REP variable defines the nature of data replication that is
used. To enable Software RAID, set the value of this variable to MD. You
must set this value for every package that you need to enable Software
RAID. When you set this parameter to xdcmd, it enables remote data
replication through Software RAID.
For example: DATA_REP=”xdcmd”
To Edit the XDC_CONFIG FILE parameter
In addition to modifying the DATA_REP variable, you must also set
XDC_CONFIG_FILE to specify the raid.conf file for this package. This file
resides in the package directory.
For example: XDC_CONFIG_FILE="$SGCONF/oracle_pkg/raid.conf”
To Configure the RAID Monitoring Service
After you have edited the variables in the XDC configuration file
(XDC_CONFIG_FILE), you must set up RAID monitoring as a service
within Serviceguard. Following is an example of how the file content
must look:
SERVICE_NAME[0]="RAID_monitor"
SERVICE_CMD[0]="]="/usr/local/cmcluster/bin/raid_monitor '${XDC_CONFIG_FILE}'"
SERVICE_RESTART[0]=""
Ensure that this service is also configured in the package configuration
file as shown below:
SERVICE_NAME raid_monitor
SERVICE_FAIL_FAST_ENABLED YES
SERVICE_HALT_TIMEOUT 300
After editing the package control script, you must edit the raid.conf
file to enable Software RAID.