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"
See Including multiple .cf files in main.cf.
|
Cluster definition
|
Defines the attributes of the cluster, the cluster name and the names of the cluster users.
cluster demo (
UserNames = { admin = cDRpdxPmHzpS }
)
|
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 }
)
|
Resource definition
|
Defines each resource that is used in a particular service group. You can add resources in any order. 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_resource requires NIC_resource
|
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.
requires group_x group_y
<dependency category>
<dependency location>
<dependency rigidity>
|