Centos

無法在 CentOS 7 上使用具有兩個節點的 PCS 對集群進行身份驗證

  • July 21, 2017

兩個節點:

  • 192.168.0.1
  • 192.168.0.2

他們都安裝並啟動了:

yum install pacemaker pcs
passwd hacluster
(Set the same password)
systemctl enable pcsd.service
systemctl start pcsd.service

驗證集群節點時:

(On node 1)
psc cluster auth 192.168.0.1 192.168.0.2
(Output)
Username: hacluster
Password:
Error: Unable to communicate with 192.168.0.2
192.168.0.1: Authorized

為什麼不能驗證node2?

原因是沒有在/etc/hosts.

192.168.0.1 node1
192.168.0.2 node2

引用自:https://serverfault.com/questions/862123