将设为首页浏览此站
开启辅助访问 天气与日历 收藏本站联系我们切换到窄版

易陆发现论坛

 找回密码
 开始注册
查看: 274|回复: 3
收起左侧

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

[复制链接]
发表于 2021-7-26 10:19:36 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?开始注册

x
   [WRN] PG_DEGRADED: Degraded data redundancy: 64 pgs undersized
; d( G& A  g1 x4 Q# A) M6 O
+ T: |& i% y  O% X& L+ W" r3 `health: HEALTH_WARN  too many PGs per OSD (342 > max 250)5 W+ `) \) t9 i% g! w, e) [3 S

2 {' G9 [) {& y- B% F; J* }6 n  `. k' H
ceph --admin-daemon /var/run/ceph/4c1f752a-ed1a-11eb-8ce5-0025908471d6/ceph-mon.controller.asok config get mon_max_pg_per_osd
" X  F* m/ }) L7 g3 K9 C{
% o# N( c- w' ^! }    "mon_max_pg_per_osd": "1000"
0 ]- w  S/ K6 A}
6 U8 I+ I/ n) u: F1 G* S3 B. f0 c5 ?+ R9 ~1 Q4 d( s, ~$ T$ ^/ R
ceph --admin-daemon /var/run/ceph/4c1f752a-ed1a-11eb-8ce5-0025908471d6/ceph-osd.0.asok config get osd_max_pg_per_osd_hard_ratio7 [- R3 }0 F$ c4 t7 S8 \3 W
{9 O# m, s! k4 j( k0 x2 d  [0 @) ?) z
    "osd_max_pg_per_osd_hard_ratio": "3.000000"
% `, ?" t) U7 h4 n- S}2 R+ N5 z! T! r8 ^! v
2 {9 a! |! T5 @9 x1 A
调整pg数即可。8 }: R/ y5 ?7 I! a' ~9 r4 M) q

% K' [3 `1 x- f9 u
 楼主| 发表于 2021-7-26 10:21:54 | 显示全部楼层
[global]
9 @- h" H8 W5 j( \+ `5 K( g, v0 P+ {  Q) J5 j
mon_max_pg_per_osd = 800                              # < depends on you amount of PGs
( L6 [, l6 H  n) A$ s% V; v, `osd_max_pg_per_osd_hard_ratio = 10                # < default is 2, try to set at least 5. It will be
6 _5 A) i! n) H/ Z' |mon_allow_pool_delete = true                           # without it you can't remove a pool
 楼主| 发表于 2021-7-26 10:51:45 | 显示全部楼层
osd_max_pg_per_osd_hard_ratio = 10
 楼主| 发表于 2021-7-26 15:06:44 | 显示全部楼层
[root@controller ~]# ceph health detail
: M9 o9 ~+ j' G" fHEALTH_WARN Degraded data redundancy: 64 pgs undersized
  x( {/ L) E$ G1 q$ h: N* G[WRN] PG_DEGRADED: Degraded data redundancy: 64 pgs undersized, V" `* s# @% W1 U
    pg 9.d is stuck undersized for 115s, current state active+undersized, last acting [2,1]
5 a+ G0 @5 `7 Q' U4 `    pg 9.e is stuck undersized for 115s, current state active+undersized, last acting [2,1]
: t% f6 e6 P2 W: T7 _4 {- Z9 ]5 w: t    pg 9.f is stuck undersized for 115s, current state active+undersized, last acting [2,1]& w. [( D  j* I* X0 k
    pg 9.10 is stuck undersized for 115s, current state active+undersized, last acting [2,0]$ u' W. W$ n- y0 A
    pg 9.11 is stuck undersized for 115s, current state active+undersized, last acting [2,0]/ b5 C8 y' b4 @9 Q/ g  p
    pg 9.12 is stuck undersized for 115s, current state active+undersized, last acting [2,1]
$ v* F1 l1 ~6 `3 y9 c    pg 9.13 is stuck undersized for 115s, current state active+undersized, last acting [2,0]# R+ J+ P1 A* t5 }5 P
    pg 9.14 is stuck undersized for 115s, current state active+undersized, last acting [1,2]) r  }( G4 \' U( h6 L% z
    pg 9.15 is stuck undersized for 115s, current state active+undersized, last acting [2,1], o- \1 e/ V" e/ G2 M2 x. ^0 n3 ~
    pg 9.16 is stuck undersized for 115s, current state active+undersized, last acting [2,1]9 r+ A5 r+ j% i7 h0 M/ C
    pg 9.17 is stuck undersized for 115s, current state active+undersized, last acting [2,1]$ Z, q( ?  [: f9 ?
    pg 9.18 is stuck undersized for 115s, current state active+undersized, last acting [2,0]
5 s; `( P) F8 H" C    pg 9.19 is stuck undersized for 115s, current state active+undersized, last acting [0,2]  ~4 Y. F4 t3 \/ m) T
    pg 9.1a is stuck undersized for 115s, current state active+undersized, last acting [1,2]
! t, e& d% @1 t    pg 9.1b is stuck undersized for 115s, current state active+undersized, last acting [0,2]
; h0 o) D& @$ a/ l) X* ~( ?- L1 y0 |$ V    pg 9.1c is stuck undersized for 115s, current state active+undersized, last acting [0,2]
( ^4 V$ r3 B7 w. I; j1 \    pg 9.1d is stuck undersized for 115s, current state active+undersized, last acting [0,2]- U2 O+ O9 [5 _$ a
    pg 9.1e is stuck undersized for 115s, current state active+undersized, last acting [0,2]
, ~! k. I6 ~* j4 f' h+ s    pg 9.1f is stuck undersized for 115s, current state active+undersized, last acting [1,2]# H0 W  H5 b) {
    pg 9.20 is stuck undersized for 115s, current state active+undersized, last acting [0,2]. l" k5 b6 n; {- Z
    pg 9.21 is stuck undersized for 115s, current state active+undersized, last acting [0,2]
5 V0 p' B* q8 `7 {/ e  J    pg 9.22 is stuck undersized for 115s, current state active+undersized, last acting [2,1]
! g5 e1 S3 Y: `5 @6 z% |    pg 9.23 is stuck undersized for 115s, current state active+undersized, last acting [0,2]% u1 ~6 g# B+ [3 E" H
    pg 9.24 is stuck undersized for 115s, current state active+undersized, last acting [1,2]+ e" {+ k, Q& \6 o% V) u( r
    pg 9.25 is stuck undersized for 115s, current state active+undersized, last acting [0,2]
0 A- q/ f) `5 X$ @) X$ w8 C    pg 9.26 is stuck undersized for 115s, current state active+undersized, last acting [2,0]
, B% e4 ~/ P! [4 G  g* q    pg 9.27 is stuck undersized for 115s, current state active+undersized, last acting [0,2]
3 p! t; o4 [$ O5 m% n# G- T    pg 9.28 is stuck undersized for 115s, current state active+undersized, last acting [2,0]
8 [$ F0 g, J5 a# m  e8 w1 [5 t    pg 9.29 is stuck undersized for 115s, current state active+undersized, last acting [2,0]0 J! j' J5 e7 H
    pg 9.2a is stuck undersized for 115s, current state active+undersized, last acting [1,2]6 `4 ?0 Z+ r: W% o
    pg 9.2b is stuck undersized for 115s, current state active+undersized, last acting [2,0]
1 A# v! t" G: ?/ [6 q+ ~, D2 j9 A    pg 9.2c is stuck undersized for 115s, current state active+undersized, last acting [1,2]8 @) d* R7 M$ C/ V
    pg 9.2d is stuck undersized for 115s, current state active+undersized, last acting [0,2]
% P. j9 V& c, ]; [0 i    pg 9.2e is stuck undersized for 115s, current state active+undersized, last acting [2,0]
' r+ {8 H( D; B( b    pg 9.2f is stuck undersized for 115s, current state active+undersized, last acting [1,2]6 }/ ^, t6 z5 c& P
    pg 9.30 is stuck undersized for 115s, current state active+undersized, last acting [0,2]. q& {; q2 J& d
    pg 9.31 is stuck undersized for 115s, current state active+undersized, last acting [2,1]
1 r7 s- s, j' l& Y% {, c, {    pg 9.32 is stuck undersized for 115s, current state active+undersized, last acting [2,0]6 B6 E5 C  ^6 I& M" F4 b
    pg 9.33 is stuck undersized for 115s, current state active+undersized, last acting [2,0]
8 `% L0 c6 R+ z9 Q    pg 9.34 is stuck undersized for 115s, current state active+undersized, last acting [2,1]2 y% l/ d/ v- o" b7 o
    pg 9.35 is stuck undersized for 115s, current state active+undersized, last acting [1,2]
. v' r* E, D. @    pg 9.36 is stuck undersized for 115s, current state active+undersized, last acting [1,2]
. x/ ?$ a  y. o+ j. N( ]    pg 9.37 is stuck undersized for 115s, current state active+undersized, last acting [2,0]
: Y- k  j$ b1 M" B' a$ A    pg 9.38 is stuck undersized for 115s, current state active+undersized, last acting [0,2]4 p- y5 u% m1 h" p% L3 T" G
    pg 9.39 is stuck undersized for 115s, current state active+undersized, last acting [2,0]9 ?9 N  U" M& j  Y. J7 M7 ]6 X* J
    pg 9.3a is stuck undersized for 115s, current state active+undersized, last acting [0,2]# [/ i& {8 G1 R2 b9 Q2 r- q
    pg 9.3b is stuck undersized for 115s, current state active+undersized, last acting [1,2]! X+ _" `" t5 k7 p! @! C& l; s# k0 }9 j
    pg 9.3c is stuck undersized for 115s, current state active+undersized, last acting [2,0]
' h8 Z, \, ^0 A7 |' ~3 j$ e# S    pg 9.3d is stuck undersized for 115s, current state active+undersized, last acting [2,1]
2 H2 Y0 k2 h4 l% k- k    pg 9.3e is stuck undersized for 115s, current state active+undersized, last acting [1,2]5 w* M, L; |2 S  i" l
    pg 9.3f is stuck undersized for 115s, current state active+undersized, last acting [1,2]- L% Z- h) y6 a0 u, q6 j
[root@controller ~]# ceph pg dump |grep remapped
$ J: ?* p8 f# K9 pdumped all. u4 a8 A3 N7 Y+ c2 z6 b
[root@controller ~]# ceph osd pool ls' K5 w* f/ i0 Q( s
images
+ h! k. b! M* J% s4 c[root@controller ~]# ceph osd pool ls detail & Y% p$ s  z4 Y/ @6 g
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* l+ i" }% v. |3 r4 w8 o5 H
1 T( \" {0 S2 n9 `2 C- ]
总结:; l7 O; U( s4 |( G
/ x( p6 |( Z# D, p: F& h! P
原因大致可以定位为是副本数设置有问题,因为本环境就两台设备,副本数size设置为3,导致同步失败。根据设备数设置相应的副本数,否者就会报此类错误。
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

如有购买积分卡请联系497906712

QQ|返回首页|Archiver|手机版|小黑屋|易陆发现 点击这里给我发消息

GMT+8, 2021-9-27 02:16 , Processed in 0.049683 second(s), 24 queries .

Powered by LR.LINUX.cloud bbs168x X3.2 Licensed

© 2012-2022 Comsenz Inc.

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