如下List-1所示,node1显示Disconnected
List-1
代码语言:javascript复制[root@master1 shared]# gluster peer status
Number of Peers: 2
Hostname: node1
Uuid: a18e0d0c-65e2-44f7-a68f-fe03d178b472
State: Peer in Cluster (Disconnected)
Other names:
node1
Hostname: 192.168.33.12
Uuid: 784b5f1d-26a7-4788-9835-ad9d68b0a55f
State: Peer in Cluster (Connected)
修改/var/lib/glusterd/peers/a18e0d0c-65e2-44f7-a68f-fe03d178b472
List-2
代码语言:javascript复制#修改文件,去掉hostname2=node1
[root@master1 shared]# vim /var/lib/glusterd/peers/a18e0d0c-65e2-44f7-a68f-fe03d178b472
#重启服务
[root@master1 shared]# service glusterd restart
Redirecting to /bin/systemctl restart glusterd.service
#再次查询
[root@master1 shared]# gluster peer status