|
|
楼主 |
发表于 2022-11-15 10:12:15
|
显示全部楼层
ceph-deploy --overwrite-conf mon add compute06
* j. s9 H) w- F) ]3 H[ceph_deploy.conf][DEBUG ] found configuration file at: /root/.cephdeploy.conf0 o! f, U1 Q4 o" R+ ^3 a
[ceph_deploy.cli][INFO ] Invoked (2.0.1): /usr/bin/ceph-deploy --overwrite-conf mon add compute06
2 `5 W$ F, @' ]% R* H3 H[ceph_deploy.cli][INFO ] ceph-deploy options:
, z. N% A0 I, n. o$ S* w[ceph_deploy.cli][INFO ] username : None
e& a7 a7 m" f* `& H+ E[ceph_deploy.cli][INFO ] verbose : False
5 E% ^; h9 P- w" i' t2 f[ceph_deploy.cli][INFO ] overwrite_conf : True$ c( s$ L- ^# H$ u- j# o
[ceph_deploy.cli][INFO ] subcommand : add
5 y7 d2 U' ?8 A0 Z[ceph_deploy.cli][INFO ] quiet : False
/ ^2 L; d- m6 ?# R[ceph_deploy.cli][INFO ] cd_conf : <ceph_deploy.conf.cephdeploy.Conf instance at 0x7fe3aef63e60>) F! W9 c0 l, ^7 T, }6 j% h
[ceph_deploy.cli][INFO ] cluster : ceph4 F) N+ J" o0 J, ^
[ceph_deploy.cli][INFO ] mon : ['compute06']
: U% h* x; a2 M[ceph_deploy.cli][INFO ] func : <function mon at 0x7fe3aefb7410>
6 n R( k. M7 B ~; ~[ceph_deploy.cli][INFO ] address : None
3 L. |6 a2 e2 M u, L; o# i) w[ceph_deploy.cli][INFO ] ceph_conf : None5 S, p( p) `* J6 e/ C1 U1 y% A% `
[ceph_deploy.cli][INFO ] default_release : False" K: _ o! S( C" _7 k: Q$ A( M( G) m6 n
[ceph_deploy.mon][INFO ] ensuring configuration of new mon host: compute064 `4 p$ ?0 s+ ] V5 w; r. f3 ?' n
[ceph_deploy.admin][DEBUG ] Pushing admin keys and conf to compute06/ q+ o9 \: M7 L/ x: s+ Z1 E& i
[compute06][DEBUG ] connected to host: compute06
, {: r+ I0 K- l' f" ~5 S0 G$ q" u: M% I[compute06][DEBUG ] detect platform information from remote host, a$ w! i& V6 ?7 F0 B' K
[compute06][DEBUG ] detect machine type1 X- C9 f) I6 `, v" W
[compute06][DEBUG ] write cluster configuration to /etc/ceph/{cluster}.conf( O: t' e: {: Y0 j& u0 [+ {
[ceph_deploy.mon][DEBUG ] Adding mon to cluster ceph, host compute068 S9 y& R; r" v6 W
[ceph_deploy.mon][DEBUG ] using mon address by resolving host: 172.20.1.9
, M4 ?* h; e+ J5 H[ceph_deploy.mon][DEBUG ] detecting platform for host compute06 ...
& r3 _% l( E6 ]8 r[compute06][DEBUG ] connected to host: compute06
9 d/ y" j) \- q, i[compute06][DEBUG ] detect platform information from remote host. ^* h' B0 O3 z
[compute06][DEBUG ] detect machine type
; C# D$ z$ w, e T" A1 s[compute06][DEBUG ] find the location of an executable
7 q- g- n, u. t' v[ceph_deploy.mon][INFO ] distro info: CentOS Linux 7.9.2009 Core
( h+ B! v: T( p/ {* c5 B# S1 D' |[compute06][DEBUG ] determining if provided host has same hostname in remote
& M5 W0 u$ I5 w, q[compute06][DEBUG ] get remote short hostname0 e1 d6 \& l' @6 {3 r
[compute06][DEBUG ] adding mon to compute06
, K9 u9 R+ V8 S7 }% X4 R3 ^% L[compute06][DEBUG ] get remote short hostname
- w% l5 ^' ]5 E" \% N1 S- a" H[compute06][DEBUG ] write cluster configuration to /etc/ceph/{cluster}.conf- J4 w, t8 L$ ? W9 Q& f
[compute06][DEBUG ] create the mon path if it does not exist
) t& p* `) i2 D6 k% ~[compute06][DEBUG ] checking for done path: /var/lib/ceph/mon/ceph-compute06/done# }* Y7 r. b) q1 j
[compute06][DEBUG ] done path does not exist: /var/lib/ceph/mon/ceph-compute06/done
0 x& m$ ]; W& l# C6 Y/ f' s[compute06][INFO ] creating keyring file: /var/lib/ceph/tmp/ceph-compute06.mon.keyring
1 v) T* h; v5 \% M g[compute06][DEBUG ] create the monitor keyring file
, `* t( ]8 W- f' D[compute06][INFO ] Running command: ceph --cluster ceph mon getmap -o /var/lib/ceph/tmp/ceph.compute06.monmap
" y0 z% w. v, ^& P2 T( r8 J$ [4 v# d1 g[compute06][WARNIN] got monmap epoch 6- k6 r( L0 g: C& w0 g
[compute06][INFO ] Running command: ceph-mon --cluster ceph --mkfs -i compute06 --monmap /var/lib/ceph/tmp/ceph.compute06.monmap --keyring /var/lib/ceph/tmp/ceph-compute06.mon.keyring --setuser 167 --setgroup 167
- O7 t. l6 ?' O3 j& V8 w0 S[compute06][INFO ] unlinking keyring file /var/lib/ceph/tmp/ceph-compute06.mon.keyring0 ~- C% _" f& @; l) N2 [
[compute06][DEBUG ] create a done file to avoid re-doing the mon deployment( P, E& A) C& Q
[compute06][DEBUG ] create the init path if it does not exist* J/ r9 X+ [/ b& v
[compute06][INFO ] Running command: systemctl enable ceph.target
- Z! w3 p. H0 A* U6 E7 G[compute06][INFO ] Running command: systemctl enable ceph-mon@compute069 k: I! d3 q1 T) B: U. k
[compute06][INFO ] Running command: systemctl start ceph-mon@compute06
: D7 A1 j" _+ K0 H- `[compute06][INFO ] Running command: ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.compute06.asok mon_status3 V8 g* K/ u: x( j7 O y3 f
[compute06][WARNIN] monitor compute06 does not exist in monmap1 E3 l M. x4 z/ S$ f$ H/ L# W* f
[compute06][INFO ] Running command: ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.compute06.asok mon_status
3 L d# g' U1 d[compute06][DEBUG ] ********************************************************************************
; E- _$ Z! J7 \[compute06][DEBUG ] status for monitor: mon.compute06. k1 D8 i) O6 t# r
[compute06][DEBUG ] {
2 E6 N5 f+ T& ~# c" m3 T2 ~- e2 O( D[compute06][DEBUG ] "election_epoch": 0,
8 \. ~" X( j- Y[compute06][DEBUG ] "extra_probe_peers": [], ; V E0 D* j; B- b6 u; l
[compute06][DEBUG ] "feature_map": {
3 F c0 H& r3 E* g6 Y! E$ D[compute06][DEBUG ] "mon": [
7 w& W+ c4 L- G4 T- x6 w+ u[compute06][DEBUG ] {$ A0 \9 v* e7 o% t& K! o- W' x
[compute06][DEBUG ] "features": "0x3ffddff8ffacffff",
& ~$ r: R3 K7 @ k/ f[compute06][DEBUG ] "num": 1,
3 V& V; m& I9 F8 t4 w5 O) B9 Q7 Q[compute06][DEBUG ] "release": "luminous"
; j& Y4 y" i6 W3 z ?" X[compute06][DEBUG ] }
+ _4 b R! g) D$ N! K) X) P[compute06][DEBUG ] ]
( w3 `) s6 M j/ I, e[compute06][DEBUG ] },
( c; z9 \# Y. b' O0 U[compute06][DEBUG ] "features": {. C; j9 w0 L9 ? P7 s
[compute06][DEBUG ] "quorum_con": "0",
( W$ C7 e0 T1 Q[compute06][DEBUG ] "quorum_mon": [], : g6 ]; {& {1 v9 P2 P+ r
[compute06][DEBUG ] "required_con": "2449958197560098820", & w8 p) w/ x( J7 }( z& R5 ?
[compute06][DEBUG ] "required_mon": [4 T" G0 S& V* M T. a% ]2 K
[compute06][DEBUG ] "kraken",
/ O4 F, m7 Z3 j) z4 }( Z[compute06][DEBUG ] "luminous",
$ K) l7 m' T1 x; m6 N3 E! ]2 y) z[compute06][DEBUG ] "mimic",
9 F: q% K0 D: x3 p9 S[compute06][DEBUG ] "osdmap-prune",
, E" ~. g, O! Y- c) Z" k0 r[compute06][DEBUG ] "nautilus"
8 l1 `% Q! l* N" ^) p% V[compute06][DEBUG ] ]4 ~9 b' J; d5 W3 ~ Q9 Z
[compute06][DEBUG ] },
9 z, c( f8 U- n( a5 @: h- `5 A[compute06][DEBUG ] "monmap": {1 R3 t! y2 A( b- N) O* {6 V2 T" Y
[compute06][DEBUG ] "created": "2021-10-28 14:49:15.304143", 6 w' M! B% o( n& g3 ~6 i+ O n
[compute06][DEBUG ] "epoch": 6, ( T1 a; l& L) ~
[compute06][DEBUG ] "features": {
8 ~5 S. y% u4 h5 l$ \3 L[compute06][DEBUG ] "optional": [], 7 v) @2 s4 O/ U) a( L& ~
[compute06][DEBUG ] "persistent": [( P' D' A6 b3 \9 U/ F: O" o5 }: d: w" s( g
[compute06][DEBUG ] "kraken", ' L) _7 u& x A1 b7 z4 U, Z
[compute06][DEBUG ] "luminous",
8 g k5 }" V5 z7 n[compute06][DEBUG ] "mimic",
7 j5 ]" K( N0 [5 d) G[compute06][DEBUG ] "osdmap-prune", 8 A$ }. f, ^- T( o. u8 x5 H6 F
[compute06][DEBUG ] "nautilus"
# ?& m' e" e ]% p[compute06][DEBUG ] ]! J/ i8 }& a7 C5 J! }$ }8 E
[compute06][DEBUG ] }, . n+ C" b1 \$ `
[compute06][DEBUG ] "fsid": "8daade9f-1db5-4e9e-a0ac-cbe1b3abafd1", 7 p3 w" @& D1 }% i& k V
[compute06][DEBUG ] "min_mon_release": 14, 8 D; ?, ]" q5 i$ u! K
[compute06][DEBUG ] "min_mon_release_name": "nautilus",
( w1 k8 [! Q1 {' { }3 L7 S[compute06][DEBUG ] "modified": "2022-11-15 10:16:22.469673",
C0 A0 ], F( M; C9 N! N[compute06][DEBUG ] "mons": [
% Y5 Y' r- \* O- D0 @: x[compute06][DEBUG ] {
1 q& |" K5 b3 a[compute06][DEBUG ] "addr": "172.20.1.13:6789/0",
# C( N- }. @( t( Z# x, y8 |2 A[compute06][DEBUG ] "name": "hostceph1",
0 `2 E. N( m$ ?' m[compute06][DEBUG ] "public_addr": "172.20.1.13:6789/0",
" d+ Z# C3 C" V d( \[compute06][DEBUG ] "public_addrs": {, z. o9 ^8 u, w
[compute06][DEBUG ] "addrvec": [( u9 n5 ^, B% F) C
[compute06][DEBUG ] {
& i' S6 l- h+ R[compute06][DEBUG ] "addr": "172.20.1.13:3300", & V" b8 ?- o3 T% j+ r- s7 |
[compute06][DEBUG ] "nonce": 0,
5 v, c" b$ N, u* N/ e+ J[compute06][DEBUG ] "type": "v2"1 f. [ W+ d: Z8 Y
[compute06][DEBUG ] },
& R- m6 d. `+ I[compute06][DEBUG ] {& x1 E7 N- N& s# r$ C% ]" B
[compute06][DEBUG ] "addr": "172.20.1.13:6789", ' U9 ?5 J2 S+ h- q
[compute06][DEBUG ] "nonce": 0, 9 O" S# S; u& t
[compute06][DEBUG ] "type": "v1"
: W' j% [& B. a[compute06][DEBUG ] }
+ P1 X/ s$ H: k7 v& W[compute06][DEBUG ] ]/ f4 h# S& w4 J2 p! B6 Y
[compute06][DEBUG ] }, ' [6 k% A: E! t- L: L
[compute06][DEBUG ] "rank": 0% V D \; P3 k" t& m9 @
[compute06][DEBUG ] }, % v3 s5 A4 \ _# S
[compute06][DEBUG ] {8 S9 [3 j3 y4 {) r; @" u% ? J$ v o
[compute06][DEBUG ] "addr": "172.20.1.14:6789/0", - u* k2 w2 \* R( F/ ?) ^
[compute06][DEBUG ] "name": "hostceph2", 9 r+ n! i1 D4 {, z/ n! g9 f
[compute06][DEBUG ] "public_addr": "172.20.1.14:6789/0", , |4 u0 u9 r. S2 s0 F: O3 P5 n
[compute06][DEBUG ] "public_addrs": {
# U" C& Q; g7 @+ F6 R/ t, p[compute06][DEBUG ] "addrvec": [
+ F3 R5 V( m6 R4 n& D[compute06][DEBUG ] {8 s. r% c2 j5 Z% G. C# B* H- b& j
[compute06][DEBUG ] "addr": "172.20.1.14:3300", # y2 d1 ]. B- C' z
[compute06][DEBUG ] "nonce": 0, # P& O: S5 I+ j0 c d3 X+ L
[compute06][DEBUG ] "type": "v2"& [' J) n' u) t
[compute06][DEBUG ] }, 4 p8 P& C2 L, U/ F$ P+ ?
[compute06][DEBUG ] {6 T" I' X6 W: V$ k3 {
[compute06][DEBUG ] "addr": "172.20.1.14:6789",
" H# E3 t( @5 k5 x! e% X[compute06][DEBUG ] "nonce": 0,
# U. J. T% F3 ^& U[compute06][DEBUG ] "type": "v1"
+ l+ E- f7 p1 f5 t- A# ^" n" g[compute06][DEBUG ] }4 r1 O3 l# r* J4 a& f% `% f, g1 M% Q+ B
[compute06][DEBUG ] ]
3 u- Y/ b9 H, E3 f[compute06][DEBUG ] },
- z1 }, M# V/ k[compute06][DEBUG ] "rank": 1
* ?7 X8 e7 ~6 W. ?) M6 m4 q6 b[compute06][DEBUG ] },
c; ~; F7 _& E7 u$ w2 N* g[compute06][DEBUG ] {" G6 f: } o% A* ~* ?
[compute06][DEBUG ] "addr": "172.20.1.15:6789/0", / V7 y) K5 D# b9 }' s' X& ~: S
[compute06][DEBUG ] "name": "hostceph3", ; T5 P1 v1 `3 \, \
[compute06][DEBUG ] "public_addr": "172.20.1.15:6789/0",
! c) T- ^$ c% I8 q6 Z/ Q[compute06][DEBUG ] "public_addrs": {
8 a- e5 C6 X! B5 ?1 g2 b[compute06][DEBUG ] "addrvec": [: [" \3 D; L& v" }9 D. M
[compute06][DEBUG ] {4 |1 o) s% s" J+ O5 O
[compute06][DEBUG ] "addr": "172.20.1.15:3300", . L5 R! J5 ?0 s1 o( ^5 q; z K
[compute06][DEBUG ] "nonce": 0,
1 U5 A+ N4 C! \6 H) T) n- _6 Q[compute06][DEBUG ] "type": "v2"
1 k; B$ O' Y& |& L* g2 V O[compute06][DEBUG ] }, 0 u: l- S* A6 u$ I" l* _1 p' T
[compute06][DEBUG ] {3 ^' H5 e. {) J' ^7 k: q" i. s
[compute06][DEBUG ] "addr": "172.20.1.15:6789", - N: u9 D! A! h5 q
[compute06][DEBUG ] "nonce": 0, 2 h3 Z! t G) B+ `
[compute06][DEBUG ] "type": "v1"7 e: I! h p8 c0 m J+ R
[compute06][DEBUG ] }. }/ C; _7 G2 g2 U* y1 b
[compute06][DEBUG ] ] }6 b4 u% }6 c; L! [4 L% [1 J
[compute06][DEBUG ] },
/ K7 c+ a# m3 @( c- ?; ]( Q[compute06][DEBUG ] "rank": 2$ B# n+ A' s6 M- m' C% F
[compute06][DEBUG ] }, 8 D! O: f& P7 W. W! R
[compute06][DEBUG ] {8 P! k1 ]% |6 ~2 Z
[compute06][DEBUG ] "addr": "172.20.1.11:6789/0", 0 ^4 M. ~; p/ [
[compute06][DEBUG ] "name": "compute08", * N6 x( C( h2 ?- @; C% }
[compute06][DEBUG ] "public_addr": "172.20.1.11:6789/0",
1 a" j( c8 }! O. o. w6 y[compute06][DEBUG ] "public_addrs": {0 k- Y8 ^' y, r! u! i, D
[compute06][DEBUG ] "addrvec": [7 r, G, J( p8 J1 U: O4 F
[compute06][DEBUG ] {
+ c+ S; ?+ g* Y( u8 I3 I[compute06][DEBUG ] "addr": "172.20.1.11:3300", - x" I8 u- ?/ R5 L7 x3 C9 `
[compute06][DEBUG ] "nonce": 0, ) G7 r9 r k3 C. J1 i
[compute06][DEBUG ] "type": "v2"
$ i* {( k0 i* g2 r" k# U[compute06][DEBUG ] },
9 y4 n" q4 g9 x% l6 l" u1 X& {[compute06][DEBUG ] {0 n$ z" A) d5 }% E: {
[compute06][DEBUG ] "addr": "172.20.1.11:6789", ( R7 q1 u0 g; C7 V" }" w
[compute06][DEBUG ] "nonce": 0,
# l# G w: t* c' S[compute06][DEBUG ] "type": "v1"( V& G* @. d+ ?( R0 ~
[compute06][DEBUG ] }
) y: w2 V- z/ ?[compute06][DEBUG ] ]6 I0 R2 }: z7 {9 T( l: m
[compute06][DEBUG ] }, 8 V P; w4 v% A9 q' x
[compute06][DEBUG ] "rank": 3
2 D" N5 y& z" H t2 X1 @[compute06][DEBUG ] }7 n+ k/ T- l' Q4 ~4 c" N7 P$ \% P7 ^
[compute06][DEBUG ] ]. [! t$ @, \' P0 \ H6 j6 w
[compute06][DEBUG ] }, 6 i1 F; d) m9 J) B
[compute06][DEBUG ] "name": "compute06",
1 m, O; } e1 Q6 R[compute06][DEBUG ] "outside_quorum": [],
! S, @8 _) ]$ k6 M[compute06][DEBUG ] "quorum": [], 2 o) Y; Z+ _8 R2 H4 t0 t
[compute06][DEBUG ] "rank": -1,
+ m+ y6 R& u* w2 o( @[compute06][DEBUG ] "state": "probing",
6 a: H/ i2 ]1 |3 a Y: v( ^9 w[compute06][DEBUG ] "sync_provider": []
, w" S. C7 `6 e: J[compute06][DEBUG ] }5 h; `6 l; U% @2 c1 T+ S2 |) J- V
[compute06][DEBUG ] ********************************************************************************
8 I: Z% z4 k0 _1 q( T4 x( V[compute06][INFO ] monitor: mon.compute06 is currently at the state of probing& d; l5 q1 J d* X" Y* p& g
[root@hostceph1 deploy]# ceph -s+ M5 J* [! o6 ]' q
cluster:, w/ f& o, T- Z5 s# {9 l
id: 8daade9f-1db5-4e9e-a0ac-cbe1b3abafd1
- O- z# K0 p( [ health: HEALTH_WARN7 A: D g$ O: c% w
15 daemons have recently crashed
( Q/ m* c( O" b- s ; g9 |5 j/ [/ t3 _6 @
services:
6 ]$ C k. s) @0 L mon: 5 daemons, quorum hostceph1,hostceph2,hostceph3,compute08,compute06 (age 0.657523s)+ w3 T9 ?$ W* f
mgr: hostceph2(active, since 5M), standbys: hostceph3, hostceph1, compute07, compute09, compute08, compute06
8 e( c5 s: E% F osd: 34 osds: 34 up (since 3M), 34 in (since 5M)1 O1 m7 n; l/ z; L3 U" u
# U* q g0 L. K
data:; K- c9 A6 [8 _/ Z0 g
pools: 9 pools, 8832 pgs
) J& u4 H2 l$ L9 @( Z5 S objects: 312.99k objects, 1.2 TiB
. w& `% T/ l4 T7 z( t4 t, _' [ usage: 8.3 TiB used, 118 TiB / 127 TiB avail
" v4 ]/ Y; B7 Z pgs: 8832 active+clean+ C1 {& ~* @5 \4 q. P1 M
" P/ \/ c: W+ y3 J
io:8 [# T: ~ i& z$ H$ z) P7 N
client: 27 KiB/s rd, 64 KiB/s wr, 13 op/s rd, 6 op/s wr
; S" m6 S( k! E3 A + b! {3 \" i" s u8 ^ w
. Z" N8 ~/ [: k9 K/ Zmon的告警解除了。遇到了新的问题。 |
|