11.12. 使用 Ceph Orchestrator 重置自定义 NFS-Ganesha 配置

使用 Ceph 编排器,您可以将用户定义的配置重置为默认配置。

先决条件

  • 一个正在运行的 Red Hat Ceph Storage 集群。
  • 主机添加到集群中。
  • 部署所有管理器、监控器和 OSD 守护进程。
  • 使用 mgr/nfs 模块部署的 NFS-Ganesha。
  • 自定义 NFS 集群配置被设置

流程

  1. 登录到 Cephadm shell:

    示例

    [root@host01 ~]# cephadm shell

  2. 重置 NFS-Ganesha 配置:

    语法

    ceph nfs cluster config reset CLUSTER_NAME

    示例

    [ceph: root@host01 /]# ceph nfs cluster config reset nfs-cephfs

验证

  • 列出服务:

    示例

    [ceph: root@host01 /]# ceph orch ls

  • 列出主机、守护进程和进程:

    语法

    ceph orch ps --daemon_type=DAEMON_NAME

    示例

    [ceph: root@host01 /]# ceph orch ps --daemon_type=nfs

  • 验证自定义配置已被删除:

    语法

    /bin/rados -p POOL_NAME -N CLUSTER_NAME get userconf-nfs.CLUSTER_NAME -

    示例

    [ceph: root@host01 /]# /bin/rados -p nfs-ganesha -N nfsganesha get userconf-nfs.nfsganesha -

其它资源