gpt4 book ai didi

ceph-deploy mon create 失败并出现异常

转载 作者:行者123 更新时间:2023-12-01 21:56:56 27 4
gpt4 key购买 nike

我正在安装一个带有 1 个监控节点和 1 个 osd 的 ceph 集群。我正在关注文档:http://docs.ceph.com/docs/v0.86/start/quick-ceph-deploy/

在第 5 步中:添加初始监视器并收集 key (ceph-deploy v1.1.3 中的新增功能),

我遇到以下异常:

**[ceph-mon1][ERROR ] admin_socket: exception getting command descriptions: [Errno 2] No such file or directory**
[ceph-mon1][WARNIN] monitor: mon.ceph-mon1, might not be running yet
[ceph-mon1][INFO ] Running command: sudo ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.ceph-mon1.asok mon_status
**[ceph-mon1][ERROR ] admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
[ceph-mon1][WARNIN] monitor ceph-mon1 does not exist in monmap**

Just for reference my **ceph.conf** is as follows:
*[global]

fsid = 351948ba-9716-4a04-802d-28b5510bfeb0

mon_initial_members = ceph-mon1,ceph-admin,ceph-osd1

mon_host = xxx.yyy.zzz.78,xxx.yyy.zzz.147,xxx.yyy.zzz.135

auth_cluster_required = cephx

auth_service_required = cephx

auth_client_required = cephx

filestore_xattr_use_omap = true

osd_pool_default_size = 2

public_addr = xxx.yyy.zzz.0*

我试图理解 ceph 用户邮件列表上与 sane 相关的所有问题,但我没有找到针对此问题的精确解决方案。

谁能帮我解决这个问题吗?

提前致谢。

最佳答案

我遇到了同样的错误,可以通过添加我的其他 ceph 节点的主机名和 IpAdrress 以及添加“public_network ="

来解决该问题

我在 ceph.conf 中调整的部分是:

mon_initial_members =
mon_host =
public_network =

cat/etc/ceph/ceph.conf

[global]
fsid = 33cb5c76-a685-469e-8cdd-fee7c98c3f4d
mon_initial_members = ceph1,ceph2
mon_host = 192.168.61.39,192.168.61.40
auth_cluster_required = cephx
auth_service_required = cephx
auth_client_required = cephx
filestore_xattr_use_omap = true
public_network = 192.168.61.0/24

运行命令:

$ ceph-deploy --overwrite-conf mon create <ceph-node>

关于ceph-deploy mon create 失败并出现异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33059213/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com