Step 5: Configuring Serviceguard using Modular packages

Use the following procedure to modify or create Serviceguard package configuration files.

a.Halt the package if you want to reconfigure an existing package to use EVFS volumes.

b.Install EVFS Attribute definition file in the modules directory.

c.Copy the EVFS Control and Module Scripts.

d.Create a modular package configuration file if you do not already have one.

e.Migrate an existing legacy package configuration file if you have one.

f.Add the EVFS package to the modular configuration file

g.Modify the package configuration file to enable EVFS volumes and mount file systems on the EVFS volumes.

h.Verify and distribute the package configuration.

Step 5a: Halting an Existing Package

You cannot re-configure an active package to use EVFS volumes. To re-configure an existing, active package to use EVFS volumes, you must halt the package using the cmhaltpkg command. For more information, see the Serviceguard product documentation

Step 5b: Installing the EVFS Attribute Definition File

1.Create a subdirectory evfs under the /etc/cmcluster/modules directory for the package as follows:

#mkdir /etc/cmcluster/modules/evfs

2.Change the evfs subdirectory permissions to write protect it as follows:

#chmod 555 /etc/cmcluster/modules/evfs

3.Copy the EVFS Attribute definition file /etc/evfs/opt/cmcluster/evfs.1 to the evfs subdirectory with appropriate permissions, as follows:

#cp /etc/evfs/opt/cmcluster/evfs.1 /etc/cmcluster/modules/evfs/evfs.1

#chmod 444 /etc/cmcluster/modules/evfs/evfs.1

#chown root:root /etc/cmcluster/modules/evfs/evfs.1

4.Create a link to the ADF file as follows:

#umask 022

#ln -s /etc/cmcluster/modules/evfs/evfs.1 /etc/cmcluster/modules/evfs/evfs

#chown -h root:root /etc/cmcluster/modules/evfs/evfs

Step 5c: Copying the EVFS Control and Module Scripts

1.Create a subdirectory evfs under the /etc/cmcluster/scripts directory as follows:

#mkdir /etc/cmcluster/scripts/evfs

2.Change the evfs subdirectory permissions to write protect it as follows:

#chmod 555 /etc/cmcluster/scripts/evfs

3.Copy the EVFS control script /etc/evfs/opt/cmcluster/evfs_sg.sh to the evfs subdirectory as follows:

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

4.Copy the EVFS module script/etc/evfs/opt/cmcluster/evfs.sh to the evfs subdirectory as follows:

#cp /etc/evfs/opt/cmcluster/evfs.sh /etc/cmcluster/scripts/evfs/evfs.sh

164 Using EVFS with Serviceguard

Page 164
Image 164
HP UX Encrypted Volume and Filesystem (EVFS) Configuring Serviceguard using Modular packages, Halting an Existing Package