19.Validate the changes done by running: cmcheckconf -v-p <pkg_name>

20.Edit the package configuration file to add the generic resource parameters.

21.Validate the changes done by running: cmcheckconf -v-p <pkg_name>

22.Apply the changes by running: cmapplyconf -v-p <pkg_name>

23.Start the package.

Example of Migration of an EMS Resource to a Generic Resource

Let us consider an example of an EMS resource /vg/vgpkg/pv_summary that monitors the status of all PV links for the volume group vgpkg.

Consider a package pkg1 that is configured with the following EMS resource parameters:

resource_name /vg/vgpkg/pv_summary resource_polling_interval 60 resource_start DEFERRED resource_up_value = UP

Identify the equivalent SFM style resource monitor.

Create a monitoring script (e.g., sample_generic_resource_disk_monitor.sh) containing the logic to monitor the resource. Configured this script as a service by providing the full path name of the script in the service_cmd parameter and associating it to a service_name (e.g., sfm_vg_monitor) as follows:

service_name sfm_vg_monitor

service_cmd /etc/cmcluster/pkg1/sample_generic_resource_disk_monitor.sh

NOTE: You can also configure other 'service' parameters, but these are optional.

If not already available, obtain a copy of the package's configuration file by running: cmgetconf -v-p pkg1 pkg1.conf

Edit the package configuration file by removing the EMS resource (mentioned above) from the package.

Configure a generic resource as follows:

service_name

sfm_vg_monitor

service_cmd

/etc/cmcluster/pkg1/sample_generic_resource_disk_monitor.sh

generic_resource_name

sfm_vg

generic_resource_evaluation_type

during_package_start

NOTE: Since the EMS monitor is of type DEFERRED, configure the generic resource with evaluation type as during_package_start.

Validate the changes done by running: cmcheckconf -v-p pkg1.conf

Apply the changes by running: cmapplyconf -v-p pkg1.conf

Start the package.

Verify that the generic resource parameters are configured by running: cmviewcl -v-p pkg1.conf

IMPORTANT: If you are migrating an EMS resource of type DEFERRED (as shown in the example), you can edit the parameters online, i.e., without halting the package. Since this is an online operation, it is recommended that you be cautious while editing the required parameters.

Example of Migration of an EMS Resource to a Generic Resource 397

Page 397
Image 397
HP Serviceguard manual Start the package, Identify the equivalent SFM style resource monitor