-
Log into one of the nodes in the cluster.
-
Save the existing configuration to disk and make the configuration read-only while making the changes:
# haconf -dump -makero
-
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
-
Make a backup copy of the main.cf file:
# cd /etc/VRTSvcs/conf/config
# cp main.cf main.orig
-
Use vi or another text editor to edit the main.cf file:
-
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
)
.
.
-
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"
)
.
.
-
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
-
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"
)
-
Save and close the main.cf file.
-
Verify the syntax of the file /etc/VRTSvcs/conf/config/main.cf:
# hacf -verify /etc/VRTSvcs/conf/config
-
Copy the saved main.cf file to all nodes in the cluster.