This section describes how to manually edit the /etc/VRTSvcs/conf/config/main.cf file to configure VCS service groups for Oracle RAC.
Note: |
Before you edit the main.cf file, change the cluster configuration to read-write mode: # haconf -makerw |
You need to perform the steps in the following procedures:
To configure VCS service groups for Oracle RAC
As root user, save your existing configuration before you modify main.cf:
# haconf -dump -makero
If the configuration is not writable, a warning appears: "Cluster not writable." You may safely ignore the warning.
Stop the VCS engine on all systems and leave the resources available:
# hastop -all -force
# cd /etc/VRTSvcs/conf/config
# cp main.cf main.orig
Using vi or another text editor, edit the main.cf file to add the Oracle service groups.
Verify the syntax of the file :
# cd /etc/VRTSvcs/conf/config
# hacf -verify .
For additional information and instructions on modifying the VCS configuration by editing the main.cf file:
See the Veritas Cluster Server User's Guide.
You need to start VCS for the new configuration to take effect.
To start VCS after modifying the configuration file
Start VCS on the node on which you modified the configuration file and check its status:
# hastart
# hastatus
When "LOCAL_BUILD" is listed in the message column, start VCS on the other systems:
# hastart
On one of the systems, enter the following command to verify that the service groups for Oracle RAC are brought online:
# hagrp -display
Check the status of the groups.
# hagrp -state
Check the status of the resources.
# hares -state