Red Hat Training
A Red Hat training course is available for Red Hat Enterprise Linux
A.2. 在 Red Hat Enterprise Linux Release 6.5 與 Red Hat Enterprise Linux Release 6.6(和更新版本)中透過 Pacemaker 建立叢集
若要在 Red Hat Enterprise Linux 6.5 中建立 Pacemaker 叢集,您必須建立叢集並在叢集中的各個節點上啟用叢集服務。比方說,若要建立一個名為
my_cluster
、包含了 z1-rhel65.example.com
與 z2-rhel65.example.com
節點的叢集,並在這些節點上啟用叢集服務,請由 z1-rhel65.example.com
與 z2-rhel65.example.com
執行下列指令。
[root@z1-rhel65]#pcs cluster setup --name my_cluster
\z1-rhel65.example.com z2-rhel65.example.com
[root@z1-rhel65]#pcs cluster start
[root@z2-rhel65]#pcs cluster setup --name my_cluster
\z1-rhel65.example.com z2-rhel65.example.com
[root@z2-rhel65]#pcs cluster start
在 Red Hat Enterprise Linux 6.6(與更新版本)中,您需在叢集中的一個節點上執行叢集建立指令。若僅在一個節點上執行下列指令,將會建立一個名為
my_cluster
、包含了 z1-rhel66.example.com
與 z2-rhel66.example.com
節點的叢集,並在這些節點上啟用叢集服務。
[root@z1-rhel66]#pcs cluster setup --start --name my_cluster
\z1-rhel66.example.com z2-rhel66.example.com