共计 1983 个字符,预计需要花费 5 分钟才能阅读完成。
行业资讯
服务器
云计算
ceph 中如何解决 Module dashboard has failed IOError Port 7000 not free 问题
这篇文章主要为大家展示了“ceph 中如何解决 Module dashboard has failed IOError Port 7000 not free 问题”,内容简而易懂,条理清晰,希望能够帮助大家解决疑惑,下面让丸趣 TV 小编带领大家一起研究并学习一下“ceph 中如何解决 Module dashboard has failed IOError Port 7000 not free 问题”这篇文章吧。
报错查看
# ceph -s
cluster:
id: ce2af227-473a-4d73-a817-512a17f235ac
health: HEALTH_ERR
Module dashboard has failed: IOError(Port 7000 not free on 172.16.13.151 ,)
services:
mon: 3 daemons, quorum dlw-1,dlw-2,dlw-3 (age 3m)
mgr: dlw-2(active, starting, since 0.918549s), standbys: dlw-3, dlw-1
osd: 8 osds: 8 up (since 5w), 8 in (since 5w)
data:
pools: 0 pools, 0 pgs
objects: 0 objects, 0 B
usage: 8.1 GiB used, 784 GiB / 792 GiB avail
pgs:
错误处理
报错字面上的意思是 151 节点上的 7000 端口被占用导致 dashboard 模块失败 查看配置
# ceph config dump
WHO MASK LEVEL OPTION VALUE RO
mgr advanced mgr/dashboard/server_addr 172.16.13.151 *
mgr advanced mgr/dashboard/server_port 7000 *
mgr advanced mgr/dashboard/ssl false *
151 机器上的 7000 端口依旧,是因为 mgr 用的就是 7000
# netstat -nap |grep 7000
tcp 0 0 172.16.13.151:7000 0.0.0.0:* LISTEN 1948234/ceph-mgr
# ceph mgr services
dashboard : http://172.16.13.151:7000/ ,
prometheus : http://dlw-2:9283/
}
注意到当前活跃的 mgr 是 dlw-2
尝试把 dashboard 修改到 dlw- 2 节点上
# ceph config set mgr mgr/dashboard/server_addr dlw-2
# ceph mgr module disable dashboard
# ceph mgr module enable dashboard --force
查看现在的状态,集群恢复正常
# ceph config dump
WHO MASK LEVEL OPTION VALUE RO
mgr advanced mgr/dashboard/server_addr dlw-2 *
mgr advanced mgr/dashboard/server_port 7000 *
mgr advanced mgr/dashboard/ssl false *
# ceph -s
cluster:
id: ce2af227-473a-4d73-a817-512a17f235ac
health: HEALTH_OK
services:
mon: 3 daemons, quorum dlw-1,dlw-2,dlw-3 (age 3m)
mgr: dlw-2(active, since 4s), standbys: dlw-3, dlw-1
osd: 8 osds: 8 up (since 5w), 8 in (since 5w)
data:
pools: 0 pools, 0 pgs
objects: 0 objects, 0 B
usage: 8.1 GiB used, 784 GiB / 792 GiB avail
pgs:
以上是“ceph 中如何解决 Module dashboard has failed IOError Port 7000 not free 问题”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注丸趣 TV 行业资讯频道!