1、设置存储池副本数
$ ceph osd pool get cephrbd size
$ ceph osd pool set cephrbd size 3
2. 打印存储池列表
$ ceph osd lspools
3、创建 删除存储池
创建pool
$ ceph osd pool create testPool 64
重命名pool
$ ceph osd pool rename testPool amizPool
获取pool 副本数
$ ceph osd pool get amizPool size
设置pool 副本数
$ ceph osd pool set amizPool size 3
获取pool pg_num/pgp_num
$ ceph osd pool get amizPool pg_num
$ ceph osd pool get amizPool pgp_num
设置pool pg_num/pgp_num
$ ceph osd pool set amizPool pg_num 128
$ ceph osd pool set amizPool pgp_num 128
删除存储池
$ ceph osd pool delete amizPool amizPool --yes-i-really-really-mean-it
删除池提示错误
Error EBUSY: pool 'testpool' is in use by CephFS
$ ceph mds remove_data_pool testpool
$ ceph osd pool delete testpool testpool --yes-i-really-really-mean-it
4、设置查看存储池pool配额
查看存储池pool 配额
# ceph osd pool get-quota poolroom1
quotas for pool 'poolroom1':
max objects: N/A
max bytes : 6144MB # 存储池pool配额 6G