Show Table of Contents
附錄 A. 從 Red Hat Enterprise Linux High Availability Add-On 6 升級
本附錄提供了自Red Hat Enterprise Linux High Availability Add-On 第 6 版升級至第 7 版之概觀。
A.1. 不同版本間的差異一覽
Red Hat Enterprise Linux 7 High Availability Add-On 推介了新的、位於高可用性技術之下、根基於 Pacemaker 與 Corosync 的技術,完整取代了來自前一版 High Availability Add-On 的 CMAN 與 RGManager 技術。以下是兩個版本之間的部分差距。欲知版本間的完整差距,請參閱《Red Hat Enterprise Linux High Availability Add-On Reference・搭配 rgmanager 與 Pacemaker 建立叢集》。
- 配置檔案 — 先前,叢集配置可在
/etc/cluster/cluster.conf檔案中找到;現在在第 7 版中,叢集配置之成員配置位於/etc/corosync/corosync.conf,叢集節點與資源配置位於/var/lib/heartbeat/crm/cib.xml中。 - 執行檔 — 先前,叢集指令都可透過指令列的
ccs與圖形介面的luci來完成。在 Red Hat Enterprise Linux 7 High Availability Add-On 中,配置可以透過指令列的pcs與位於桌面的網站圖形介面pcsd完成。 - 啟動服務 — 先前,High Availability Add-On 所包含的服務都是透過
service指令來啟動,並透過chkconfig指令來配置開機時是否啟動服務。這必須針對所有叢集服務(rgmanager、cman與ricci)進行。例如:service rgmanager start chkconfig rgmanager on
到了 Red Hat Enterprise Linux 7 High Availability Add-On,systemctl會控制手動啟動、以及開機時自動啟動,同時所有叢集服務都集中在pcsd.service裡。例如:systemctl starat pcsd.service systemctl enable pcsd.service pcs cluster start -all
- 使用者存取 — 先前,root 使用者或擁有正確存取權限的使用者可以存取
luci配置介面。所有存取行為都需要節點上的ricci之密碼。到了 Red Hat Enterprise Linux 7 High Availability Add-On,pcsd網站圖形介面會要求使用者透過hacluster身份來進行認證,這是一般的系統使用者。root使用者可以設定hacluster的密碼。 - 建立叢集、節點與資源 — 先前,建立節點可透過指令列的
ccs或圖形介面的luci來完成。建立叢集、新增節點則是另外的工作。舉例來說,若要透過指令列建立叢集、新增節點,請執行以下指令:ccs -h node1.example.com --createcluster examplecluster ccs -h node1.example.com --addnode node2.example.com
到了 Red Hat Enterprise Linux 7 High Availability Add-On,新增叢集、節點與資源皆會透過指令列的pcs,或網站圖形介面pcsd來完成。舉例來說,若要透過指令列建立叢集,請執行以下指令:pcs cluster setup examplecluster node1 node2 ...
- 移除叢集 — 先前若要移除叢集,管理者必須從
luci介面手動移除節點,或移除每個節點上的cluster.conf檔案。到了 Red Hat Enterprise Linux 7 High Availability Add-On,管理者可以利用pcs cluster destroy指令來移除叢集。

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.