|
|
使用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 |
|