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

扫描pg卷

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2021-12-5 22:20:50 | 显示全部楼层 |阅读模式
使用for循环扫描:4 u; D$ v. Q% ?# i1 ?( `
for i in `ceph pg ls-by-pool vms |tail -n +2|awk '{print $1}'`;do echo -n "$i: ";ceph pg $i query |grep num_large_omap_objects | head -1 | awk '{print $2}';done  0 C3 C3 Q7 b4 [, k( Y0 g1 S' S

; Q7 o. P! [- T. ^: _( B
. n# q+ K/ T; D9 O4 K( G7 f+ A- u for i in `ceph pg ls-by-pool vms |tail -n +2|awk '{print $1}'`;do echo -n "$i: ";ceph pg $i query |grep num_large_omap_objects | head -1 | awk '{print $2}';done  | grep ": 1"
. e+ l( N- Q: _: o" Z$ r4 ^. Jno valid command found; 10 closest matches:
& B0 {. e) ?1 X% f+ |pg scrub <pgid>
" F! |/ y) n) J) Q/ Z5 P, H5 _pg deep-scrub <pgid>" \) q+ u" w% T* V" P
pg force-recovery <pgid> [<pgid>...]$ V2 J' H, D  @5 j/ l" u
pg cancel-force-recovery <pgid> [<pgid>...]0 u) v2 w2 Y2 d
pg debug unfound_objects_exist|degraded_pgs_exist- q/ \1 Y! ?$ A
pg ls {<int>} {<states> [<states>...]}) o2 F( I' V0 s, Y
pg dump_stuck {inactive|unclean|stale|undersized|degraded [inactive|unclean|stale|undersized|degraded...]} {<int>}
6 {& |$ v1 p, p# D: Upg ls-by-primary <osdname (id|osd.id)> {<int>} {<states> [<states>...]}& S2 R# U' T5 [4 M$ ?$ T
pg ls-by-osd <osdname (id|osd.id)> {<int>} {<states> [<states>...]}
+ ]# d- D4 Z" y/ upg dump_pools_json  X' j4 H( D0 y
Error EINVAL: invalid command
2 R2 ~7 e' q; n! P8 |& U[root@controller ~]#
. K! K$ C# G, N+ r8 n/ b" R- x; q
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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