perrynzhou

专注于系统组件研发

0%

glusterfs集群glusterd显示Disconnect状态导致集群IO请求变慢

glusterfs集群glusterd显示Disconnect状态导致集群IO请求变慢

172.25.78.16节点的集群状态

1
2
3
4
5
6
7

[root@szdpl1491 ~]# gluster pool list
UUID Hostname State
bde7b9e2-af2a-419e-8242-6a8f8e18bb8a 172.25.78.242 Disconnected
54fa8ec0-3617-4c8e-968a-7402a80a9017 172.25.78.240 Connected
588bb497-5d9f-4bcf-b0b1-c9d364afb084 172.25.78.241 Connected
a8522deb-ee16-44a3-a800-9525cb8d64fa localhost Connected
  • 172.25.78.242节点在172.25.78.16的状态明显不对,查看其它的节点242的认证信息

172.25.78.240节点的集群状态

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[root@szdpl1543 ~]# gluster pool list
UUID Hostname State
588bb497-5d9f-4bcf-b0b1-c9d364afb084 172.25.78.241 Connected
bde7b9e2-af2a-419e-8242-6a8f8e18bb8a 172.25.78.242 Connected
a8522deb-ee16-44a3-a800-9525cb8d64fa 172.25.78.16 Connected
54fa8ec0-3617-4c8e-968a-7402a80a9017 localhost Connected
[root@szdpl1543 ~]# cd /var/lib/glusterd/peers/
[root@szdpl1543 peers]# ls
588bb497-5d9f-4bcf-b0b1-c9d364afb084 a8522deb-ee16-44a3-a800-9525cb8d64fa bde7b9e2-af2a-419e-8242-6a8f8e18bb8a
[root@szdpl1543 peers]# cat bde7b9e2-af2a-419e-8242-6a8f8e18bb8a
uuid=bde7b9e2-af2a-419e-8242-6a8f8e18bb8a
state=3
hostname1=172.25.78.242
hostname2=bogon
[root@szdpl1543 peers]# vi bde7b9e2-af2a-419e-8242-6a8f8e18bb8a
uuid=bde7b9e2-af2a-419e-8242-6a8f8e18bb8a
state=3
hostname1=172.25.78.242

172.25.78.16节点的集群状态

1
2
3
4
5
6
7
8
9
10
11
12
13
14
[root@szdpl1491 ~]# gluster pool list
UUID Hostname State
bde7b9e2-af2a-419e-8242-6a8f8e18bb8a 172.25.78.242 Disconnected
54fa8ec0-3617-4c8e-968a-7402a80a9017 172.25.78.240 Connected
588bb497-5d9f-4bcf-b0b1-c9d364afb084 172.25.78.241 Connected
a8522deb-ee16-44a3-a800-9525cb8d64fa localhost Connected
[root@szdpl1491 ~]# cd /var/lib/glusterd/peers/
[root@szdpl1491 peers]# ls
54fa8ec0-3617-4c8e-968a-7402a80a9017 588bb497-5d9f-4bcf-b0b1-c9d364afb084 bde7b9e2-af2a-419e-8242-6a8f8e18bb8a
[root@szdpl1491 peers]# cat bde7b9e2-af2a-419e-8242-6a8f8e18bb8a
uuid=bde7b9e2-af2a-419e-8242-6a8f8e18bb8a
state=3
hostname1=bogon
hostname2=172.25.78.242
  • 修改每个节点的var/lib/glusterd/peers/bde7b9e2-af2a-419e-8242-6a8f8e18bb8a 中的hostname1修改为真实的IP,然后重启每个节点的glusterd的服务(systemctl restart glusterd)