八.pool

在mon或client节点上

1.创建池

sudo ceph osd pool create rbd1 100 100
或
sudo ceph osd pool create rbd2 100

2.查看信息

sudo ceph osd dump

3.查看副本数

sudo ceph osd dump | grep "replicated size"

4.删除池

sudo ceph osd pool delete rbd1 rbd1 --yes-i-really-really-mean-it

5.给池改名称

sudo ceph osd pool rename rbd1 rbd3

7.设置副本数

sudo ceph osd pool set rbd1 size 3  #默认副本数是3

8.设置pgp_num

sudo ceph osd pool set rbd1 pg_num 110  #pg_num 只能往上调,不能往下调
sudo ceph osd pool set rbd1 pgp_num 110  #等于或小于pg_num

你可能感兴趣的:(八.pool)