To generate a configuration file for a failover package that runs an application that requires another package to be up (enter the command all on one line):

cmmakepkg -m sg/failover -m sg/dependency -m sg/service $SGCONF/pkg1/pkg1.conf

To generate a configuration file adding the services module to an existing package (enter the command all on one line):

cmmakepkg -i $SGCONF/pkg1/pkg1.conf -m sg/service $SGCONF/pkg1/pkg1_v2.conf

NOTE: You can add more than one module at a time.

Next Step

The next step is to edit the configuration file you have generated; see “Editing the Configuration File” (page 255).

Editing the Configuration File

When you have generated the configuration file that contains the modules your package needs (see “Generating the Package Configuration File” (page 254)), you need to edit the file to set the package parameters to the values that will make the package function as you intend.

IMPORTANT: Do not edit the package configuration file of a Veritas Cluster Volume Manager (CVM) or Cluster File System (CFS) multi-node or system multi-node package.

Create SG-CFS-pkgby means of the cmapplyconf command. Create and modify SG-CFS-DG-id#and SG-CFS-MP-id#using cfs* commands.

It is a good idea to configure complex failover packages in stages, as follows:

1.Configure volume groups and mount points only.

2.Check and apply the configuration; see “Verifying and Applying the Package Configuration” (page 259).

3.Run the package and ensure that it can be moved from node to node.

NOTE: cmcheckconf and cmapplyconf check for missing mount points, volume groups, etc.

4.Halt the package.

5.Configure package IP addresses and application services.

6.Run the package and ensure that applications run as expected and that the package fails over correctly when services are disrupted. See “Testing the Package Manager ” (page 321).

Use the following bullet points as a checklist, referring to the “Package Parameter Explanations” (page 233), and the comments in the configuration file itself, for detailed specifications for each parameter.

Editing the Configuration File 255

Page 255
Image 255
HP Serviceguard manual Editing the Configuration File, Next Step