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

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

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

  3. Stop the VCS engine on all systems and leave the resources available:

    # hastop -all -force 
  4. Back the main.cf file:

    # cd /etc/VRTSvcs/conf/config
    # cp main.cf main.orig
  5. Using vi or another text editor, edit the main.cf file to add the Oracle service groups.

  6. Save and close the main.cf file.

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

  1. Start VCS on the node on which you modified the configuration file and check its status:

    # hastart
    # hastatus
  2. When "LOCAL_BUILD" is listed in the message column, start VCS on the other systems:

    # hastart
  3. On one of the systems, enter the following command to verify that the service groups for Oracle RAC are brought online:

    # hagrp -display
  4. Check the status of the groups.

    # hagrp -state
  5. Check the status of the resources.

    # hares -state