Configuring the DB2 UDB agent 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:
A single-partition instance configuration
A multi-partition instance SMP configuration
A 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.
After you complete these steps, go to one of the following sections that describe configuring the agent for DB2.
To prepare to edit the main.cf file
Log on to System A as root.
Save your existing configuration to prevent any changes while you modify the main.cf file:
# haconf -dump -makero
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
Make a backup copy of the main.cf file:
# cd /etc/VRTSvcs/conf/config
# cp main.cf main.cf.orig