Using the CLI to configure VCS service groups for Oracle RAC

This section describes how to configure the Oracle service group using the CLI.

The following procedure assumes that you have created the database.

To configure the Oracle service group using the CLI

  1. Change the cluster configuration to read-write mode:

    # haconf -makerw
  2. Add the service group to the VCS configuration:

    # hagrp -add oradb1_grp
  3. Modify the attributes of the service group:

    # hagrp -modify oradb1_grp Parallel 1
    # hagrp -modify oradb1_grp SystemList galaxy 0  nebula 1
    # hagrp -modify oradb1_grp AutoStartList galaxy nebula
  4. Add the CVMVolDg resource for the service group:

    # hares -add oradata_voldg CVMVolDg oradb1_grp
  5. Modify the attributes of the CVMVolDg resource for the service group:

    # hares -modify oradata_voldg CVMDiskGroup oradatadg
    # hares -modify oradata_voldg CVMActivation sw
    # hares -modify oradata_voldg CVMVolume oradatavol
  6. Add the CFSMount resource for the service group:

    # hares -add oradata_mnt CFSMount oradb1_grp
  7. Modify the attributes of the CFSMount resource for the service group:

    # hares -modify oradata_mnt MountPoint "/oradata"
    # hares -modify oradata_mnt BlockDevice \
    "/dev/vx/dsk/oradatadg/oradatavol"
  8. Add the Oracle RAC database instance to the service group:

    # hares -add ora1 Oracle oradb1_grp
  9. Modify the attributes of the Oracle resource for the service group:

    # hares -modify ora1 Owner oracle
    # hares -modify ora1 Home "/app/oracle/orahome"
    # hares -modify ora1 StartUpOpt SRVCTLSTART
    # hares -modify ora1 ShutDownOpt SRVCTLSTOP
  10. Localize the Sid attribute for the Oracle resource:

    # hares -local ora1 Sid
  11. Set the Sid attributes for the Oracle resource on each system:

    # hares -modify ora1 Sid vrts1 -sys galaxy
    # hares -modify ora1 Sid vrts2 -sys nebula
  12. Set the dependencies between the CFSMount resource and the CVMVolDg resource for the Oracle service group:

    # hares -link oradata_mnt oradata_voldg
  13. Set the dependencies between the Oracle resource and the CFSMount resource for the Oracle service group:

    # hares -link ora1 oradata_mnt
  14. Create an online local firm dependency between the oradb1_grp service group and the cvm service group:

    # hagrp -link oradb1_grp cvm online local firm
  15. Enable the Oracle service group:

    # hagrp -enableresources oradb1_grp
  16. Change the cluster configuration to the read-only mode:

    # haconf -dump -makero
  17. Bring the Oracle service group online on all the nodes:

    # hagrp -online oradb1_grp -any

For more information and instructions on configuring the service groups using the CLI:

See the Veritas Cluster Server User's Guide.