千家信息网

ceph中如何解决Module 'dashboard' has failed IOError Port 7000 not free问题

发表于:2025-01-23 作者:千家信息网编辑
千家信息网最后更新 2025年01月23日,这篇文章主要为大家展示了"ceph中如何解决Module 'dashboard' has failed IOError Port 7000 not free问题",内容简而易懂,条理清晰,希望能够帮助
千家信息网最后更新 2025年01月23日ceph中如何解决Module 'dashboard' has failed IOError Port 7000 not free问题

这篇文章主要为大家展示了"ceph中如何解决Module 'dashboard' has failed IOError Port 7000 not free问题",内容简而易懂,条理清晰,希望能够帮助大家解决疑惑,下面让小编带领大家一起研究并学习一下"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 7000tcp        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问题"这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注行业资讯频道!

0