找回密码
 注册
查看: 3366|回复: 1

HEALTH_WARN Degraded data redundancy: 1 pg undersized; OSD count 2 < osd_pool

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2021-7-25 10:08:20 | 显示全部楼层 |阅读模式
ceph health detail 7 r$ h: N4 J- D9 K: ?# M
HEALTH_WARN Degraded data redundancy: 1 pg undersized; OSD count 2 < osd_pool_default_size 36 F/ {3 K: n0 l- b+ u
[WRN] PG_DEGRADED: Degraded data redundancy: 1 pg undersized- N; ~0 \" A7 {3 d7 g1 ^0 e  B
    pg 1.0 is stuck undersized for 79s, current state active+undersized, last acting [1,0]
. o& K( Y+ @/ b$ S' Q! Z[WRN] TOO_FEW_OSDS: OSD count 2 < osd_pool_default_size 3* }3 S3 [! Q6 @: i" c2 n' Z

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2021-7-26 15:08:43 | 显示全部楼层
[root@controller ~]# ceph health detail
. R: y* k& c9 s8 ~+ \+ M) x% U HEALTH_WARN Degraded data redundancy: 64 pgs undersized
, O) }! b$ o, r [WRN] PG_DEGRADED: Degraded data redundancy: 64 pgs undersized/ P$ Y  q+ M, {$ o0 e0 B
     pg 9.d is stuck undersized for 115s, current state active+undersized, last acting [2,1]
' S: y( F- W6 P1 h/ [     pg 9.e is stuck undersized for 115s, current state active+undersized, last acting [2,1]
; N, H8 d4 r1 @     pg 9.f is stuck undersized for 115s, current state active+undersized, last acting [2,1]* b# H4 q8 Z. u( i8 V
     pg 9.10 is stuck undersized for 115s, current state active+undersized, last acting [2,0]: {  ]/ E6 i1 a' X1 D! M
     pg 9.11 is stuck undersized for 115s, current state active+undersized, last acting [2,0]6 v9 h; D1 p. ^0 k. A% @: }
     pg 9.12 is stuck undersized for 115s, current state active+undersized, last acting [2,1]* K- g1 o( j3 G- s# d
     pg 9.13 is stuck undersized for 115s, current state active+undersized, last acting [2,0]
; h7 R1 J: `& g: e' J6 W     pg 9.14 is stuck undersized for 115s, current state active+undersized, last acting [1,2]
2 N2 o: F  u# ?( S     pg 9.15 is stuck undersized for 115s, current state active+undersized, last acting [2,1]! D, H+ `/ {% y
     pg 9.16 is stuck undersized for 115s, current state active+undersized, last acting [2,1]% l/ h* f  Y% V  O1 g6 j. B/ N( L0 N
     pg 9.17 is stuck undersized for 115s, current state active+undersized, last acting [2,1]* A: h" T/ v, j( B: \% K! o
     pg 9.18 is stuck undersized for 115s, current state active+undersized, last acting [2,0]* J# |! }. b9 l! w( e/ i
     pg 9.19 is stuck undersized for 115s, current state active+undersized, last acting [0,2]
5 r: z0 R0 w: s% ^! U/ N- r5 r     pg 9.1a is stuck undersized for 115s, current state active+undersized, last acting [1,2]$ {/ Y9 J, a  _2 k
     pg 9.1b is stuck undersized for 115s, current state active+undersized, last acting [0,2]
- T* N# w+ k# i2 G; G- |% f5 w     pg 9.1c is stuck undersized for 115s, current state active+undersized, last acting [0,2]
/ J+ {2 V+ n- v; Y, X     pg 9.1d is stuck undersized for 115s, current state active+undersized, last acting [0,2]1 ^6 Z; L' w& K* a! x) o
     pg 9.1e is stuck undersized for 115s, current state active+undersized, last acting [0,2]; F& f( A; J% D4 {* U" `7 e
     pg 9.1f is stuck undersized for 115s, current state active+undersized, last acting [1,2]. S: M/ n# H" h) B
     pg 9.20 is stuck undersized for 115s, current state active+undersized, last acting [0,2]
! K$ z2 ~0 j3 V2 x+ I) y2 p     pg 9.21 is stuck undersized for 115s, current state active+undersized, last acting [0,2]  n- [' k  l. O+ l: I5 T
     pg 9.22 is stuck undersized for 115s, current state active+undersized, last acting [2,1]
: {3 x6 H  s; A     pg 9.23 is stuck undersized for 115s, current state active+undersized, last acting [0,2]
' ^5 s: m( B2 Z5 D. e     pg 9.24 is stuck undersized for 115s, current state active+undersized, last acting [1,2]- D' P3 l- A+ V
     pg 9.25 is stuck undersized for 115s, current state active+undersized, last acting [0,2]0 N) h5 {) n" B( v2 R4 {; J
     pg 9.26 is stuck undersized for 115s, current state active+undersized, last acting [2,0]- |, A  C; U+ n' L) P( O4 \
     pg 9.27 is stuck undersized for 115s, current state active+undersized, last acting [0,2]
( h& }4 k5 H# ~     pg 9.28 is stuck undersized for 115s, current state active+undersized, last acting [2,0]4 ]: G# ]: _) T7 p/ ?
     pg 9.29 is stuck undersized for 115s, current state active+undersized, last acting [2,0]3 V" h2 O( W  g, b8 x0 }& I; w
     pg 9.2a is stuck undersized for 115s, current state active+undersized, last acting [1,2]' [" D$ W+ P- t/ y5 Z* l
     pg 9.2b is stuck undersized for 115s, current state active+undersized, last acting [2,0]6 H0 T" U  h8 u& `; n8 m
     pg 9.2c is stuck undersized for 115s, current state active+undersized, last acting [1,2]
' p' i9 X; ?: M+ T0 O! G     pg 9.2d is stuck undersized for 115s, current state active+undersized, last acting [0,2]# x7 i9 _* e! |& P
     pg 9.2e is stuck undersized for 115s, current state active+undersized, last acting [2,0]0 W6 q! l3 Y7 c; ^, n
     pg 9.2f is stuck undersized for 115s, current state active+undersized, last acting [1,2]
7 h0 L% S! ?% B1 h, `- e     pg 9.30 is stuck undersized for 115s, current state active+undersized, last acting [0,2]; Q& c6 ]2 j3 T
     pg 9.31 is stuck undersized for 115s, current state active+undersized, last acting [2,1]% }. T5 C$ \/ V3 Y0 o; N
     pg 9.32 is stuck undersized for 115s, current state active+undersized, last acting [2,0]9 s  _/ V- \% M
     pg 9.33 is stuck undersized for 115s, current state active+undersized, last acting [2,0]
0 Q* \, |/ C! }: W' w, C* N     pg 9.34 is stuck undersized for 115s, current state active+undersized, last acting [2,1]
. ]/ o6 x5 f- M8 I( K     pg 9.35 is stuck undersized for 115s, current state active+undersized, last acting [1,2]3 q3 c# a! k  B  W3 U. x
     pg 9.36 is stuck undersized for 115s, current state active+undersized, last acting [1,2]
$ ~9 S; Z4 D$ d7 x     pg 9.37 is stuck undersized for 115s, current state active+undersized, last acting [2,0]7 ]% G* ^* U) Q
     pg 9.38 is stuck undersized for 115s, current state active+undersized, last acting [0,2]: S5 b- B, r4 d& M8 J# Q
     pg 9.39 is stuck undersized for 115s, current state active+undersized, last acting [2,0]; D3 e1 Q) _2 X8 P& [
     pg 9.3a is stuck undersized for 115s, current state active+undersized, last acting [0,2]) I$ }. k0 l: j
     pg 9.3b is stuck undersized for 115s, current state active+undersized, last acting [1,2]( k; k# a. M  J% }  T
     pg 9.3c is stuck undersized for 115s, current state active+undersized, last acting [2,0]
" d5 i. u) B5 _1 y, W- w1 D! `     pg 9.3d is stuck undersized for 115s, current state active+undersized, last acting [2,1]
, O9 c, M' e6 G( N" I3 b; T     pg 9.3e is stuck undersized for 115s, current state active+undersized, last acting [1,2]! _4 B3 V/ k6 t6 g
     pg 9.3f is stuck undersized for 115s, current state active+undersized, last acting [1,2]0 L( I( _  c, \: ]" Q8 D" z6 `
[root@controller ~]# ceph pg dump |grep remapped5 p" n6 `4 t( n) T! N" f
dumped all- m$ C$ c1 G) j  d
[root@controller ~]# ceph osd pool ls
( ^: F; W1 H/ l  m. D* K; Q images
9 V( S0 n: G  a$ Z! h* e+ _( s4 q# E [root@controller ~]# ceph osd pool ls detail , y2 M* p% L0 `6 [* B
pool 9 'images' replicated size 3 min_size 2 crush_rule 0 object_hash rjenkins pg_num 64 pgp_num 64 autoscale_mode on last_change 7458 flags hashpspool stripe_width 0 application rbd! l6 p' @. P6 k  \, y3 I4 T
" a" a2 d3 u' |/ C
总结:# M: D& A2 u9 M2 b+ x
6 v7 [; J/ Q5 N4 o2 b
原因大致可以定位为是副本数设置有问题,因为本环境就两台设备,副本数size设置为3,导致同步失败。根据设备数设置相应的副本数,否者就会报此类错误。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 00:59 , Processed in 0.015176 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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