Configuring your Environment for Software RAID

Configuring the Package Control Script and RAID Configuration File

#Specify the method of activation and deactivation for md.

#Leave the default (RAIDSTART="raidstart", "RAIDSTOP="raidstop") if you want

#md to be started and stopped with default methods.

RAIDSTART="raidstart -c ${RAIDTAB}"

RAIDSTOP="raidstop -c ${RAIDTAB}"

Creating and Editing the Package Control Scripts

After you install the XDC software, you need to create a package control script and add references to the XDC software to enable Software RAID. After you create the package control script you need to complete the following tasks:

Edit the value of the DATA_REP variable

Edit the value of the XDC_CONFIG_FILE to point to the location where the raid.conf file is placed

Configure the RAID monitoring service

To Create a Package Control Script

The procedure to create a package control script for XDC software is identical to the procedure that you follow to create other package control scripts.

To create a package control script, run the following command:

# 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”

Chapter 3

77

Page 77
Image 77
HP serviceguard t2808-90006 manual Creating and Editing the Package Control Scripts, To Create a Package Control Script