1、debug-可显示归置组的调试信息

  1. ceph pg debug unfound_objects_exist|degraded_pgs_exist

2、deep-scrub-开始深度洗刷归置组

  1. ceph pg deep-scrub <pgid>

3、dump-可显示归置组图的人类可读版本(显示为纯文本时只有 ‘all’ 合法)

  1. ceph pg dump {all|summary|sum|delta|pools|osds|pgs|pgs_brief}[{all|summary|sum|delta|pools|osds|pgs|pgs_brief...]}

4、dump_json-只以 json 格式显示归置组图的人类可读版本

  1. ceph pg dump_json {all|summary|sum|delta|pools|osds|pgs|pgs_brief}[{all|summary|sum|delta|pools|osds|pgs|pgs_brief...]}

5、dump_pools_json-只以 json 格式显示归置组存储池信息

  1. ceph pg dump_pools_json

6、dump_stuck-显示卡顿归置组的信息6、dump_stuck-显示卡顿归置组的信息

  1. ceph pg dump_stuck {inactive|unclean|stale|undersized|degraded[inactive|unclean|stale|undersized|degraded...]}{<int>}

7、force_create_pg-强制创建归置组

  1. ceph pg force_create_pg <pgid>

8、getmap-获取二进制归置组图,保存到 -o/stdout

  1. ceph pg getmap

9、ls-可根据指定存储池、 OSD 、状态罗列对应的归置组

  1. ceph pg ls {<int>} {active|clean|down|replay|splitting|scrubbing|scrubq|degraded|inconsistent|peering|repair|recovery|backfill_wait|incomplete|stale|remapped|deep_scrub|backfill|backfill_toofull|recovery_wait|undersized[active|clean|down|replay|splitting|scrubbing|scrubq|degraded|inconsistent|peering|repair|recovery|backfill_wait|incomplete|stale|remapped|deep_scrub|backfill|backfill_toofull|recovery_wait|undersized...]}

10、ls-by-osd-用于罗列指定 OSD 上的归置组

  1. ceph pg ls-by-osd <osdname (id|osd.id)> {<int>}{active|clean|down|replay|splitting|scrubbing|scrubq|degraded|inconsistent|peering|repair|recovery|backfill_wait|incomplete|stale|remapped|deep_scrub|backfill|backfill_toofull|recovery_wait|undersized[active|clean|down|replay|splitting|scrubbing|scrubq|degraded|inconsistent|peering|repair|recovery|backfill_wait|incomplete|stale|remapped|deep_scrub|backfill|backfill_toofull|recovery_wait|undersized...]}

11、ls-by-pool-用于罗列存储池 [poolname | poolid] 内的归置组

  1. ceph pg ls-by-pool <poolstr> {<int>} {active|clean|down|replay|splitting|scrubbing|scrubq|degraded|inconsistent|peering|repair|recovery|backfill_wait|incomplete|stale|remapped|deep_scrub|backfill|backfill_toofull|recovery_wait|undersized[active|clean|down|replay|splitting|scrubbing|scrubq|degraded|inconsistent|peering|repair|recovery|backfill_wait|incomplete|stale|remapped|deep_scrub|backfill|backfill_toofull|recovery_wait|undersized...]}

12、ls-by-primary-可罗列主 OSD 为 [osd] 的归置组

  1. ceph pg ls-by-primary <osdname (id|osd.id)> {<int>}{active|clean|down|replay|splitting|scrubbing|scrubq|degraded|inconsistent|peering|repair|recovery|backfill_wait|incomplete|stale|remapped|deep_scrub|backfill|backfill_toofull|recovery_wait|undersized[active|clean|down|replay|splitting|scrubbing|scrubq|degraded|inconsistent|peering|repair|recovery|backfill_wait|incomplete|stale|remapped|deep_scrub|backfill|backfill_toofull|recovery_wait|undersized...]}

13、map-显示归置组到 OSD 的映射关系

  1. ceph pg map <pgid>

14、repair-开始修复归置组

  1. ceph pg repair <pgid>

15、scrub-开始洗刷归置组

  1. ceph pg scrub <pgid>

16、set_full_ratio-设置认为归置组占满的比率

  1. ceph pg set_full_ratio <float[0.0-1.0]>

17、set_nearfull_ratio-设置认为归置组将要占满的比率

  1. ceph pg set_nearfull_ratio <float[0.0-1.0]>

18.stat-显示归置组状态

  1. ceph pg stat