Enabling and disabling intelligent resource monitoring for Db2udb resource

Review the following procedures to enable or disable intelligent resource monitoring. The intelligent resource monitoring feature is now enabled by default. The IMF resource type attribute determines whether an IMF aware agent must perform intelligent resource monitoring.

To enable intelligent resource monitoring for Db2udb resource

  1. Make the VCS configuration writable by running the command

    # haconf -makerw

  2. To enable intelligent resource monitoring for all the resources of type Db2udb, run the following command:

    # hatype -modify Db2udb IMF -update Mode 2

  3. Change the values of the MonitorFreq key and the RegisterRetryLimit key of the IMF attribute.

    See About the Db2udb resource types and attribute definitions.

  4. Save the VCS configuration

    # haconf -dump -makero

  5. Make sure that the AMF kernel driver is configured on all nodes in the cluster.

    # /opt/VRTS/bin/amfconfig

    Configure the AMF driver if the command output returns that the AMF driver is not loaded or not configured.

  6. Restart the Db2udb agent. Run the following commands on each node.

    # haagent -stop Db2udb -force -sys sys_name

    # haagent -start Db2udb -sys sys_name

To disable intelligent resource monitoring for Db2udb resource

  1. Make the VCS configuration writable.

    # haconf -makerw

  2. To disable intelligent resource monitoring for all the resources of type Db2udb, run the following command:

    # hatype -modify Db2udb IMF -update Mode 0

  3. To disable intelligent resource monitoring for a specific Db2udb resource, run the following command:

    # hares -override resource_name IMF

    # hares -modify resource_name IMF -update Mode 0

  4. Save the VCS configuration.

    # haconf -dump -makero

Note:

haimfconfig utility can also be used to enable or disable IMF. Please refer VCS Admin Guide for more information on haimfconfig.