Creating CVMVolDg in a group

The following procedure creates CVMVolDg in a given group.

To create CVMVolDg

  1. Make the configuration writeable:

    # haconf -makerw
  2. Add the CVMVolDg resource:

    # hares -add name_of_resource CVMVolDg name_of_group
  3. Add a diskgroup name to the resource:

    # hares -modify name_of_resource CVMDiskGroup sdg1
  4. Make the attribute local to the system:

    # hares -local name_of_resource CVMActivation
  5. Add the attribute to the resource.

    # hares -modify name_of_resource CVMActivation 
    \ activation_value -sys nodename

    Repeated this step on each of the nodes.

  6. If you want to monitor volumes, enter the following command:

    # # hares -modify name_of_resource CVMVolume -add \ 
    name_of_volume

    In a database environment, Symantec recommends you monitor volumes.

  7. Modify the resource so that a failure of this resource does not bring down the entire group:

    # hares -modify name_of_resource Critical 0
  8. Enable the resources:

    # hares -modify cvmvoldg1 Enabled 1
  9. Make the configuration read-only:

    # hares -modify cvmvoldg1 Enabled 1
  10. Verify the configuration:

    # hacf -verify

    This should put the resource in the main.cf file.