Symantec logo
Editing the VCS configuration for additional CRS resources

In addition to automatically updating the PrivNIC resource, you must manually modify the CVM service group in the main.cf to add or modify other resources for CRS:

 To modify the main.cf for additional CRS resources

  1. Log into one of the nodes in the cluster.
  2. Save the existing configuration to disk and make the configuration read-only while making the changes:

    # haconf -dump -makero

  3. To ensure VCS is not running while you edit the main.cf, use the hastop command to stop the VCS engine on all nodes 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. Use vi or another text editor to edit the main.cf file:
  6. Add the CVMVolDG resource for the volume. In this example, only one volume exists because the OCR and Vote-disk are directories in a cluster file system:

    CVMVolDg ocrvote_voldg (

    Critical = 0

    CVMDiskGroup = ocrvotedg

    CVMVolume = { ocrvotevol }

    CVMActivation = sw

    )

    .

    .

  7. If you created a cluster file system for the OCR and Vote-disk directories, add the CFSMount resources for the cluster file system:

    CFSMount ocrvote_mnt (

    Critical = 0

    MountPoint = "/ocrvote"

    BlockDevice = "/dev/vx/dsk/ocrvotedg/ocrvotevol"

    )

    .

    .

  8. Revise the dependencies section for the CVM group.

    For example, you must change the dependencies that resembles:

    cvm_clus requires cvm_vxconfigd

    vxfsckd requires cvm_clus

    To:

    ocrvote_mnt requires ocrvote_voldg

    ocrvote_mnt requires vxfsckd

    ocrvote_voldg requires cvm_clus

  9. Modify the CVM service group to monitor the cssd program that uses the Application resource.

    Application cssd (

    Critical = 0

    StartProgram = "/opt/VRTSvcs/rac/bin/cssd-online"

    StopProgram = "/opt/VRTSvcs/rac/bin/cssd-offline"

    MonitorProgram = "/opt/VRTSvcs/rac/bin/cssd-monitor"

    CleanProgram = "/opt/VRTSvcs/rac/bin/cssd-clean"

    )

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

    # hacf -verify /etc/VRTSvcs/conf/config

  12. Copy the saved main.cf file to all nodes in the cluster.