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

扫描pg卷

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2021-12-5 22:20:50 | 显示全部楼层 |阅读模式
使用for循环扫描:
7 L. U0 h4 F; Z, [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  
+ f7 |$ a# L$ b. b4 `" E- ~: ~* }4 T6 Z0 u

& |( ^( {1 b) k8 h& H  |# `4 K$ f 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"- B: V) I/ H$ M: D0 n; q
no valid command found; 10 closest matches:
( V7 U$ ^" j2 O* Y2 Q! u0 O" f1 |pg scrub <pgid>
: u4 T* T; A) H3 Ipg deep-scrub <pgid>7 O8 X3 c% D) Y  _* N4 _9 j
pg force-recovery <pgid> [<pgid>...]
5 w, o4 u  c3 E: Y- Xpg cancel-force-recovery <pgid> [<pgid>...]
5 c" U" i+ f, S% Y8 l( S9 Spg debug unfound_objects_exist|degraded_pgs_exist3 Q( @- J& s; r  d
pg ls {<int>} {<states> [<states>...]}
; M1 R0 @1 B+ a, b  N, hpg dump_stuck {inactive|unclean|stale|undersized|degraded [inactive|unclean|stale|undersized|degraded...]} {<int>}
& z  p" f; l  y) R* Jpg ls-by-primary <osdname (id|osd.id)> {<int>} {<states> [<states>...]}7 h# n3 l* a& j4 W& z7 X
pg ls-by-osd <osdname (id|osd.id)> {<int>} {<states> [<states>...]}
: \0 ^3 s3 S9 s5 r/ Z8 w; }pg dump_pools_json% S( @9 F% j1 V! h  k: b
Error EINVAL: invalid command5 e# b8 V* v; c9 O% G0 T
[root@controller ~]#
; S9 p) @6 u1 J" @! P. @
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 02:02 , Processed in 0.016636 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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