参考 http://www.gossamer-threads.com/lists/openstack/dev/23077?do=post_view_threaded#23077
file:///home/cloud/Desktop/bell/works_record/records/openstack/cinder/netappnfsdriver-in-folsom.html (netapp nfsdrive 设置)
在lvm+iscsi的基础上修改配置
0.controller/cinder_service 以及computer需要安装nfs-common
controller/cinder_service 节点
1./etc/cinder/cinder.conf
volume_driver=cinder.volume.nfs.NfsDriver (添加)
nfs_shares_config=/var/lib/cinder/nfsshare (添加)
nfs_mount_point_base=/home/cloud/whl (添加)
2.*/etc/cinder/rootwrap.d/volume.filters add* (参考https://review.openstack.org/#/c/17762/1/etc/cinder/rootwrap.d/volume.filters)
# cinder/volume/nfs.py
stat: CommandFilter, /usr/bin/stat, root
mount: CommandFilter, /bin/mount, root
df: CommandFilter, /bin/df, root
truncate: CommandFilter, /usr/bin/truncate, root
chmod: CommandFilter, /bin/chmod, root
rm: CommandFilter, /bin/rm, root
3.*/etc/nova/nova.conf add*

本文档详细介绍了如何在 OpenStack Cinder 中配置和使用 NFS Driver。首先,需要在 controller 和 compute 节点上安装 nfs-common。接着,修改 `/etc/cinder/cinder.conf` 文件,设置 volume_driver 为 `cinder.volume.nfs.NfsDriver`,指定 nfs_shares_config 和 nfs_mount_point_base。然后,在 `volume.filters` 文件中添加必要的命令过滤。在 `/etc/nova/nova.conf` 中,为 cinder 添加 nfs 驱动。最后,确保在 `/var/lib/cinder/nfsshare` 中配置 NFS 服务器地址。实验结果显示,成功创建并挂载了使用 NFS 的 volume 到虚拟机。
最低0.47元/天 解锁文章
732

被折叠的 条评论
为什么被折叠?



