创建一个pool
ceph osd pool create testpool 64 64
ceph osd pool set testpool size 1
ceph osd pool set testpool min_size 1
ceph osd pool ls detail

给cinder用户设置 pool的权限
ceph auth caps client.cinder mon 'allow r' osd 'allow class-read object_prefix rbd_children, allow rwx pool=volumes, allow rwx pool=volumes-cache, allow rwx pool=vms, allow rwx pool=vms-cache, allow rx pool=images, allow rx pool=images-cache, allow rwx pool=testpool'


修改cinder配置文件cinder.conf

Cinder 配置ceph多后端

 

 

重启cinder-volume服务

创建两个cinder tyep
cinder type-create ceph-default
cinder type-key ceph-default set volume_backend_name=rbd-1
cinder type-create ceph-testpool
cinder type-key ceph-testpool set volume_backend_name=testpool
cinder type-list

Cinder 配置ceph多后端

在界面创建时可进行选择

Cinder 配置ceph多后端

相关文章:

  • 2022-12-23
  • 2021-12-08
  • 2021-11-17
  • 2022-03-06
  • 2021-10-10
  • 2022-03-04
  • 2021-09-27
  • 2021-07-22
猜你喜欢
  • 2021-08-06
  • 2021-12-25
  • 2022-12-23
  • 2021-12-18
  • 2021-07-23
相关资源
相似解决方案