首页 > 其他 > 详细

Cinder - multi glusterfs volume backends

时间:2015-01-10 18:23:59      阅读:832      评论:0      收藏:0      [点我收藏+]

cinder支持后端多种backends共存,确实很适合用户的需求。最近我们公司自己的内部openstack平台后端有sata、ssd的glusterfs volume,研究了下cinder multi backends的配置。实际上主要就是cinder.conf了。


cinder.conf 配置文件如下:

[DEFAULT]
enabled_backends = glusterfs1,glusterfs2  # 启用两种glusterfs volume
default_volume_type = glusterfs1  # 默认sata volume
[glusterfs1] 
glusterfs_shares_config=/etc/cinder/glusterfs_shares1
volume_driver=cinder.volume.drivers.glusterfs.GlusterfsDriver
volume_backend_name=openstack  # 待会设置cinder type key的时候用到
[glusterfs2]
glusterfs_shares_config=/etc/cinder/glusterfs_shares2
volume_driver=cinder.volume.drivers.glusterfs.GlusterfsDriver
volume_backend_name=ssd

[root@controller001 cinder(keystone_admin)]# cat glusterfs_shares1
gluster002.sh.99cloud.net:/openstack   # sata volume路径
[root@controller001 cinder(keystone_admin)]# cat glusterfs_shares2
gluster002.sh.99cloud.net:/ssd    # ssd volume路径

cinder type-create sata  #  cinder sata类型
cinder type-key sata set volume_backend_name=openstack  #为sata类型设置key value,跟上面的cinder.conf里面的配置文件对应的
cinder type-create ssd  # cinder ssd类型
cinder type-key ssd set volume_backend_name=ssd # 为ssd类型设置key value


参考资料:redhat openstack认证培训教材



本文出自 “the-way-to-cloud” 博客,请务必保留此出处http://iceyao.blog.51cto.com/9426658/1601613

Cinder - multi glusterfs volume backends

原文:http://iceyao.blog.51cto.com/9426658/1601613

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!