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