Step 6: Configuring Serviceguard using Legacy packages

Use the following procedure to modify or create package control scripts.

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

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

c.Create a package control script if you do not already have one.

d.Convert a package control script to execute the EVFS control script.

e.Modify the package control script to enable EVFS volumes and mount file systems on the EVFS volumes.

f.Install the EVFS control script in the package directory.

g.Verify and distribute the package configuration.

Step 6a: 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 6b: Creating the Package Configuration File

Skip this step if you already have an existing legacy package configuration file.

If you do not already have a package configuration file, create a subdirectory under the directory /etc/cmcluster for the package, and create the package configuration file using the following cmmakepkg command:

#cmmakepkg -p /etc/cmcluster/pkg_name/package_file_name.conf

For example:

#cmmakepkg -p /etc/cmcluster/evfs/my_pkg.conf

For more information, see the Serviceguard product documentation

IMPORTANT: Additional changes must be made to the new package configuration file before it can be used. For more information, see the Serviceguard product documentation

Step 6c: Creating a Package Control Script

Skip this step if you already have a package control script.

If you do not already have a package control script, use with the following syntax to create a new package control script:

cmmakepkg -soutput_file_name

For example:

#cmmakepkg -s /etc/cmcluster/my_pkg/my_pkg.sh

where /etc/cmcluster/my_pkg/my_pkg.sh is the new package control script. For more information, see the Serviceguard product documentation

Step 6d: Converting a Package Control Script

Converting a Package Control Script

You must convert the package control script to execute EVFS control script. Convert the package control script using the evfssgconv utility. The syntax is:

/etc/evfs/opt/cmcluster/evfssgconv source_package > new_package

where:

source_package Specifies the existing package control script file, such as /etc/cmcluster/my_pkg/my_pkg.sh.

Step 6: Configuring Serviceguard using Legacy packages 167

Page 167
Image 167
HP UX Encrypted Volume and Filesystem (EVFS) manual Configuring Serviceguard using Legacy packages