Symantec logo

Disabling the agent

To disable the agent on a system, you must first change the DB2 UDB service group to an offline state on the system. You can stop the application completely, or switch the service group to another system.

 To disable the agent

  1. Determine if the service group is online by entering:

    # hagrp -state service_group -sys system_name

  2. If the service group is online, take it offline by entering:

    # hagrp -switch service_group -to system_name

    Or

    # hagrp -offline service_group -sys system_name

  3. Stop the agent on the system by entering:

    # haagent -stop service_group -sys system_name

    When you get the message "Please look for messages in the log file," check the file /var/VRTSvcs/log/engine_A.log for a message confirming the agent has stopped.

    You can also use the ps command to confirm the agent is stopped.

When the agent is stopped, you can remove the system, the service group, or the resource type from the VCS configuration. See the chapter on reconfiguring VCS from the command line in the Veritas Cluster Server User's Guide for more information.