13.2. 配置 NFS 存储
您可以将 overcloud 配置为使用共享 NFS 存储。
流程
-
创建一个环境文件来配置您的 NFS 存储,如
nfs_storage.yaml。 在新环境文件中添加以下参数来配置 NFS 存储:
parameter_defaults: CinderEnableIscsiBackend: false CinderEnableNfsBackend: true GlanceBackend: file CinderNfsServers: 192.0.2.230:/cinder GlanceNfsEnabled: true GlanceNfsShare: 192.0.2.230:/glance注意不要配置
CinderNfsMountOptions和GlanceNfsOptions参数,因为它们的默认值启用适合大多数 Red Hat OpenStack Platform (RHOSP)环境的 NFS 挂载选项。您可以在environments/storage/glance-nfs.yaml文件中看到GlanceNfsOptions参数的值。如果您在配置多个服务以共享同一 NFS 服务器时遇到问题,请联系红帽支持团队。使用其他环境文件将 NFS 存储环境文件添加到堆栈中,并部署 overcloud:
(undercloud)$ openstack overcloud deploy --templates \ -e [your environment files] \ -e /home/stack/templates/nfs_storage.yaml