1、create-创建存储池

  1. ceph osd pool create <poolname> <int[0-]> {<int[0-]>} {replicated|erasure} {<erasure_code_profile>} {<ruleset>} {<int>}

2、delete-删除存储池

  1. ceph osd pool delete <poolname> {<poolname>} {--yes-i-really-really-mean-it}

3.get-获取存储池参数

  1. ceph osd pool get <poolname> size|min_size|crash_replay_interval|pg_num|pgp_num|crush_ruleset|auid|write_fadvise_dontneed

3-1 以下命令只适用于分层存储池:

  1. ceph osd pool get <poolname> hit_set_type|hit_set_period|hit_set_count|hit_set_fpp|target_max_objects|target_max_bytes|cache_target_dirty_ratio|cache_target_dirty_high_ratio|cache_target_full_ratio|cache_min_flush_age|cache_min_evict_age|min_read_recency_for_promote|hit_set_grade_decay_rate|hit_set_search_last_n

3-2 以下命令只适用于纠删码存储池:

  1. ceph osd pool get <poolname> erasure_code_profile

4、get-quota-获取存储池的对象或字节数限额

  1. ceph osd pool get-quota <poolname>

5、ls-用于罗列存储池

  1. ceph osd pool ls {detail}

6、mksnap-拍下存储池 的快照

  1. ceph osd pool mksnap <poolname> <snap>

7、rename-把存储池 重命名为

  1. ceph osd pool rename <poolname> <poolname>

8、rmsnap-删除存储池 的快照

  1. ceph osd pool rmsnap <poolname> <snap>

9、set-把存储池参数 的值设置为

  1. ceph osd pool set <poolname> size|min_size|crash_replay_interval|pg_num|pgp_num|crush_ruleset|hashpspool|nodelete|nopgchange|nosizechange|hit_set_type|hit_set_period|hit_set_count|hit_set_fpp|debug_fake_ec_pool|target_max_bytes|target_max_objects|cache_target_dirty_ratio|cache_target_dirty_high_ratio|cache_target_full_ratio|cache_min_flush_age|cache_min_evict_age|auid|min_read_recency_for_promote|write_fadvise_dontneed|hit_set_grade_decay_rate|hit_set_search_last_n<val> {--yes-i-really-mean-it}

10、set-quota-设置存储池的对象或字节数限额

  1. ceph osd pool set-quota <poolname> max_objects|max_bytes <val>

11、stats-获取所有或指定存储池的统计信息

  1. ceph osd pool stats {<name>}