HP UX Encrypted Volume and Filesystem (EVFS) manual Installing the Evfs Control Script

Models: UX Encrypted Volume and Filesystem (EVFS)

1 174
Download 174 pages 22.98 Kb
Page 168
Image 168

new_package

Specifies the name for the new package control script file, such as

 

/etc/cmcluster/my_pkg/my_pkg_evfs.sh.

Modifying the Package Configuration File

You must modify the RUN_SCRIPT and HALT_SCRIPT variables in the package configuration file to use the converted package control script. For example:

RUN_SCRIPT /etc/cmcluster/my_pkg/my_pkg_evfs.sh

:

:

HALT_SCRIPT /etc/cmcluster/my_pkg/my_pkg_evfs.sh

Step 6e: Adding the EVFS Volumes to the Package Control Script

Edit the package control script to configure the EVFS volumes that you want Serviceguard to enable when the package starts, and the file systems to be mounted on the EVFS volumes.

If the EVFS volumes are created on VxVM volumes, specify the VxVM disk groups in the VXVM_DG[] parameters in the package control script.

Specify the EVFS volumes that you want Serviceguard to enable in the LV[] parameters

Specify the file systems you want Serviceguard to mount on the EVFS volumes in the FS[] parameters

Specify the appropriate file system type in the FS_TYPE[] parameters

If you started with an existing package control script, remove the appropriate LVM or VxVM volumes from the LV[] and FS[] entries and replace them with EVFS volumes.

Serviceguard will enable the EVFS volumes when the package starts and disable the EVFS volumes when the package fails over.

LVM and VxVM Legacy package example

LVM Example

LV[0]="/dev/evfs/vg02/lvol5"; FS[0]="/opt/crypto"; FS_MOUNT_OPT[0]= "-o rw"

#FS_TYPE[0]="vxfs"

VxVM Example

VXVM_DG[0]="evfsdg"

:

:

LV[0]="/dev/evfs/vx/dsk/evfsdg/vol5"; FS[0]="/opt/crypto"; FS_MOUNT_OPT[0]= "-o rw"

#FS_TYPE[0]="vxfs"

Step 6f: Installing the EVFS Control Script

Create a copy of the EVFS control script /etc/evfs/opt/cmcluster/evfs_sg.sh, and place the copy into the package sub-directory.

For example:

# cp /etc/evfs/opt/cmcluster/evfs_sg.sh /etc/cmcluster/my_pkg/evfs_sg.sh

Step 6g: Verifying the Script

Verify the package configuration using the cmcheckconf command. Build and distribute the cluster configuration as described in the Serviceguard product documentation.

168 Using EVFS with Serviceguard

Page 168
Image 168
HP UX Encrypted Volume and Filesystem (EVFS) manual Adding the Evfs Volumes to the Package Control Script