Quorum-disk parameters and heuristics depend on the site environment and the special requirements needed. To understand the use of quorum-disk parameters and heuristics, refer to the qdisk(5) man page. If you require assistance understanding and using quorum disk, contact an authorized Red Hat support representative.
Use the following command to configure your system for using a quorum disk:
ccs -h host --setquorumd [quorumd options]
表格 6.1, “Quorum Disk Options”
summarizes the meaning of the quorum disk options you may need to set. For a complete list of quorum disk parameters, refer to the cluster schema at
, and the annotated schema at
表格 6.1. Quorum Disk Options
| || The frequency of read/write cycles, in seconds. |
| || The number of votes the quorum daemon advertises to |
cman when it has a high enough score.
| || The number of cycles a node must miss to be declared dead. |
| || The minimum score for a node to be considered "alive". If omitted or set to 0, the default function, |
floor((n+1)/2), is used, where n is the sum of the heuristics scores. The value must never exceed the sum of the heuristic scores; otherwise, the quorum disk cannot be available.
| || The storage device the quorum daemon uses. The device must be the same on all nodes. |
| || Specifies the quorum disk label created by the |
mkqdisk utility. If this field contains an entry, the label overrides the field. If this field is used, the quorum daemon reads
/proc/partitions and checks for qdisk signatures on every block device found, comparing the label against the specified label. This is useful in configurations where the quorum device name differs among nodes.
Use the following command to configure the heuristics for a quorum disk:
ccs -h host --addheuristic [heuristic options]
表格 6.2. Quorum Disk Heuristics
| || The path to the program used to determine if this heuristic is available. This can be anything that can be executed by |
/bin/sh -c. A return value of 0 indicates success; anything else indicates failure. This parameter is required to use a quorum disk.
| || The frequency (in seconds) at which the heuristic is polled. The default interval for every heuristic is 2 seconds. |
| || The weight of this heuristic. Be careful when determining scores for heuristics. The default score for each heuristic is 1. |
| || The number of consecutive failures required before this heuristic is declared unavailable. |
To see a list of the quorum disk options and heuristics that are configured on a system, you can execute the following command:
ccs -h host --lsquorum
To remove a heuristic specified by a heuristic option, you can execute the following command:
ccs -h host rmheuristic [heuristic options]
Syncing and activating propagates and activates the updated cluster configuration file. However, for the quorum disk to operate, you must restart the cluster (refer to 節 7.2, “Starting and Stopping a Cluster”
), ensuring that you have restarted the
daemon on each node.