千家信息网

OpenStack cinder存储使用NFS

发表于:2024-11-30 作者:千家信息网编辑
千家信息网最后更新 2024年11月30日,1. yum -y install nfs-utils rpcbind2. mkdir -p /data/nfs3. vim /etc/exports/data/nfs *(rw,sync,n
千家信息网最后更新 2024年11月30日OpenStack cinder存储使用NFS
1.  yum -y install nfs-utils rpcbind2.  mkdir  -p /data/nfs3.  vim /etc/exports/data/nfs *(rw,sync,no_root_squash)4.  exportfs -r5.  showmount -e 127.0.0.16.  yum install openstack-cinder targetcli python-keystone -y7.  vim /etc/cinder/cinder.conf[DEFAULT]transport_url = rabbit://openstack:openstack@10.201.1.80auth_strategy = keystoneglance_api_servers = http://10.201.1.80:9292enabled_backends = nfs[nfs]nfs_shares_config = /etc/cinder/nfs_sharesvolume_driver = cinder.volume.drivers.nfs.NfsDrivernfs_mount_point_base = $state_path/mntvolume_backend_name = NFS-Storage8.  vim /etc/cinder/nfs_shares10.201.1.80:/data/nfs9.  chown root:cinder /etc/cinder/nfs_shareschmod 0640 /etc/cinder/ nfs_shares10. systemctl enable openstack-cinder-volume.service target.servicesystemctl start openstack-cinder-volume.service target.service11. cinder type-create NFScinder type-create ISCSI12. cinder type-key NFS set volume_backend_name=NFS-Storagecinder type-key ISCSI set volume_backend_name=ISCSI-Storage
0