|
|
ceph status
( z3 M( i/ l9 a8 B+ j cluster:- R* R, I8 t3 ~+ Q9 }
id: 75fd9bbd-3c12-419d-ab06-77df4c5d9c8a
. g8 ?1 |8 P F4 l/ w health: HEALTH_WARN
7 R' i b- f, A, x' C5 l. j" W application not enabled on 2 pool(s)0 k& @2 G( T" T2 X
* p- ^7 |( z/ t7 j1 d4 s7 z
services:
% k& x0 E% C! R/ F: E6 S mon: 3 daemons, quorum compute01,compute02,compute03 (age 2w)
' Y& m, y- Q9 l3 {2 E$ w mgr: compute01(active, since 3w), standbys: compute03, compute02
8 G& h% W! d$ x osd: 3 osds: 3 up (since 3w), 3 in (since 3w)
! a5 L6 p* {' I; F8 \- V" D+ I, ~1 w
, g0 [+ S. v( I! [ data:3 d) Y% n( H, `
pools: 8 pools, 520 pgs
$ g0 u; K; S( l ]! `* | objects: 35.99k objects, 97 GiB) q+ H: N: K8 k) \1 M
usage: 196 GiB used, 3.1 TiB / 3.3 TiB avail
5 A9 \/ g% k+ L pgs: 520 active+clean
4 d0 V4 [* j! Y9 T0 m
% B& I3 P ^& F) l4 l2 `# }+ P( I. s) F
通过监控检查:
0 e% S: l; ~! O" T/ L ceph health detail 5 g$ Y5 Z; x- D
HEALTH_WARN application not enabled on 2 pool(s). D6 B% V5 g; W: L1 g" d
POOL_APP_NOT_ENABLED application not enabled on 2 pool(s)
9 a) v5 }1 |! o8 r7 @6 |7 K. D0 c application not enabled on pool 'iscsitgtpool'
2 D7 y) y1 D( Y application not enabled on pool 'rbdrac'
/ F; R4 G" `+ V9 f/ C2 p use 'ceph osd pool application enable <pool-name> <app-name>', where <app-name> is 'cephfs', 'rbd', 'rgw', or freeform for custom applications.4 j: P# R& ?$ r! F
" s' |" Y8 U7 c2 F9 v$ Y |0 P: [9 H9 N
' x; l6 w. m9 W4 d7 W2 i, ~执行命令添加enabled
2 t5 ]- O/ y k% O[root@compute01 ~]# ceph osd pool application enable iscsitgtpool rbd/ c9 w( y4 v$ y4 l4 x9 l3 Z
enabled application 'rbd' on pool 'iscsitgtpool'
1 R9 q) P- Y. o[root@compute01 ~]# ceph osd pool application enable rbdrac rbd) D0 O1 W+ A4 E. {9 h! A) R) @
enabled application 'rbd' on pool 'rbdrac'
+ H9 x0 q5 K$ s* J9 J+ m+ w
' \' M' W5 u+ j. |. _; _8 z# e[root@compute01 ~]# ceph status
9 O$ Y* u; q- c5 G5 N' }- L9 C1 ~ cluster:
! p9 c1 }. V" H6 U7 y: K$ |; O id: 75fd9bbd-3c12-419d-ab06-77df4c5d9c8a9 o; J$ b% F' b
health: HEALTH_OK4 Q$ z! C5 b- l+ N2 J
) V5 y, t# n2 A- e' Q services:: l( ]3 |9 j# M2 I. \
mon: 3 daemons, quorum compute01,compute02,compute03 (age 2w)
1 u/ V9 P+ n' H% T, ?+ b mgr: compute01(active, since 3w), standbys: compute03, compute02
' f3 ~' @6 p+ A) X8 e! c( Z osd: 3 osds: 3 up (since 3w), 3 in (since 3w)
9 T4 f$ k7 E' n3 B8 R
. W+ p# A5 ~: \* a data:/ h0 D" B. a8 z2 j; o& Z
pools: 8 pools, 520 pgs
: c0 S$ [8 z8 l, R" ^8 ]$ ~ objects: 35.99k objects, 97 GiB$ B$ m! r N. J! H6 c+ \
usage: 196 GiB used, 3.1 TiB / 3.3 TiB avail( \2 ?4 D& U O. I8 A
pgs: 520 active+clean
# e+ e% d( ?# W4 S
+ G3 e& ?0 c8 n4 q# ?' F io:2 E9 T b3 ?) [8 j1 k* y
client: 35 KiB/s rd, 128 KiB/s wr, 45 op/s rd, 23 op/s wr
/ i, P* Z4 X% p G* k: z) w: u3 w( N4 L
|
|