|
|
ceph status
# P6 x g) @5 m# Q4 U( q cluster:. H$ I$ f1 [! o7 J
id: 75fd9bbd-3c12-419d-ab06-77df4c5d9c8a
$ w! e% x+ K8 _3 F+ Y; s health: HEALTH_WARN- u# w `2 t- Q2 B2 f# N: `: G
application not enabled on 2 pool(s)
7 T, C1 y$ e X; y
) ?- z; u# e; |8 [6 } services:# U2 _/ C# p/ {2 J5 d
mon: 3 daemons, quorum compute01,compute02,compute03 (age 2w)
- }8 H, C0 A% R$ Q" E* L mgr: compute01(active, since 3w), standbys: compute03, compute02) Z- B. E" P, _) W" }
osd: 3 osds: 3 up (since 3w), 3 in (since 3w)/ c- f! `5 g& V5 `5 \
9 M* L) F$ U. e. b
data:1 r9 r; C; `! m, D
pools: 8 pools, 520 pgs
8 M; r& C' E" C5 q0 J objects: 35.99k objects, 97 GiB+ {- ~& P! m1 B5 k1 X4 `
usage: 196 GiB used, 3.1 TiB / 3.3 TiB avail
3 e( w9 L7 u& K" [! l: j; ~3 q' _4 n pgs: 520 active+clean
# ~1 k7 ?8 O5 U. z7 [9 D6 ?* ~" S/ |3 m# S& o) U/ s% O
: u e+ C$ b( u- d+ h( w通过监控检查:
' c0 s% w2 R+ \2 }6 f ceph health detail
$ }) O) m. }! OHEALTH_WARN application not enabled on 2 pool(s)
* u; \2 A5 s. C$ l( v, iPOOL_APP_NOT_ENABLED application not enabled on 2 pool(s), v5 F2 [# _) Z5 K" U) [
application not enabled on pool 'iscsitgtpool'8 [& Z3 \7 Z: h
application not enabled on pool 'rbdrac'
* v1 Q( R# v4 ~# I" y3 ?- R- Q8 h use 'ceph osd pool application enable <pool-name> <app-name>', where <app-name> is 'cephfs', 'rbd', 'rgw', or freeform for custom applications. a' s6 [: W' l/ J* ]' }
?8 y" d. K4 b7 q9 b# E' H3 F4 {" h5 |
执行命令添加enabled
; L* ~) I- W5 W! V" k[root@compute01 ~]# ceph osd pool application enable iscsitgtpool rbd% b- _: u9 C- {: w: N6 d
enabled application 'rbd' on pool 'iscsitgtpool'
2 _9 ?9 c5 w3 T( a$ f5 k |[root@compute01 ~]# ceph osd pool application enable rbdrac rbd5 p; L" l. T0 @* C
enabled application 'rbd' on pool 'rbdrac'
+ _ x! d7 P& U' M1 x2 R9 |: H; v4 z+ S5 {) G* \. c& U+ @$ g
[root@compute01 ~]# ceph status . X* r5 b2 e, J- ~# u2 P
cluster:
* u; c2 j1 r5 a) n id: 75fd9bbd-3c12-419d-ab06-77df4c5d9c8a. U- H( e! H$ m* B/ P
health: HEALTH_OK% `8 u4 \2 ` T( P8 y! a
! b% @: z) G! S$ ]" {9 i ]7 C4 f
services:
# B' m! E( N P8 S; x. _ mon: 3 daemons, quorum compute01,compute02,compute03 (age 2w)
, }% F: E+ P" y mgr: compute01(active, since 3w), standbys: compute03, compute024 [$ J) D+ f8 p
osd: 3 osds: 3 up (since 3w), 3 in (since 3w)
0 i o& T6 q' p8 |' L8 s8 Q
, ]2 z8 M+ i9 N7 r8 e data:
8 t+ I! H' A5 ]3 F2 a, g6 ?) v pools: 8 pools, 520 pgs4 J( k- x- `7 \3 [; w. k+ u0 T
objects: 35.99k objects, 97 GiB7 Q4 ?& y! M# h* e% j$ E
usage: 196 GiB used, 3.1 TiB / 3.3 TiB avail/ ~1 W: a; E, i' a; j( M. q' _) W! x
pgs: 520 active+clean
o# e* ~! t4 Q
! l8 d- I2 A1 y1 R* v1 X0 S io:
* S) Y# r* V9 g9 ?, h* n+ m: J. Z client: 35 KiB/s rd, 128 KiB/s wr, 45 op/s rd, 23 op/s wr
/ c' n4 d' [1 @; {
3 K* t1 H$ P# }$ @ |
|