Cinder采用glusterfs文件系统

作者:【吴业亮】
博客:http://blog.csdn.net/wylfengyujiancheng

注意:openstack newton以后版本已经将cinder的glusterfs驱动移除,不再支持glusterfs

Cinder采用glusterfs文件系统
cinder节点
安装glusterfs软件包

[root@storage ~]# yum --enablerepo=epel -y install glusterfs glusterfs-fuse

修改配置文件/etc/cinder/cinder.conf

[DEFAULT]
enabled_backends = glusterfs
[glusterfs]
volume_driver = cinder.volume.drivers.glusterfs.GlusterfsDriver
glusterfs_shares_config = /etc/cinder/glusterfs_shares
glusterfs_mount_point_base = $state_path/mnt_gluster

创建文件/etc/cinder/glusterfs_shares并写入glusterfs信息

glusterfs-node:/vol_replica
格式:节点名称:/卷名

赋予权限

[root@storage ~]# chmod 640 /etc/cinder/glusterfs_shares 
[root@storage ~]# chgrp cinder /etc/cinder/glusterfs_shares

重启服务

[root@storage ~]# systemctl restart openstack-cinder-volume

创建glusterfs

# cinder --os-username admin --os-tenant-name admin type-create glusterfs
# cinder --os-username admin --os-tenant-name admin type-key glusterfs  set volume_backend_name=glusterfs
# cinder --os-username admin --os-tenant-name admin extra-specs-list

计算节点上
安装glusterfs软件

[root@computer ~]# yum --enablerepo=epel -y install glusterfs glusterfs-fuse

修改配置文件/etc/nova/nova.conf

[DEFAULT]
osapi_volume_listen=0.0.0.0
volume_api_class=nova.volume.cinder.API

重启服务

[root@computer ~]# systemctl restart openstack-nova-compute
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值