Red Hat GFS 6.0: Administrator's Guide | ||
---|---|---|
Prev | Chapter 6. Creating the Cluster Configuration System Files | Next |
Creating the cluster.ccs file consists of specifying the following parameters:
Cluster name
Each node that runs LOCK_GULM server
Optional parameters
Note | |
---|---|
Because of quorum requirements, the number of lock servers allowed in a GFS cluster can be 1, 3, 4, or 5. Any other number of lock servers — that is, 0, 2, or more than 5 — is not supported. |
Note | |
---|---|
Two optional cluster.ccs parameters, heartbeat_rate and allowed_misses, are included in this procedure for configuring node failure detection. For a description of other optional parameters, refer to the lock_gulmd(5) man page. |
To create the cluster.ccs file, follow these steps:
Create a new file named cluster.ccs using the file structure shown in Figure 6-1. Refer to Table 6-1 for syntax description.
Specify ClusterName (for example, alpha). Refer to Example 6-1.
Specify each node (NodeName) that runs LOCK_GULM server (for example, n01, n02, and n03). Refer to Example 6-1.
(Optional) For the heartbeat rate (heartbeat_rate =), specify Seconds. Refer to Example 6-1.
The Seconds parameter in combination with the allowed_misses Number parameter specify the amount of time for node failure detection as follows:
Seconds x (Number+1) = Time (in seconds)
(Optional) For the allowed consecutively missed heartbeats (allowed_misses =), specify Number. Refer to Example 6-1.
Save the cluster.ccs file.
cluster { name = "ClusterName" lock_gulm { servers = ["NodeName",..., "NodeName"] heartbeat_rate = Seconds <-- Optional allowed_misses = Number <-- Optional } } |
Figure 6-1. File Structure: cluster.ccs
Parameter | Description | |||
---|---|---|---|---|
ClusterName | The name of the cluster, from 1 to 16 characters long. | |||
NodeName | The name of each node that runs the LOCK_GULM server. Each node name must appear under nodes.ccs:nodes. | |||
Seconds (Optional) |
| |||
Number (Optional) | For allowed_misses, how many consecutive heartbeats can be missed before a node is marked as expired. The default value of Number is 2. The Seconds parameter in combination with the Number parameter specify the amount of time for node failure detection as follows: Seconds x (Number+1) = Time (in seconds). |
Table 6-1. File Syntax Description: Variables for cluster.ccs