8.3. 配置 CephFS-NFS 后端
您可以使用 CephFS-NFS 作为存储后端配置共享文件系统服务(manila)。
先决条件
- 隔离存储网络在 OpenShift 上的共享管理器 pod 上配置,以便共享文件系统服务可以与 Red Hat Ceph Storage 集群通信。
- 将隔离的 NFS 网络用于 NFS 流量。此网络不需要供 OpenShift 上共享文件系统服务的共享管理器容器集使用,但必须为最终用户拥有的 Compute 实例可用。
- 您计划了存储网络,以确保存储后端、控制平面和数据平面上的计算节点连接。如需更多信息,请参阅 规划部署以及在 OpenShift 上部署 Red Hat OpenStack Services 中的为 Red Hat OpenStack Services 准备网络。https://docs.redhat.com/en/documentation/red_hat_openstack_services_on_openshift/18.0/html/planning_your_deployment/index#assembly_assembly_planning-storage-networks_planning
流程
打开
OpenStackControlPlane
CR 文件openstack_control_plane.yaml
,并将以下参数添加到manila
模板:apiVersion: core.openstack.org/v1beta1 kind: OpenStackControlPlane spec: ... manila: enabled: true template: manilaAPI: replicas: 3 customServiceConfig: | [DEFAULT] debug = true enabled_share_protocols=nfs manilaScheduler: replicas: 3 manilaShares: share1: customServiceConfig: | [DEFAULT] enabled_share_backends=cephfsnfs [cephfsnfs] driver_handles_share_servers=False share_backend_name=cephfs share_driver=manila.share.drivers.cephfs.driver.CephFSDriver cephfs_auth_id=openstack cephfs_cluster_name=ceph cephfs_nfs_cluster_id=cephfs cephfs_protocol_helper_type=NFS ...
更新 control plane:
$ oc apply -f openstack_control_plane.yaml -n openstack
等待 RHOCP 创建与
OpenStackControlPlane
CR 相关的资源。运行以下命令来检查状态:$ oc get openstackcontrolplane -n openstack
当状态为 "Setup complete" 时,会创建
OpenStackControlPlane
资源。提示将
-w
选项附加到get
命令的末尾,以跟踪部署进度。