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.
To prepare to edit the main.cf file
# haconf -dump -makero
# hastop -all -force
# cd /etc/VRTSvcs/conf/config # cp main.cf main.cf.orig