在Openstack云计算平台下,采用了开源项目cinder来作为云硬盘管理服务。cinder当前可以支持同时配置使用多个存储后端,本文简单的介绍下多个存储后端的配置使用方法。
cinder.conf:
scheduler_driver = cinder.scheduler.filter_scheduler.FilterScheduler
enabled_backends = ceph, nbs
[ceph]
volume_driver=cinder.volume.drivers.rbd.RBDDriver
volume_backend_name=CEPH
rbd_pool = volumes
rbd_ceph_conf = /etc/ceph/ceph.conf
rbd_flatten_volume_from_snapshot = false
rbd_max_clone_depth = 5
rbd_store_chunk_size = 4
rados_connect_timeout = -1
[nbs]
volume_driver=cinder.volume.drivers.nbs.driver.NBSLocalVolumeDriver
volume_backend_name=NBS
cinder type-create ceph
cinder type-key {ceph_typeid} set volume_backend_name=CEPH
cinder type-create nbs
cinder type-key {lvm_typeid} set volume_backend_name=NBS
cinder create --volume_type ceph --display_name test_ceph_backend 1
cinder create --volume_type nbs --display_name test_nbs_backend 1
notice
cinder-manage volume host --currentname CURRENTNAME --newname CURRENTNAME@BACKEND
reference
网易云新用户大礼包:https://www.163yun.com/gift
本文来自网易实践者社区,经作者管强授权发布。