Verifying the configuration

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 .
  2. Start the VCS engine on System A:

    # hastart
  3. Type the hastatus command:

    # hastatus
  4. When "LOCAL_BUILD" is listed in the message column, start VCS on System B:

    # hastart
  5. Verify that all DB2 UDB service group resources are brought online on System A:

    # hagrp -display
  6. 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
  7. 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
  8. Switch the DB2 UDB service group to System B:

    # hagrp -switch db2udb_grp1 -to sysb
    # hagrp -switch db2udb_grp3 -to sysb
  9. Verify that all DB2 UDB service group resources are brought online on System B:

    # hagrp -display
  10. 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