天天看點

Cinder 配置ceph多後端

建立一個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多後端

繼續閱讀