现象是192.168.167.52上看192.168.174.79显示断开.192.168.174.79上显示连接.不是硬件故障的情况下,查看/var/lib/glusterfs/peers/5537a2d2-1fb0-48a7-8a57-b68e2fb30af9的信息,发现有2个hostname,其中一个使用的是主机名,而192.168.167.52没有写hosts也没有dns,无法解析到.删除主机名的那一列,重启glusterd服务.
[root@192-168-167-52 peers]# gluster peer status
gluster> peer status
Number of Peers: 7
Hostname: 192.168.174.68
Uuid: d8edc69a-1c82-45e8-a6df-e3ae19241bbb
State: Peer in Cluster (Connected)
Hostname: 192_168_174_79
Uuid: 5537a2d2-1fb0-48a7-8a57-b68e2fb30af9
State: Peer in Cluster (Disconnected)
Other names:
192.168.174.79
Hostname: 192.168.174.80
Uuid: 9fc02626-0a6c-4d72-a9f3-755da120ca38
State: Peer in Cluster (Connected)
Hostname: 192.168.174.81
Uuid: 5a2f1dc8-8ed9-41b4-8a36-6ee4c315da51
State: Peer in Cluster (Connected)
Hostname: 192.168.174.67
Uuid: 325f6ffe-aba0-4c39-a276-0c7ba78bca76
State: Peer in Cluster (Connected)
Hostname: 192.168.167.58
Uuid: 177e613e-0aba-4f8a-99a8-5266da9f22e0
State: Peer in Cluster (Connected)
Hostname: 192.168.167.76
Uuid: 8af2d3e4-42f7-4573-92e9-519e328d6112
State: Peer in Cluster (Connected)
gluster> peer detech 192.168.174.79
unrecognized word: detech (position 1)
[root@192-168-167-52 peers]# vim /var/lib/glusterd/peers/5537a2d2-1fb0-48a7-8a57-b68e2fb30af9
uuid=5537a2d2-1fb0-48a7-8a57-b68e2fb30af9
state=3
hostname1=192_168_174_79 #去掉这一行.
hostname2=192.168.174.79
[root@192-168-167-52 peers]# service glusterd restart
Starting glusterd: [ OK ]
[root@192-168-167-52 peers]# gluster peer status
Hostname: 192.168.174.79
Uuid: 5537a2d2-1fb0-48a7-8a57-b68e2fb30af9
State: Peer in Cluster (Connected)
Other names:
192_168_174_79
阅读(5915) | 评论(0) | 转发(0) |