温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

OpenStack cinder存储使用NFS

发布时间:2020-06-06 21:26:45 来源:网络 阅读:550 作者:凌许冬 栏目:云计算
1.  yum -y install nfs-utils rpcbind
2.  mkdir  -p /data/nfs
3.  vim /etc/exports
/data/nfs *(rw,sync,no_root_squash)
4.  exportfs -r
5.  showmount -e 127.0.0.1
6.  yum install openstack-cinder targetcli python-keystone -y
7.  vim /etc/cinder/cinder.conf
[DEFAULT]
transport_url = rabbit://openstack:openstack@10.201.1.80
auth_strategy = keystone
glance_api_servers = http://10.201.1.80:9292
enabled_backends = nfs

[nfs]
nfs_shares_config = /etc/cinder/nfs_shares
volume_driver = cinder.volume.drivers.nfs.NfsDriver
nfs_mount_point_base = $state_path/mnt
volume_backend_name = NFS-Storage
8.  vim /etc/cinder/nfs_shares
10.201.1.80:/data/nfs

9.  chown root:cinder /etc/cinder/nfs_shares
chmod 0640 /etc/cinder/ nfs_shares
10. systemctl enable openstack-cinder-volume.service target.service
systemctl start openstack-cinder-volume.service target.service
11. cinder type-create NFS
cinder type-create ISCSI
12. cinder type-key NFS set volume_backend_name=NFS-Storage
cinder type-key ISCSI set volume_backend_name=ISCSI-Storage
向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI