About the main.cf file
The format of the main.cf file comprises include clauses and definitions for the cluster, systems, service groups, and resources. The main.cf file also includes service group and resource dependency clauses.
-
Include clauses—Include clauses incorporate additional configuration files into main.cf. These additional files typically contain type definitions, including the types.cf file. Typically, custom agents add type definitions in their own files.
include "types.cf"
-
Cluster definition—Defines the attributes of the cluster, including the cluster name and the names of the cluster users.
cluster demo (
UserNames = { admin = cDRpdxPmHzpS }
)"
See Cluster attributes.
-
System definition—Lists the systems designated as part of the cluster. The system names must match the name returned by the command
uname
-a
.
Each service group can be configured to run on a subset of systems defined in this section.
system Server1
system Server2
-
Service group definition—Service group definitions in main.cf comprise the attributes of a particular service group.
group NFS_group1 (
SystemList = { Server1, Server2 }
AutoStartList = { Server1 }
)
See Service group attributes.
See About the SystemList attribute..
-
Resource definition—Defines each resource used in a particular service group. Resources can be added in any order and the utility hacf arranges the resources alphabetically the first time the configuration file is run.
DiskGroup DG_shared1 (
DiskGroup = shared1
)
-
Resource dependency clause—Defines a relationship between resources. A dependency is indicated by the keyword requires between two resource names.
IP_nfs1 requires Share_home
See Resources and resource dependencies.
-
Service group dependency clause—To configure a service group dependency, place the keyword requires in the service group declaration of the main.cf file. Position the dependency clause before the resource dependency specifications and after the resource declarations.
group_x requires group_y
See About service group dependencies.