The following procedure creates CVMVolDg in a given group.
To create CVMVolDg
Make the configuration writeable:
# haconf -makerw
# hares -add name_of_resource CVMVolDg name_of_group
Add a diskgroup name to the resource:
# hares -modify name_of_resource CVMDiskGroup sdg1
Make the attribute local to the system:
# hares -local name_of_resource CVMActivation
Add the attribute to the resource.
# hares -modify name_of_resource CVMActivation \ activation_value -sys nodename
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.
Modify the resource so that a failure of this resource does not bring down the entire group:
# hares -modify name_of_resource Critical 0
# hares -modify cvmvoldg1 Enabled 1
Make the configuration read-only:
# hares -modify cvmvoldg1 Enabled 1
# hacf -verify