< Previous | Next > | |
Product: Cluster Server Guides | |
Manual: Cluster Server 4.1 User's Guide |
System Definition
Each system designated as part of the cluster is listed in this section of main.cf. The names listed as system names must match the name returned by the command uname -a. Service Group DefinitionService group definitions in main.cf comprise the attributes of a particular service group. See Service Group Attributes for a complete list. The following information describes two common service group attributes: SystemList and AutoStartList. SystemList AttributeThe SystemList attribute designates all systems on which a service group can come online. By default, the order of systems in the list defines the priority of systems used in a failover. For example, the definition SystemList = { SystemA, SystemB, SystemC } configures SystemA to be the first choice on failover, followed by SystemB and then SystemC. System priority may also be assigned explicitly in the SystemList attribute by assigning numeric values to each system name. For example: SystemList = { SystemA=0, SystemB=1, SystemC=2 } If you assign numeric priority values, VCS assigns a priority to the system without a number by adding 1 to the priority of the preceding system. For example, if the SystemList is defined as SystemList = { SystemA, SystemB=2, SystemC }, VCS assigns the values SystemA = 0, SystemB = 2, SystemC = 3. Note that a duplicate numeric priority value may be assigned when the following occurs: SystemList = { SystemA, SystemB=0, SystemC } The numeric values assigned are SystemA = 0, SystemB = 0, SystemC = 1. To avoid the same priority number being assigned to more than one system, do not assign any numbers or assign different numbers to each system in SystemList. AutoStartList AttributeList of systems on which the service group will be started with VCS (usually at system boot). For example, if a system is a member of a failover service group's AutoStartList attribute, and if the service group is not already running on another system in the cluster, the group is brought online when the system is started. Resource DefinitionThis section in main.cf 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. Service Group Dependency ClauseTo 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. Resource Dependency ClauseA dependency between resources is indicated by the keyword "requires" between two resource names. This indicates the second resource (the child) must be online before the first resource (the parent) can be brought online. Conversely, the parent must be offline before the child can be taken offline. Also, faults of the children are propagated to the parent. Example 1: Initial ConfigurationWhen VCS is installed, a basic main.cf configuration file is created with the cluster name, systems in the cluster, and a Cluster Manager user "admin" with the password "password." The following is an example of the main.cf for cluster "demo" and systems "SystemA" and "SystemB." include "types.cf" cluster demo ( UserNames = { admin = cDRpdxPmHzpS } ) system SystemA system SystemB |
^ Return to Top | < Previous | Next > |
Product: Cluster Server Guides | |
Manual: Cluster Server 4.1 User's Guide | |
VERITAS Software Corporation
www.veritas.com |