Configuring the VCS Agent for DB2 by editing the main.cf 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 main.cf 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.

To prepare to edit the main.cf file

  1. Log on 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. Make sure to stop VCS while you edit main.cf. 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 main.cf file:
    # cd /etc/VRTSvcs/conf/config
    # cp main.cf main.cf.orig