Symantec logo

Configuring the DB2 UDB agent by editing the main.cf file

The VCS agent for DB2 comes with three sample VCS configuration files installed in the /etc/VRTSagents/ha/conf/Db2udb/sample_db2 directory. One sample is for an ESE single-partition instance configuration, another for a ESE multi-partition instance SMP configuration, and another for an ESE multi-partition instance MPP configuration. The appropriate file can be used as reference to directly modify your present main.cf configuration file. When you use this method, you must stop and restart VCS to implement the configuration.

 To prepare to edit the main.cf file

  1. Log in to System A as root.
  2. Save your existing configuration to prevent any changes while you modify the main.cf file:

    # haconf -dump -makero

  3. Ensure VCS is not running while you edit main.cf by using the hastop command to stop the VCS engine on all systems and leave the resources available:

    # hastop -all -force

  4. Make a backup copy of the main.cf file:

    # cd /etc/VRTSvcs/conf/config

    # cp main.cf main.cf.orig

Depending on your configuration, go to one of the following sections that describe configuring the agent for DB2.