共計 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 行業資訊頻道!