Verifying the configuration for VCS agent for DB2

Last published : Jun 11, 2026
Check the configuration after you edit the main.cf.
To check the configuration
  1. Verify the syntax of the file /etc/VRTSvcs/conf/config/main.cf:
    \# cd /etc/VRTSvcs/conf/config
    \# hacf -verify .
    1. Start the VCS engine on System A:
    \# hastart
  2. Type the hastatus command:
    \# hastatus
    1. When "LOCAL_BUILD" is listed in the message column, start VCS on System B:
    \# hastart
  3. Verify that all DB2 service group resources are brought online on System A:
    \# hagrp -display
    1. Take the service groups offline on System A and verify that all resources are stopped:
    \# hagrp -offline db2udb_grp1 -sys sysa
    \# hagrp -offline db2udb_grp3 -sys sysa
    \# hagrp -display
  4. Bring the service groups online again on System A and verify that all resources are available:
    \# hagrp -online db2udb_grp1 -sys sysa
    \# hagrp -online db2udb_grp3 -sys sysa
    \# hagrp -display
    1. Switch the DB2 service group to System B:
    \# hagrp -switch db2udb_grp1 -to sysb
    \# hagrp -switch db2udb_grp3 -to sysb
  5. Verify that all DB2 service group resources are brought online on System B:
    \# hagrp -display
    1. On all the systems, look at the following log files for any errors or status:
    /var/VRTSvcs/log/engine_A.log
    /var/VRTSvcs/log/Db2udb_A.log