使用Ceph-deploy完成RGW服务部署后(最好是在部署RGW服务前建立如下这些pool),使用sudo ceph osd lspools 命令,会发现RGW自动以默认参数创建了N个rgw相关的pool。 然而这些pool的参数按默认是不符合要求。

因此需要重建这些pool。 步骤如下:

1. 删除Pool :

sudo ceph osd pool delete .rgw.root .rgw.root --yes-i-really-really-mean-it

sudo ceph osd pool delete default.rgw.control default.rgw.control --yes-i-really-really-mean-it

sudo ceph osd pool delete default.rgw.data.root default.rgw.data.root --yes-i-really-really-mean-it
sudo ceph osd pool delete default.rgw.gc default.rgw.gc --yes-i-really-really-mean-it
sudo ceph osd pool delete default.rgw.log default.rgw.log --yes-i-really-really-mean-it
sudo ceph osd pool delete default.rgw.users.uid default.rgw.users.uid --yes-i-really-really-mean-it
sudo ceph osd pool delete default.rgw.users.keys default.rgw.users.keys --yes-i-really-really-mean-it
sudo ceph osd pool delete default.rgw.meta default.rgw.meta --yes-i-really-really-mean-it
sudo ceph osd pool delete default.rgw.buckets.index default.rgw.buckets.index --yes-i-really-really-mean-it
sudo ceph osd pool delete default.rgw.buckets.data default.rgw.buckets.data --yes-i-really-really-mean-it
sudo ceph osd pool delete default.rgw.buckets.non-ec.bak default.rgw.buckets.non-ec.bak --yes-i-really-really-mean-it

2. 按指定参数创建Pool

sudo ceph osd pool create .rgw.root 1024 1024 replicated rack_replicated_ruleset
sudo ceph osd pool create default.rgw.control 1024 1024 replicated rack_replicated_ruleset
sudo ceph osd pool create default.rgw.data.root 1024 1024 replicated rack_replicated_ruleset
sudo ceph osd pool create default.rgw.gc 1024 1024 replicated rack_replicated_ruleset
sudo ceph osd pool create default.rgw.log 1024 1024 replicated rack_replicated_ruleset
sudo ceph osd pool create default.rgw.users.uid 1024 1024 replicated rack_replicated_ruleset
sudo ceph osd pool create default.rgw.users.keys 1024 1024 replicated rack_replicated_ruleset
sudo ceph osd pool create default.rgw.meta 1024 1024 replicated rack_replicated_ruleset
sudo ceph osd pool create default.rgw.buckets.index 1024 1024 replicated rack_replicated_ruleset
sudo ceph osd pool create default.rgw.buckets.data 8192 8192 replicated rack_replicated_ruleset
sudo ceph osd pool create default.rgw.buckets.non-ec 1024 1024 replicated rack_replicated_ruleset

05-11 11:03