Configuring the DB2 UDB agent by editing the file

The VCS agent for DB2 comes with three sample VCS configuration files, which are in the /etc/VRTSagents/ha/conf/Db2udb/sample_db2udb directory.

The samples are as follows:

The appropriate file can be used as reference to directly modify your present configuration file. When you use this method, you must stop and restart VCS to implement the configuration.

After you complete these steps, go to one of the following sections that describe configuring the agent for DB2.

To prepare to edit the file

  1. Log on to System A as root.

  2. Save your existing configuration to prevent any changes while you modify the file:

    # haconf -dump -makero
  3. Make sure to stop VCS while you edit Use 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 file:

    # cd /etc/VRTSvcs/conf/config
    # cp