VCS configuration requires the types.cf and main.cf files on each system in the cluster. Both of the files are in the /etc/VRTSvcs/conf/config directory.
The main.cf configuration file requires the following minimum essential elements:
An "include" statement that specifies the file, types.cf, which defines the VCS bundled agent resources.
The name of the cluster.
The name of the systems that make up the cluster.
When you manually install VCS, the file /etc/VRTSvcs/conf/config/main.cf contains only the line:
include "types.cf"
For a full description of the main.cf file, how to edit it, and verify it, refer to the Veritas Cluster Server User's Guide:
To edit the main.cf file
-
Log in as superuser, and move to the directory containing the configuration file:
# cd /etc/VRTSvcs/conf/config
-
Using vi, or another text editor, edit the main.cf file, defining your cluster name and system names. Refer to the following example.
-
Save and close the file.
An example main.cf for a two-node cluster:
include "types.cf"
cluster VCSCluster2 ( )
system north
system south
An example main.cf for a single-node cluster:
include "types.cf"
cluster VCSCluster1 ( )
system sn1
Note that the "include" statement in main.cf refers to the types.cf file. This text file describes the VCS bundled agent resources. During new installations, the types.cf file is automatically copied in to the /etc/VRTSvcs/conf/config directory.