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

health: HEALTH_WARN too few PGs per OSD (10 < min 30)

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2021-4-24 00:09:40 | 显示全部楼层 |阅读模式
[root@ceph1 deploy]# ceph -s: o3 {1 V* u7 n
  cluster:9 \$ O5 m* O: R5 O: u
    id:     9072e6f0-0aff-4024-81b4-651bcb8d2b01# h3 o* ?1 U8 o) |1 S: r- _
    health: HEALTH_WARN7 E% `6 r# r! `, Z
            too few PGs per OSD (10 < min 30)
7 r9 z: f7 @& G  M4 x) x! d
  e) s9 b) k8 k2 Y  services:
8 W8 p8 y; [( a2 Y' S    mon: 3 daemons, quorum ceph1,ceph2,ceph3
+ b( t6 w0 F0 W8 H( Q/ j    mgr: ceph1(active), standbys: ceph2
8 X+ z. |: U" ]) c    osd: 6 osds: 6 up, 6 in" N8 ^' A: p4 A8 r. @1 B& k4 L

* f, Q6 r' l( o- j  t4 X  \& j  data:7 }# Q* Z. x# L# Y$ y, A& U
    pools:   1 pools, 64 pgs
6 U- y- O* Z9 g3 F# M2 z    objects: 0 objects, 0B+ e! v, |! K" |2 U# e
    usage:   671MiB used, 119GiB / 120GiB avail5 \* g$ q' {2 r) F* b
    pgs:     64 active+clean
( N/ O: `( g2 f( j) K; C7 K
) O/ w. q5 I( Q' v' s[root@ceph1 deploy]# ceph osd tree$ s5 u, n+ K/ A% N6 j
ID CLASS WEIGHT  TYPE NAME      STATUS REWEIGHT PRI-AFF , e; i/ {0 X" b1 p
-1       0.11691 root default                           7 D9 G/ F& H# o+ w
-2       0.03897     host ceph1                         , r! L# r( J" z5 |% _" x. h% {. d
0       0.01949         osd.0      up  1.00000 1.00000
1 j# }7 ~( ]; d 1       0.01949         osd.1      up  1.00000 1.00000
0 ]5 Z5 N7 ?. Q3 R6 N" }% _-3       0.03897     host ceph2                         3 d; Z' s! P, ?3 X
2       0.01949         osd.2      up  1.00000 1.00000
3 K1 i0 W8 {) t! _( Z' c: R 3       0.01949         osd.3      up  1.00000 1.00000 ! m( F  r* Z7 w- T( Q5 S
-4       0.03897     host ceph3                         + c; D) o% \2 R: p8 t5 J; C
4       0.01949         osd.4      up  1.00000 1.00000
% n' u1 `) ~& f, o) n 5       0.01949         osd.5      up  1.00000 1.00000 * Y8 K+ ]# ~' ?" |- }
# I4 h5 z- v9 M: C0 w0 I
[root@ceph1 deploy]# ceph osd pool ls
8 V1 l& V. f5 }4 N% dimages3 K: p' K  t( W8 A. E; G2 G  D
[root@ceph1 deploy]# ceph osd pool rm images images
3 m( t" h! ^. G2 fError EPERM: WARNING: this will *PERMANENTLY DESTROY* all data stored in pool images.  If you are *ABSOLUTELY CERTAIN* that is what you want, pass the pool name *twice*, followed by --yes-i-really-really-mean-it.
1 ^' P& w7 i5 Q. Q[root@ceph1 deploy]# ceph osd pool rm images images --yes-i-really-really-mean-it
* e" w2 I  b5 S0 l6 |7 d" ^pool 'images' removed
; V3 I; m1 _2 q" z$ s5 Z' d# t' ^[root@ceph1 deploy]# ceph -s/ [* R6 [1 ^1 Y1 P( _+ h
  cluster:+ c& q6 b, S' h( ]7 L# U+ a
    id:     9072e6f0-0aff-4024-81b4-651bcb8d2b01
1 J" L8 A8 h# I0 c    health: HEALTH_OK6 h2 \+ |& w2 r
' n6 k" K9 B* ~! Q
  services:
- n8 L) D1 d* V* x! T    mon: 3 daemons, quorum ceph1,ceph2,ceph3
6 y0 Y0 I. W- g    mgr: ceph1(active), standbys: ceph2  u6 @. R- \9 T+ {
    osd: 6 osds: 6 up, 6 in/ b  o. w  k" z( \9 }% _' Q
/ u7 X" ^9 f+ j6 S
  data:
4 k/ P! x4 J8 v3 X    pools:   0 pools, 0 pgs1 N0 q' M4 L3 X4 z/ P, P* a2 X
    objects: 0 objects, 0B
" S% {  v: O5 ~- ?    usage:   670MiB used, 119GiB / 120GiB avail
) O; ~& m+ T3 x% ^/ ?    pgs:     8 v/ u* W  n  ^! X& ?+ z5 b% c
) ~* [8 R6 X4 i5 L

7 H# h: f" B5 K  V5 X; z% y  X" f/ z" b3 z
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 01:05 , Processed in 0.014874 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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