两个节点:
- 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?
答案1
原因是没有在中设置正确的主机名/etc/hosts
。
192.168.0.1 node1
192.168.0.2 node2