找回密码
 注册
查看: 3240|回复: 3

[WRN] PG_DEGRADED: Degraded data redundancy: 64 pgs undersized

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2021-7-26 10:19:36 | 显示全部楼层 |阅读模式
   [WRN] PG_DEGRADED: Degraded data redundancy: 64 pgs undersized
: T& n  S3 n) T& O- I3 E( T+ \! P) m0 Z% W! f- L
health: HEALTH_WARN  too many PGs per OSD (342 > max 250), n1 ~( h$ d9 Y1 S6 v! m
! G+ Y1 B0 P! q% K

8 z; z0 r5 p' s5 ^ceph --admin-daemon /var/run/ceph/4c1f752a-ed1a-11eb-8ce5-0025908471d6/ceph-mon.controller.asok config get mon_max_pg_per_osd, ~# Z8 R  ?8 x- t# ?4 v
{9 \& t' I% u. o+ P% f: U! g
    "mon_max_pg_per_osd": "1000"1 @1 A3 h# V, o- _% y/ O
}' @8 X: n! t) J# O
5 V9 e1 m3 r3 y; ]
ceph --admin-daemon /var/run/ceph/4c1f752a-ed1a-11eb-8ce5-0025908471d6/ceph-osd.0.asok config get osd_max_pg_per_osd_hard_ratio
1 x- ^+ ]9 T2 U{
# p. G* i6 J8 w: S" j# k    "osd_max_pg_per_osd_hard_ratio": "3.000000"
3 q0 F/ o3 g& p  v$ k! c3 P}: z7 t2 }2 X' d
+ N' X. P/ Q8 ~
调整pg数即可。  \3 E. h7 b$ \' U8 G* m

