码迷,mamicode.com
首页 > 其他好文 > 详细

cinder glusterfs配置操作

时间:2019-10-26 15:16:14      阅读:98      评论:0      收藏:0      [点我收藏+]

标签:pre   emctl   span   创建   mnt   driver   base   rfs   ase   

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配置操作

标签:pre   emctl   span   创建   mnt   driver   base   rfs   ase   

原文地址:https://www.cnblogs.com/blog-lhong/p/11743148.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!