Configuring the Agent Using the Command-line
The VCS enterprise agent for Oracle comes with a sample configuration file that can be used as reference to directly modify your present configuration file. When you use this method, you must stop and restart VCS to implement the configuration.
Follow the instructions below to configure the agent using the sample configuration file:
-
Log in to sysa as root.
-
Ensure that all changes to the existing configuration have been saved and that 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 and leave the resources available:
# hastop -all -force
-
Make a backup copy of the main.cf file:
# cd /etc/VRTSvcs/conf/config
# cp main.cf main.cf.orig
-
Copy the Oracle types configuration file into place:
# cp /etc/VRTSvcs/conf/OracleTypes.cf
/etc/VRTSvcs/conf/config/OracleTypes.cf
-
Edit the main.cf file. The file /etc/VRTSvcs/conf/sample_oracle/main.cf can be used for reference:
- Add an "include" line for the OracleTypes.cf file:
include "OracleTypes.cf"
- Create the Oracle and Netlsnr resources. You can refer to the examples shown in the file /etc/VRTSvcs/conf/sample_oracle/main.cf.
- Edit the default attributes to match the parameters in your configuration. See Resource Type Definitions for more information about the agent attributes.
- Assign dependencies to the newly created resources. Refer to the sample file /etc/VRTSvcs/conf/sample_oracle/main.cf. and the sample dependency graphs in Sample Configurations. (See the VERITAS Cluster Server User's Guide for more information on assigning dependencies.)
-
Save and close the 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
-
Verify that all Oracle service group resources are brought online:
# hagrp -state
-
Take the service group offline and verify that all resources are stopped:
# hagrp -offline service_group -sys system_name
# hagrp -state
-
Bring the service group online again and verify that all resources are available:
# hagrp -online service_group -sys system_name
# hagrp -state
-
Start the VCS engine on sysb:
# hastart
-
Switch the Oracle service group to sysb:
# hagrp -switch service_group -to sysb
-
Verify that all Oracle service group resources are brought online on sysb:
# hagrp -state
-
On all the systems, look at the following log files for any errors or status:
/var/VRTSvcs/log/engine_A.log
/var/VRTSvcs/log/Oracle_A.log
/var/VRTSvcs/log/Netlsnr_A.log
|