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

ceph 分布式存储出现告警 22 pgs not deep-scrubbed in time 解决办法:

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2024-10-19 05:00:07 | 显示全部楼层 |阅读模式
$ ceph -s$ d  y% S4 S( n1 V% i
  cluster:  l1 `  B- R  b! P
    id:     ce68aab8-8f46-11ed-88c0-ac1f6b3a30b90 Q* E8 e0 f' ~: v" D$ c0 V/ l; Z* h
    health: HEALTH_ERR
% O# z5 J: p% z+ c1 t            3 failed cephadm daemon(s)
8 D# f7 n* J% m6 I& m/ L            failed to probe daemons or devices0 V6 K: P# z6 k, A+ x
            2 mgr modules have failed
4 o5 ?, N5 e0 |4 N; |7 X$ ]2 h            mon gm268-1 is low on available space
& u/ C) y: m! h8 e0 J" `  e' g0 j            22 pgs not deep-scrubbed in time
; \1 |% V2 a2 i3 h8 E            1 slow ops, oldest one blocked for 5580 sec, mon.gm268-3 has slow ops5 b1 }, i3 S- y2 Z# U* \8 C
8 k" S2 M( V* S- v' _' G
  services:" E' n- f" N' V" s5 U% b2 K
    mon: 3 daemons, quorum gm268-2,gm268-3,gm268-1 (age 86m)" T0 i& ~0 C0 D/ |0 d4 v+ l( O( R) o
    mgr: gm268-2.zttohs(active, since 97m), standbys: gm268-3.sjagqo, gm268-1.jgdvxs$ W, k+ w$ ~& I5 X' M, v8 Z( W
    mds: cephfs:1 {0=cephfs.gm268-3.ppyjrl=up:active} 1 up:standby
3 B- p0 K+ ~0 x0 ?4 C2 W    osd: 41 osds: 41 up (since 93m), 41 in (since 21h); 182 remapped pgs, S$ W2 q4 p( O1 y5 e. I; ~4 d

# x5 a+ f7 R5 X& p) }. a9 u7 H  data:7 d* Y3 N. ]1 V7 C7 ]
    pools:   5 pools, 11265 pgs
/ O* [  Y; r! M+ h* f4 K' Q    objects: 42.48M objects, 115 TiB
' ~0 j+ g) u  t% O% B$ \    usage:   232 TiB used, 365 TiB / 597 TiB avail
% |$ X- W! y4 Q3 P    pgs:     785971/84967110 objects misplaced (0.925%)
$ C: a* r  C7 O$ F; n4 |             11083 active+clean$ y+ O" J& e" w- M' \- f# s, N
             181   active+remapped+backfill_wait
4 I& L6 g8 @/ |7 c             1     active+remapped+backfilling4 g: ~4 H4 |! h: c  z; H. T
% v, v2 F2 u8 z9 S
  io:/ [3 r3 K& p1 i4 P7 W- d
    recovery: 20 MiB/s, 6 objects/s
; l3 Y2 K  g8 x8 A0 D/ s; _+ {4 F- G7 X# Y8 s* k( \/ y
解决办法:7 t. b! Z% g( H/ K7 L- X. r

2 ^% r, L5 `' r. u( Z$ ceph config set global osd_deep_scrub_interval 3628800
5 T! K! f- G  r/ N7 x9 n" x; n6 v  O3 v6 n3 h6 A. W9 b

, m7 H/ D9 `* X9 P$ ceph config get  mon
- i# A- P( Y8 d# k( T! jWHO     MASK  LEVEL     OPTION                                 VALUE                  RO
  Y0 J- I$ Y7 U* }mon           advanced  auth_allow_insecure_global_id_reclaim  false                    9 v. w5 ]- ^9 ~7 R  n; d
global        basic     container_image                        quay.io/ceph/ceph:v15  *
8 W) ?/ e; }9 Aglobal        advanced  mon_max_pg_per_osd                     800                     
2 I" Z/ T' W6 H4 Xglobal        advanced  osd_deep_scrub_interval                3628800.000000           & {9 c) l! V9 m3 W2 g" V( G3 R
global        advanced  osd_pool_default_pg_autoscale_mode     off                     
9 \8 e- \/ }0 A6 Emon           advanced  public_network                         10.12.0.0/15           *
8 e- g3 j# x' T0 \7 ]9 e* _+ Z. s5 k  j6 I) q% |5 S

% X$ P1 \' j) i& N' K# J2 t; j$ ceph config get  osd# N" ^5 k8 x  u8 X' W0 e
WHO     MASK  LEVEL     OPTION                              VALUE                  RO/ }9 v! B4 F: F$ {6 I
global        basic     container_image                     quay.io/ceph/ceph:v15  *
$ e& R2 E% ]! g9 }global        advanced  mon_max_pg_per_osd                  800                     
  a) c# l) l& F% h4 ?( _9 P) U0 r; U+ bglobal        advanced  osd_deep_scrub_interval             3628800.000000           , ?( y  p: j# J" S) P
