Red Hat Training
A Red Hat training course is available for Red Hat Enterprise Linux
1.3. Cluster Infrastructure
Red Hat Cluster Suite 叢集架構提供了將一群電腦(稱為 節點(node)或 成員(member))組合起來,成為一個叢集的基本功能。一旦叢集使用了叢集架構完成後,您就可以搭配其他的 Red Hat Cluster Suite 元件,視需要製作您的叢集(例如在 GFS 檔案系統上製作分享檔案的叢集,或為一項服務設定備援)。叢集架構提供以下功能:
- 叢集管理
- 鎖定管理
- Fencing
- 叢集設定管理
1.3.1. 叢集管理
Cluster management manages cluster quorum and cluster membership. CMAN (an abbreviation for cluster manager) performs cluster management in Red Hat Cluster Suite for Red Hat Enterprise Linux 5. CMAN is a distributed cluster manager and runs in each cluster node; cluster management is distributed across all nodes in the cluster (refer to 圖形 1.2, “CMAN/DLM Overview”).
CMAN keeps track of cluster quorum by monitoring the count of cluster nodes. If more than half the nodes are active, the cluster has quorum. If half the nodes (or fewer) are active, the cluster does not have quorum, and all cluster activity is stopped. Cluster quorum prevents the occurrence of a "split-brain" condition — a condition where two instances of the same cluster are running. A split-brain condition would allow each cluster instance to access cluster resources without knowledge of the other cluster instance, resulting in corrupted cluster integrity.
Quorum 得自乙太網路上的叢集節點之間傳遞資料。要不 quorum 也可以藉由乙太網路「與」透過 quorum 磁碟來運作。前者 quorum 包含節點的 50% 加 1;後者則由使用者決定。
注意
預設上,每個節點都算一個 quorum。但您可以設定每個節點的比重。
CMAN 會監控其他節點傳來的訊息,追蹤其他成員的狀況。當叢集的成員改變時,叢集管理員會告訴其他的架構元件,以採取適當措施。舉例來說,如果 A 加入了叢集,並掛載了 B 與 C 節點已經掛載的 GFS 檔案系統,那麼 A 就需要額外的日誌紀錄與鎖定管理。如果叢集節點並沒有在預定的時間內傳送訊息,那麼叢集管理員就會將這節點從叢集移除,並通知其他叢集架構的元件。同樣的,其他叢集架構的元件會決定要對這沒有回應的節點,採取什麼措施。舉例來說,fencing 會把這節點排除在外。

圖形 1.2. CMAN/DLM Overview