3.2. cephadm 实用程序
cephadm
实用程序部署和管理 Ceph 存储集群。它与命令行界面 (CLI) 和 Red Hat Ceph Storage Dashboard Web 界面紧密集成,以便您可以从这两个环境中管理存储集群。cephadm
使用 SSH 从管理器守护进程连接主机,以添加、移除或更新 Ceph 守护进程容器。它不依赖于外部配置或编配工具,如 Ansible 或 Rook。
在主机上运行 preflight playbook 后,cephadm
实用程序可用。
cephadm
实用程序由两个主要组件组成:
-
cephadm
shell。 -
cephadm
编配器。
cephadm
shell
cephadm
shell 在容器内启动 bash
shell。这可让您执行"第一天"集群设置任务,如安装和引导等,以及调用 ceph
命令。
可以通过两种方式调用 cephadm
shell:
在系统提示符处输入
cephadm shell
:示例
[root@host01 ~]# cephadm shell [ceph: root@host01 /]# ceph -s
在系统提示符处,键入
cephadm shell
和您要执行的命令:示例
[root@host01 ~]# cephadm shell ceph -s
如果节点包含 /etc/ceph/
中的配置和密钥环文件,则容器环境将使用这些文件中的值作为 cephadm
shell 的默认值。但是,如果您在 Ceph 监控节点上执行 cephadm
shell,cephadm
shell 会从 Ceph monitor 容器继承其默认配置,而不使用默认配置。
cephadm
编配器
cephadm
编排器允许您执行"第两天" Ceph 功能,如扩展存储集群和调配 Ceph 守护进程和服务。您可以通过命令行界面 (CLI) 或基于 Web 的 Red Hat Ceph Storage 仪表板来使用 cephadm
编配器。编配器命令采用 ceph orch
形式。
cephadm
脚本与 Ceph 管理器使用的 Ceph 编配模块进行交互。