Adding the VVR Agents to the VCS Configuration
This section explains how to add the VVR agents to the VCS configuration:
- When VCS is running
- When VCS is stopped
When VCS is Running
To add the agents without stopping the applications on a system, log in as root on one node in the cluster and perform the following steps:
-
Set the configuration mode to read/write by typing the following command on any system in the cluster:
# haconf -makerw
-
Automatically copy the VVRTypes.cf file from the /etc/VRTSvcs/conf directory to /etc/VRTSvcs/conf/config directory and include the VVRTypes.cf file to the existing configuration file main.cf by running the following script:
# /etc/VRTSvcs/conf/sample_vvr/RVG/addVVRTypes.sh
-
Ensure that all changes to the existing configuration have been saved and that further changes are prevented.
# haconf -dump -makero
-
If you stopped the agent before installing the new agent, start the agent on the system by entering:
# haagent -start agent_name -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 that each agent has started.
You can also use the ps command to confirm that the agent is started.
-
If you brought the RVG service group offline before doing the installation, bring it online by using the following command:
# hagrp -online service_group -sys system_name
When VCS is Stopped
You can add the agents by editing the main.cf file. You must stop VCS before editing the main.cf file. Log in as root on one node in the cluster and perform the following steps:
-
Ensure that all changes to the existing configuration have been saved and that further changes are prevented while you modify main.cf located in the /etc/VRTSvcs/conf/config directory.
If the VCS cluster is currently writeable, run the following command:
# haconf -dump -makero
If the VCS cluster is already read only, run the following command:
# haconf -dump
-
Do not edit the configuration files while VCS is running. The following command stops the had daemon on all systems and leaves resources available:
# hastop -all -force
-
Copy the VVRTypes.cf file from /etc/VRTSvcs/conf to the /etc/VRTSvcs/conf/config directory.
-
Add the VVRTypes to the main.cf file, located in /etc/VRTSvcs/conf/config directory.
For a new agent installation, add the following line to the main.cf file:
-
Verify the syntax of the file /etc/VRTSvcs/conf/config/main.cf:
# cd /etc/VRTSvcs/conf/config/
# hacf -verify .
-
Start the VCS engine:
# hastart
|