1 V2 v4 c0 @$ Z9 ^7 {$ @

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2021-7-26 10:21:54 | 显示全部楼层
[global]& t% m" g+ S( b8 L1 x; i

0 N2 ]. G2 P6 f& F: x* Smon_max_pg_per_osd = 800                              # < depends on you amount of PGs0 z2 c8 i$ B0 d. v; v
osd_max_pg_per_osd_hard_ratio = 10                # < default is 2, try to set at least 5. It will be
6 ~! j" L! l( pmon_allow_pool_delete = true                           # without it you can't remove a pool

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2021-7-26 10:51:45 | 显示全部楼层
osd_max_pg_per_osd_hard_ratio = 10

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2021-7-26 15:06:44 | 显示全部楼层
[root@controller ~]# ceph health detail
5 B! |% m* k4 ^; s2 A) b. h, hHEALTH_WARN Degraded data redundancy: 64 pgs undersized
* n: E" C2 A6 X1 o+ P. N[WRN] PG_DEGRADED: Degraded data redundancy: 64 pgs undersized
, I5 S1 u  [' S" d9 i6 p% u6 Y5 m    pg 9.d is stuck undersized for 115s, current state active+undersized, last acting [2,1]  w9 @/ V  u" M. |6 X- q* w, t
    pg 9.e is stuck undersized for 115s, current state active+undersized, last acting [2,1]
( Z7 [4 e/ G8 O! c    pg 9.f is stuck undersized for 115s, current state active+undersized, last acting [2,1]
5 D  y8 z4 s! c0 K    pg 9.10 is stuck undersized for 115s, current state active+undersized, last acting [2,0]* N. F2 t# D* w7 I. N
    pg 9.11 is stuck undersized for 115s, current state active+undersized, last acting [2,0]/ v. T  E# ?% n; A) l- ?
    pg 9.12 is stuck undersized for 115s, current state active+undersized, last acting [2,1]- D# T0 x& O9 K/ l! q. a6 i/ v2 b; z
    pg 9.13 is stuck undersized for 115s, current state active+undersized, last acting [2,0]
, L- n. n  l$ Y3 ~  h: }    pg 9.14 is stuck undersized for 115s, current state active+undersized, last acting [1,2]
/ J  u. f  a4 u0 G    pg 9.15 is stuck undersized for 115s, current state active+undersized, last acting [2,1]
/ F: S3 R9 t  b* R9 w$ [; y% t    pg 9.16 is stuck undersized for 115s, current state active+undersized, last acting [2,1]
5 y9 h- f' @( C4 |    pg 9.17 is stuck undersized for 115s, current state active+undersized, last acting [2,1]
1 h( c" V4 r$ a! f- [( ~9 `* Z: G    pg 9.18 is stuck undersized for 115s, current state active+undersized, last acting [2,0]1 _# ]9 J3 b/ @  E# m! Q) B
    pg 9.19 is stuck undersized for 115s, current state active+undersized, last acting [0,2]- r& q3 k( ?9 n/ X( D1 z! O! K
    pg 9.1a is stuck undersized for 115s, current state active+undersized, last acting [1,2]' U! ~+ y+ T6 ?
    pg 9.1b is stuck undersized for 115s, current state active+undersized, last acting [0,2]( g8 Y6 M/ y0 }  u
    pg 9.1c is stuck undersized for 115s, current state active+undersized, last acting [0,2]
. a9 G8 v6 M+ A! B    pg 9.1d is stuck undersized for 115s, current state active+undersized, last acting [0,2]
9 l0 S" ~) V- t: Y5 Z    pg 9.1e is stuck undersized for 115s, current state active+undersized, last acting [0,2]7 R0 D8 P9 W6 B
    pg 9.1f is stuck undersized for 115s, current state active+undersized, last acting [1,2]
3 H6 k& _& p: q0 O: z, W: K    pg 9.20 is stuck undersized for 115s, current state active+undersized, last acting [0,2]9 [8 D( q" M# V" D0 s
    pg 9.21 is stuck undersized for 115s, current state active+undersized, last acting [0,2]1 G0 w+ X) j2 ^+ P$ H
    pg 9.22 is stuck undersized for 115s, current state active+undersized, last acting [2,1]
6 j) U/ T2 C1 ~- Y6 d2 f' l) y5 U    pg 9.23 is stuck undersized for 115s, current state active+undersized, last acting [0,2]
8 w0 w8 E3 s& X9 L( V    pg 9.24 is stuck undersized for 115s, current state active+undersized, last acting [1,2]
1 W" b7 l9 l- G5 ]* J5 |  j    pg 9.25 is stuck undersized for 115s, current state active+undersized, last acting [0,2]: I; |/ Z4 e2 ?2 Q8 p0 P
    pg 9.26 is stuck undersized for 115s, current state active+undersized, last acting [2,0]; x0 t; h$ i& ^+ k1 P4 f6 A2 p
    pg 9.27 is stuck undersized for 115s, current state active+undersized, last acting [0,2]
9 G) P9 A% Q* Z$ V0 I    pg 9.28 is stuck undersized for 115s, current state active+undersized, last acting [2,0]3 @2 U/ z$ F% e; \9 I, I
    pg 9.29 is stuck undersized for 115s, current state active+undersized, last acting [2,0]/ O$ A9 t( A& t8 i' }
    pg 9.2a is stuck undersized for 115s, current state active+undersized, last acting [1,2]
: h0 f( a2 k" C    pg 9.2b is stuck undersized for 115s, current state active+undersized, last acting [2,0]
5 W4 O, y, ]' W! Z) k- x    pg 9.2c is stuck undersized for 115s, current state active+undersized, last acting [1,2]
/ S/ ?4 Q& Q: F6 _# f    pg 9.2d is stuck undersized for 115s, current state active+undersized, last acting [0,2]* y1 @% {2 x6 h7 V7 s; B
    pg 9.2e is stuck undersized for 115s, current state active+undersized, last acting [2,0]
6 E- C6 w4 R6 [# Y; T    pg 9.2f is stuck undersized for 115s, current state active+undersized, last acting [1,2]
8 P! N7 @6 |: [) S    pg 9.30 is stuck undersized for 115s, current state active+undersized, last acting [0,2]
/ E5 h- ?. g& |7 s    pg 9.31 is stuck undersized for 115s, current state active+undersized, last acting [2,1]! ]) o6 H( P1 |! v' ]1 i
    pg 9.32 is stuck undersized for 115s, current state active+undersized, last acting [2,0]6 {/ Q7 j. P7 Z3 U9 _8 h. S* V8 z* E
    pg 9.33 is stuck undersized for 115s, current state active+undersized, last acting [2,0]' v  G8 _$ z% i3 m6 P  `* K# ^
    pg 9.34 is stuck undersized for 115s, current state active+undersized, last acting [2,1]7 v1 T4 d) _. d) |& s) g* A
    pg 9.35 is stuck undersized for 115s, current state active+undersized, last acting [1,2]
4 J5 M( E$ Y& c. Y! `    pg 9.36 is stuck undersized for 115s, current state active+undersized, last acting [1,2]
* r$ i6 {* _/ l2 D. s4 L/ l    pg 9.37 is stuck undersized for 115s, current state active+undersized, last acting [2,0]7 n! ]( j) n  G' d
    pg 9.38 is stuck undersized for 115s, current state active+undersized, last acting [0,2]
* ^2 P  M  {9 [; H4 V1 g& q    pg 9.39 is stuck undersized for 115s, current state active+undersized, last acting [2,0]8 M/ x% c* R  ?2 D
    pg 9.3a is stuck undersized for 115s, current state active+undersized, last acting [0,2]$ V5 J3 w3 g, I" E
    pg 9.3b is stuck undersized for 115s, current state active+undersized, last acting [1,2]: I$ @$ i; {6 j
    pg 9.3c is stuck undersized for 115s, current state active+undersized, last acting [2,0]
/ [# N1 c4 V9 f2 N3 B: r7 R    pg 9.3d is stuck undersized for 115s, current state active+undersized, last acting [2,1]
( T8 C! I, o4 Q% E& {! T. J    pg 9.3e is stuck undersized for 115s, current state active+undersized, last acting [1,2]7 D1 y! Z0 H  x
    pg 9.3f is stuck undersized for 115s, current state active+undersized, last acting [1,2]# A4 L9 k2 ~$ t; g4 c
[root@controller ~]# ceph pg dump |grep remapped
; f: l  s8 e8 t& H4 M' P; A' jdumped all
: J$ }! g7 N4 F: {' w; T[root@controller ~]# ceph osd pool ls1 E7 o3 x, K' o
images
6 q  N7 E# S1 K' M1 l7 l( o[root@controller ~]# ceph osd pool ls detail
/ |2 q/ e2 N  Z  j4 s- @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" b# ]% g" F4 _! P
- g. T6 `" ~6 Q; ]- f
总结:; \! E+ M0 j  f1 T2 ?

$ B& B1 d% u' I( P: z' r6 Q原因大致可以定位为是副本数设置有问题,因为本环境就两台设备,副本数size设置为3,导致同步失败。根据设备数设置相应的副本数,否者就会报此类错误。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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