global        advanced  osd_pool_default_pg_autoscale_mode  off                     
9 m  t" W- v% y8 S4 `% Z& g
5 ]' i' z9 b) G$ a2 V3 n- Z7 V4 d. K/ \) a) O1 G0 b3 r
$ ceph -s
% l8 o2 K- R& e  cluster:
  l, B8 ^5 z  H! Y    id:     ce68aab8-8f46-11ed-88c0-ac1f6b3a30b9
3 p7 l& ~4 E7 C: E8 @' ~0 z/ \- e4 s  Q$ v    health: HEALTH_ERR
, H6 ]: k/ l/ ]- E0 V: h            3 failed cephadm daemon(s)2 d* K3 m2 p! w' o% e
            failed to probe daemons or devices' w, r: }/ I4 x2 {% }  [
            2 mgr modules have failed0 w/ f, B" P: c& k# F& j0 b7 A6 R' x
            mon gm268-1 is low on available space
; y8 a* Q. ]$ h: C/ g            1 slow ops, oldest one blocked for 5791 sec, mon.gm268-3 has slow ops
% U4 e  P& M% x0 B, z2 @. t# k
" O/ M% `7 Q/ X( O  S- V0 D  services:, V% S& v; T7 K5 ^) |1 b# }
    mon: 3 daemons, quorum gm268-2,gm268-3,gm268-1 (age 89m)! h, M7 P5 g1 t2 N, u
    mgr: gm268-2.zttohs(active, since 100m), standbys: gm268-3.sjagqo, gm268-1.jgdvxs
; c* F' ^) N5 H+ [! k9 p( \4 p+ N    mds: cephfs:1 {0=cephfs.gm268-3.ppyjrl=up:active} 1 up:standby/ g; H) W0 G$ N9 L: ~
    osd: 41 osds: 41 up (since 96m), 41 in (since 21h); 181 remapped pgs
) B1 z) ^. e' X( C$ ]2 h
, q- d$ Z* `# K! u" W% T  data:. [4 {9 Q8 d9 j; |5 y
    pools:   5 pools, 11265 pgs
6 g- U" L$ i( Z+ K/ @' Z    objects: 42.48M objects, 115 TiB/ C; a: u  ]. c* s5 g9 s( l
    usage:   232 TiB used, 365 TiB / 597 TiB avail
& {: I  h$ K* a: a$ P9 S    pgs:     784873/84967110 objects misplaced (0.924%)
# ^3 b9 b- V) e& g             11084 active+clean: C. @# h' z' j! a
             180   active+remapped+backfill_wait; h8 `3 |  K) v# R
             1     active+remapped+backfilling
  ~: I3 R; N7 w& {; F$ G6 U1 K! w" v! ^2 i3 h
  io:
+ n: n, E. G% b) h' \- E2 t    recovery: 20 MiB/s, 6 objects/s1 u4 |/ q" s* z& A, o4 k9 W, ~; I
- D, W" \& r5 u, _
* }5 A( U( f; O6 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 00:04 , Processed in 0.015795 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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