glusterfs State: Peer in Cluster (Disconnected) 问题

简介: 现象是192.168.167.52上看192.168.174.79显示断开.192.168.174.79上显示连接.不是硬件故障的情况下,查看/var/lib/glusterfs/peers/5537a2d2-1fb0-48a7-8a57-b68e2fb30af9的信息,发现有2个hostname,其中一个使用的是主机名,而192.
现象是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
目录
相关文章
|
Kubernetes Linux 容器
【kubernetes】修复 systemctl status sshd Failed to get D-Bus connection: Operation not permitted
【kubernetes】修复 systemctl status sshd Failed to get D-Bus connection: Operation not permitted
491 0
|
2月前
|
消息中间件 Shell
mq报错abbit@syld36: * connected to epmd (port 4369) on syld36 * epmd reports node ‘rabbit‘ uses po
mq报错abbit@syld36: * connected to epmd (port 4369) on syld36 * epmd reports node ‘rabbit‘ uses po
47 0
|
4月前
|
消息中间件 Linux
mq报错abbit@syld36: * connected to epmd (port 4369) on syld36 * epmd reports node ‘rabbit‘ uses po
mq报错abbit@syld36: * connected to epmd (port 4369) on syld36 * epmd reports node ‘rabbit‘ uses po
62 0
|
4月前
|
Java 网络安全
SSL peer shut down incorrectly
SSL peer shut down incorrectly
246 0
|
前端开发
网络设置错误造成cluster不能启动(oifcfg setif cluster_interconnect )
设置rac节点之间的互联网络错误,造成集群无法启动,应该设置成