Importing the Db2udbTypes.cf file
Before you use the DB2 UDB templates, use the Cluster Manager (Java Console) to import the Db2udbTypes.cf file to the VCS engine.
Note: |
Before you start the following procedure, for more instructions on Java GUI, refer to the Cluster Server Installation Guide. |
To import the Db2udbTypes.cf file using the Cluster Manager (Java Console)
- 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 menu select . Switch to the read/write mode if prompted.
- In the Import Types dialog box, select the file:
/etc/VRTSagents/ha/conf/Db2udb/Db2udbTypes.cf
- Click and wait for the file to import.
- Save the configuration.
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
- Log in to a cluster system as superuser.
- 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.