3.4. 配置 Red Hat Ceph Storage 集群名称


您可以使用您配置的名称部署 Red Hat Ceph Storage 集群。默认名称为 ceph

流程

  1. stack 用户身份登录 undercloud 节点。
  2. 使用以下命令配置 Ceph Storage 集群的名称:

    OpenStack overcloud ceph deploy \ --cluster <cluster_name>

    $ OpenStack overcloud ceph deploy \ --cluster central \

注意

目前不会创建密钥环文件。密钥环文件是在 overcloud 部署期间创建的。keyring 文件会继承在此过程中配置的集群名称。有关 overcloud 部署的更多信息,请参阅 第 8.1 节 “启动 overcloud 部署”

在上例中,Ceph 集群名为 central。部署期间,中央 Ceph 集群的配置和密钥环文件将在 /etc/ceph 中创建。

[root@oc0-controller-0 ~]# ls -l /etc/ceph/
total 16
-rw-------. 1 root root  63 Mar 26 21:49 central.client.admin.keyring
-rw-------. 1  167  167 201 Mar 26 22:17 central.client.openstack.keyring
-rw-------. 1  167  167 134 Mar 26 22:17 central.client.radosgw.keyring
-rw-r--r--. 1 root root 177 Mar 26 21:49 central.conf
Copy to Clipboard Toggle word wrap

故障排除

如果您为 Ceph Storage 集群配置自定义名称,则可能会出现以下错误:

monclient: get_monmap_and_config 无法识别要联系的 monitor,因为

如果显示此错误,请在 Ceph 部署后使用以下命令:

cephadm shell --config <configuration_file> --keyring <keyring_file>

例如,如果在将集群名称配置为 Central 时显示此错误,则使用以下命令:

cephadm shell --config /etc/ceph/central.conf \
              --keyring /etc/ceph/central.client.admin.keyring
Copy to Clipboard Toggle word wrap

以下命令也可以用作替代方案:

cephadm shell --mount /etc/ceph:/etc/ceph
export CEPH_ARGS='--cluster central'
Copy to Clipboard Toggle word wrap
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat