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

扫描pg卷

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2021-12-5 22:20:50 | 显示全部楼层 |阅读模式
使用for循环扫描:
2 E; a. |. Q1 ^# A$ afor 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  7 y( }% I3 [4 A7 C% q/ j" Z( N

% W7 ?' `( i/ i" n0 V8 ~' q4 \$ A4 H0 A9 P
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") m/ K2 x+ q% Z* S
no valid command found; 10 closest matches:
# Z8 W& \7 ]& {, r' Y$ }pg scrub <pgid>$ F# F1 K2 O' g
pg deep-scrub <pgid>
9 C& v6 t) \+ g6 C1 \; g5 z  w8 Vpg force-recovery <pgid> [<pgid>...]) w, F4 E" ]. F4 C7 z+ Q
pg cancel-force-recovery <pgid> [<pgid>...]
# C5 c- J( K3 e& Hpg debug unfound_objects_exist|degraded_pgs_exist
( B. S9 I3 Y7 F+ t* |pg ls {<int>} {<states> [<states>...]}
+ o" D; A( R' @/ _- A+ F& Xpg dump_stuck {inactive|unclean|stale|undersized|degraded [inactive|unclean|stale|undersized|degraded...]} {<int>}0 f% h2 b8 X% n- m; E4 w
pg ls-by-primary <osdname (id|osd.id)> {<int>} {<states> [<states>...]}. X/ e, O! \; u) C, l3 H' Z7 p
pg ls-by-osd <osdname (id|osd.id)> {<int>} {<states> [<states>...]}' T6 g3 s7 B6 S# c: O
pg dump_pools_json1 H! s6 t0 i; B. E
Error EINVAL: invalid command
6 V$ M, A3 M% d+ y[root@controller ~]# % o$ [; E; B- G' o. n; W4 a
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 00:07 , Processed in 0.021093 second(s), 25 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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