Symantec logo

Configuring CVM Service Group for Oracle 10g Manually

This section describes how to manually edit the main.cf file to configure the CVM and Oracle service groups.

 To configure CVM service group for Oracle 10g manually

This section describes how to manually edit the main.cf file to configure the CVM and Oracle service groups.

 To configure CVM service group for Oracle 10g manually

  1. Log in to one system as root.
  2. Save your existing configuration to prevent any changes while 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. Make sure VCS is not running while you edit main.cf by using the hastop command to stop the VCS engine on all systems and leave the resources available:

    # hastop -all -force

  4. Make a backup copy of 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, modifying the cvm service group and creating Oracle service groups using the sample main.cf as a guideline.
Sample main.cf for Oracle 10g

This section provides the following sample files:

When you finish configuring the CVM and Oracle service groups by editing the main.cf file, verify the new configuration.

 To save and check the configuration

  1. Save and close the main.cf file.
  2. Verify the syntax of the file /etc/VRTSvcs/conf/config/main.cf:

    # cd /etc/VRTSvcs/conf/config

    # hacf -verify .

  3. Start the VCS engine on one system:

    # hastart

  4. Type the command hastatus:

    # hastatus

  5. When "LOCAL_BUILD" is listed in the message column, start VCS on the other system:

    # hastart

  6. Verify that the service group resources are brought online. On one system, enter:

    # hagrp -display

 To verify the state of newly added resources

  1. Use hargrp -state to check status of the cvm group.
  2. Use hargrp -state to check status of resources.