Before you use the DB2 UDB templates, use the Cluster Manager (Java Console) to import the Db2udbTypes.cf file to the VCS engine.
To import the Db2udbTypes.cf file using the Cluster Manager
On one of the nodes in the cluster, start the Cluster Manager (Java Console). Type:
# hagui&
Log in to the cluster and wait for the Cluster Explorer to launch.
From the File menu select Import Types. Switch to the read/write mode if prompted.
In the Import Types dialog box, select the file:
/etc/VRTSvcs/conf/config/Db2udbTypes.cf
When the Db2udb types are imported to the VCS engine, the Db2udb agent can be configured.
To import the Db2udbTypes.cf file using the command line
Make the cluster configuration as read-only. This action ensures that all changes to the existing configuration have been saved and further changes are prevented while you modify main.cf:
# haconf -dump -makero
To ensure that VCS is not running while you edit main.cf, issue the following command to stop the VCS engine on all systems. Leave the resources that are available online.
# hastop -all -force
Make a backup copy of the main.cf file.
# cd /etc/VRTSvcs/conf/config # cp main.cf main.cf.orig
Edit the main.cf file to include the Db2udbTypes.cf file.
# include "Db2udbTypes.cf"
The DB2 types definition is imported to the VCS engine. The agent for DB2 can be configured without interrupting or stopping VCS.