Creating a single-node cluster manually

In the chapter "Installing VCS on a single node," one of the tasks in Table 9-2 is to create and modify the VCS configuration files. The following reference topic "Configuring VCS" is missing in the Veritas Cluster Server Installation Guide.

Configuring VCS

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.

main.cf file

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.

Editing the main.cf file

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

  1. Log in as superuser, and move to the directory containing the configuration file:

    # cd /etc/VRTSvcs/conf/config
    					
  2. Using vi, or another text editor, edit the main.cf file, defining your cluster name and system names. Refer to the following example.

  3. Save and close the file.

Example, main.cf

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
types.cf file

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.