Thursday, July 30, 2015

Editing the main.cf file to configure VCS service groups for Oracle RAC

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 permissions on the VCS configuration file:# haconf -makerw

You need to perform the steps in the following procedures:

To configure VCS service groups for Oracle RAC

To start VCS after modifying the configuration file

Log in as the root user to one of the systems.

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
Back the main.cf file:

# 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.

Save and close the main.cf file.

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.

Starting VCS after modifying the configuration file

You need to start VCS for the new configuration to take effect.

To start VCS after modifying the configuration file

Start VCS on one of the systems 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

Resource: Symentec

No comments:

Post a Comment