OpenStackcinder存储使用NFS教程

Windows Windows 2个月前 (08-15) 5次浏览 未收录 0个评论 扫描二维码
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 = https://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
喜欢 (0)
[]
分享 (0)
关于作者:
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址