附录 G. 使用 Ansible 清除 Ceph 仪表板

如果不再需要安装仪表板,请使用 purge-dashboard.yml playbook 删除仪表板。在对仪表板或其组件进行故障排除时,您可能还要清除仪表板。

先决条件

  • Red Hat Ceph Storage 4.3 或更高版本。
  • ceph-ansible 附带最新版本的 Red Hat Ceph Storage。
  • 对存储集群中所有节点的 sudo 级别访问权限。

流程

  1. 登录 Ansible 管理节点。
  2. 进入 /usr/share/ceph-ansible/ 目录:

    示例

    [ansible@admin ~]$ cd /usr/share/ceph-ansible/

  3. 运行 Ansible purge-dashboard.yml playbook,并在提示时输入 yes 来确认仪表板的清除:

    示例

    [ansible@admin ceph-ansible]$ ansible-playbook infrastructure-playbooks/purge-dashboard.yml -i hosts -vvvv

验证

  • 运行 ceph mgr services 命令以验证仪表板不再运行:

    语法

    ceph mgr services

    控制面板 URL 不显示出来。

其它资源

  • 要安装仪表板,请参阅在 Red Hat Ceph Storage Dashboard Guide 中使用 Ansbile 安装 仪表板。