cinder glusterfs配置操作

Posted blog-lhong

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了cinder glusterfs配置操作相关的知识,希望对你有一定的参考价值。

cinder glusterfs配置操作

##
########cinder 节点配置
echo [glusterfs]
volume_driver = cinder.volume.drivers.glusterfs.GlusterfsDriver
glusterfs_shares_config = /etc/cinder/glusterfs_shares
glusterfs_mount_point_base = $state_path/mnt_gluster
volume_backend_name=glusterfs_volumes
 >>/etc/cinder/cinder.conf
tail /etc/cinder/cinder.conf

sed -i s/^enabled_backends.*=/enabled_backends=glusterfs,/g /etc/cinder/cinder.conf
grep enabled_backends /etc/cinder/cinder.conf

echo localhost:/gv1 >/etc/cinder/glusterfs_shares

chown root.cinder /etc/cinder/glusterfs_shares
chmod 640 /etc/cinder/glusterfs_shares

systemctl restart openstack-cinder-volume.service 


####主节点 操作

source /root/admin-openrc.sh
cinder service-list |grep glusterfs

##创建云硬盘类型,关联volum NFS
cinder type-create glusterfs
cinder type-key glusterfs set volume_backend_name=glusterfs_volumes

#####删除glusterfs 配置 cinder 节点执行
sed -i /[glusterfs]/,$d /etc/cinder/cinder.conf
tail /etc/cinder/cinder.conf
sed -i s/^enabled_backends=glusterfs,/enabled_backends=/g /etc/cinder/cinder.conf
grep enabled_backends /etc/cinder/cinder.conf
rm -f /etc/cinder/glusterfs_shares

systemctl restart openstack-cinder-volume.service 


####主节点 操作

source /root/admin-openrc.sh
cinder service-list |grep glusterfs

 

以上是关于cinder glusterfs配置操作的主要内容,如果未能解决你的问题,请参考以下文章

openstack对接glusterfs存储

cinder 对接 glusterfs

cinder nfs配置操作

有CephGlusterFS等分布式存储的实际开发和应用经验,Openstack Cinder框架容器卷管理方案如Flocker

Kubernetes笔记

2.GlusterFS 安装配置