两个节点:
他们都安装并开始:
yum install pacemaker pcs passwd hacluster (Set the same password) systemctl enable pcsd.service systemctl start pcsd.service
validation群集节点时:
(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
为什么无法validationnode2?
原因是没有在/etc/hosts设置正确的主机名。
192.168.0.1 node1 192.168.0.2 node2