找回密码
 注册
查看: 3290|回复: 0

Module 'dashboard' has failed: IOError("Port 7000 not free ceph 存储 ceph -

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2021-6-9 17:00:24 | 显示全部楼层 |阅读模式
Module 'dashboard' has failed: IOError("Port 7000 not free on  IP_addr
3 t. p+ R2 [7 A7 w$ t6 `% c& b
7 a9 O3 ?9 A5 f1 ~  V0 s9 p错误处理
报错字面上的意思是151节点上的7000端口被占用导致dashboard模块失败 查看配置
[root@compute03 /]# ceph config dump
! e, h- m- n8 }7 C' z8 UWHO   MASK LEVEL    OPTION                    VALUE        RO ; L4 D( D$ x8 j0 l# h4 p4 M: i9 ?
  mgr      advanced mgr/dashboard/server_addr 192.168.0.75 *  
* y9 R' L/ h9 [  }+ h1 N) A4 v! G  mgr      advanced mgr/dashboard/server_port 7000         *  ; h* G% }) j( W+ R/ D
  mgr      advanced mgr/dashboard/ssl         false        *  

$ M4 v% x, d' _5 y2 t$ f' @  v: y8 m  i! l& Y  `  Y! n( h

' \9 x9 H7 A0 l2 m5 k: z
3 I5 f  d. x. b
[root@compute03 /]# netstat -anp |grep 700$ X& _: p: q- C: f' w6 l
unix  2      [ ACC ]     STREAM     LISTENING     1885516  37429/containerd-sh  /run/containerd/s/8f25700ab4e2abb8974734cbce400926f6a6626b64b80c071d6514ccd4ef349f. o( P: Z+ W- y+ ~" ^
unix  3      [ ]         STREAM     CONNECTED     1885521  37429/containerd-sh  /run/containerd/s/8f25700ab4e2abb8974734cbce400926f6a6626b64b80c071d6514ccd4ef349f
& s! D* V: o* p  I* O. o& ]
0 ?8 t" l( p. ]0 j# C" r4 g

. |2 n) b1 m: I5 o2 ]4 i
# `- T! P  e6 t3 {6 h2 h/ s
151机器上的7000端口依旧,是因为mgr用的就是7000
# d- q6 }$ o8 @, q
# netstat -nap |grep 7000
. u. q6 J, X1 D1 r5 J2 ~7 w  P2 |1 {) s+ ?8 T: a
  g4 P. V# Q5 {, Q( r! u; \
tcp        0      0 172.16.13.151:7000      0.0.0.0:*               LISTEN      1948234/ceph-mgr   
6 k! z6 C5 C: Z" S! H  @/ V: ^" S% u, Q

, Q& R4 B$ i* ?: L; O/ p4 P3 c+ S; O[root@compute03 /]# ceph mgr services
$ X# K/ a* s( V4 I$ p{
/ ~" z4 O' l0 U: t    "dashboard": "http://compute01:7000/",
. m! I' }6 O4 D* K3 H0 {    "prometheus": "http://compute02:9283/"
- ]9 ]2 i% ]% B}

7 C. J* X1 n9 _  V8 A$ t6 Y) \
" y1 {% w. Q0 V6 R- [. j
  ?8 c3 |" i/ l5 I' _

5 E) G8 I2 Z2 h
- T( n, d- a! K
注意到当前活跃的mgr是compute02
尝试把dashboard修改到compute02节点上
  q2 d+ Y0 f# Z# i- s
[root@compute03 /]# ceph config set  mgr mgr/dashboard/server_addr compute02# ceph mgr module disable dashboard       # ceph mgr module enable dashboard --force
查看现在的状态,集群恢复正常
[root@compute03 /]# ceph config dump
' K2 [9 I" L* u/ V% `9 H  eWHO   MASK LEVEL    OPTION                    VALUE     RO
  @8 O) T# n7 d7 |" Y/ e  mgr      advanced mgr/dashboard/server_addr compute02 *  8 R7 G3 y) I* V* Y
  mgr      advanced mgr/dashboard/server_port 7000      *  6 E; y8 R. \+ r2 D3 m
  mgr      advanced mgr/dashboard/ssl         false     *  

& v4 ]; K8 T3 b8 f# X" b
1 ^0 l- u: r8 Z* o8 E% t) [4 D[root@compute03 /]# ceph config dump
9 L! X& l7 G8 xWHO   MASK LEVEL    OPTION                    VALUE     RO   U0 m- g' d/ Y7 b! h
  mgr      advanced mgr/dashboard/server_addr compute02 *  ) `/ n: L) ]  f
  mgr      advanced mgr/dashboard/server_port 7000      *    `7 @2 f% k2 e; D- z& a( O! q
  mgr      advanced mgr/dashboard/ssl         false     *  

, E/ ~4 l$ K7 {# A( A1 g3 a7 h! l# x# z# c; K
# ceph -s  & C2 ?( @) I3 S" b9 s# v
" Q# I$ l& H8 Q7 M( P
cluster:    id:     ce2af227-473a-4d73-a817-512a17f235ac   
3 l! `. A9 D1 a( A- ^" Z
) v" m9 j( m& F$ b; e health: HEALTH_OK   . w  ]9 o* f- b  w. l* a& v
services:   
( ^* t3 r/ f$ R; j) ^
$ \$ y( a: P6 Imon: 3 daemons, quorum compute01,compute02,compute03(age 3m)   
  Y, u9 i8 ^( s( }. s: ]8 d3 v( v% D4 d2 r( I" \
mgr: compute02(active, since 4s), standbys: compute03, compute01    5 S. [# K- V# D% p& l, j

, u$ t/ R' }1 @" o, l6 d" _& A

" Z) ]) c4 \" R5 }$ d- posd: 8 osds: 8 up (since 5w), 8 in (since 5w)   # i/ C- M. l, ^
, R% ?$ [* i5 R

: Z/ s' m- J0 Z2 E% {( O5 Ddata:   
- b# W# r5 m$ |, `. P! D- e
7 }6 i6 U1 I" T( N8 _
0 k( G+ K4 v& t' \
pools:   0 pools, 0 pgs    objects: 0 objects, 0 B   
9 |$ `7 ?5 n( ]0 j8 O4 X: @0 {. c1 a. x$ f4 d$ X4 z5 |

% w1 L6 \; G9 G usage:   8.1 GiB used, 784 GiB / 792 GiB avail   
. t! g0 }& C% a6 z
; |- f; {- V; u5 p  X
4 i% m; u# m3 W8 w8 r; s. \
pgs:0 F" D; d' e5 n4 t5 V
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 00:58 , Processed in 0.016837 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表