ceph 存储池pool操作

1、列出存储池
ceph osd lspools
2、创建存储池
ceph osd pool create poolname pg-num pgp-num replicated crush-ruleset-name expected-num-objects //副本方式
ceph osd pool create poolname pg-num pgp-num erasure erasure-code-profile crush-ruleset-name expected-num-objects
//poolname 要唯一
3、设置存储池配额
ceph osd pool set-quota poolname max-objects max-bytes
4、删除存储池
ceph osd pool delete poolname
5、重命名存储池
ceph osd pool rename {current-pool-name} {new-pool-name}
6、存储池统计信息
rados df
7、存储池快照
ceph osd pool mksnap poolname snapname
8、删除存储池快照
ceph osd pool rmsnap poolname snapname
9、查看存储池配置
ceph osd pool get poolname [key]

你可能感兴趣的:(ceph 存储池pool操作)