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

扫描pg卷

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2021-12-5 22:20:50 | 显示全部楼层 |阅读模式
使用for循环扫描:' }) _& h( U+ R7 m9 Z# M- U3 E
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  5 A/ N! ^; x* I# O9 r4 \
9 P( p! l" t# g0 _6 U; g5 ~

6 U1 @8 D! z) E, S3 l/ ?2 _ 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"  A9 ~4 g3 S( b1 U& R
no valid command found; 10 closest matches:% V0 t  }- @3 Z- ^. w( H8 g
pg scrub <pgid>! s4 g1 ?6 u' X# p1 f
pg deep-scrub <pgid>/ f5 Q0 n" x  ~% g
pg force-recovery <pgid> [<pgid>...]+ D+ [- T5 O) E  ]+ j' k2 _/ ^  m. _
pg cancel-force-recovery <pgid> [<pgid>...]( `: V+ X4 g& q: W% ]) ^5 o! b
pg debug unfound_objects_exist|degraded_pgs_exist) y! s3 f( s0 W2 s9 j$ ^+ C! p, m* h
pg ls {<int>} {<states> [<states>...]}
9 s0 d! W% I4 {! W! ]pg dump_stuck {inactive|unclean|stale|undersized|degraded [inactive|unclean|stale|undersized|degraded...]} {<int>}6 f( y, }# z# i
pg ls-by-primary <osdname (id|osd.id)> {<int>} {<states> [<states>...]}
6 G+ |6 I) R" O+ e% i1 dpg ls-by-osd <osdname (id|osd.id)> {<int>} {<states> [<states>...]}1 g: `" T9 N) K' Y; P
pg dump_pools_json% R( p1 s6 K8 F4 D% w
Error EINVAL: invalid command
  b3 A/ ~( Q9 P. P1 U# _[root@controller ~]#
5 M1 v8 e) q" c- L1 t  c8 G
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 04:21 , Processed in 0.017039 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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