开发者社区> 问答> 正文

ceph部署,配置初始 monitor(s)、并收集所有密钥报错,执行?报错

执行:

ceph-deploy mon create-initial

错误:

[100-22][INFO  ] monitor: mon.100-22 is running
[100-22][INFO  ] Running command: ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.100-22.asok mon_status
[ceph_deploy.mon][DEBUG ] detecting platform for host 100-24 ...
[100-24][DEBUG ] connected to host: 100-24 
[100-24][DEBUG ] detect platform information from remote host
[100-24][DEBUG ] detect machine type
[100-24][DEBUG ] find the location of an executable
[ceph_deploy.mon][INFO  ] distro info: Ubuntu 18.04 bionic
[100-24][DEBUG ] determining if provided host has same hostname in remote
[100-24][DEBUG ] get remote short hostname
[100-24][DEBUG ] deploying mon to 100-24
[100-24][DEBUG ] get remote short hostname
[100-24][DEBUG ] remote hostname: 100-24
[100-24][DEBUG ] write cluster configuration to /etc/ceph/{cluster}.conf
[100-24][DEBUG ] create the mon path if it does not exist
[100-24][DEBUG ] checking for done path: /var/lib/ceph/mon/ceph-100-24/done
[100-24][DEBUG ] create a done file to avoid re-doing the mon deployment
[100-24][DEBUG ] create the init path if it does not exist
[100-24][INFO  ] Running command: systemctl enable ceph.target
[100-24][INFO  ] Running command: systemctl enable ceph-mon@100-24
[100-24][INFO  ] Running command: systemctl start ceph-mon@100-24
[100-24][INFO  ] Running command: ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.100-24.asok mon_status
[100-24][ERROR ] admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
[100-24][WARNIN] monitor: mon.100-24, might not be running yet
[100-24][INFO  ] Running command: ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.100-24.asok mon_status
[100-24][ERROR ] admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
[100-24][WARNIN] monitor 100-24 does not exist in monmap
[ceph_deploy.mon][INFO  ] processing monitor mon.100-19
[100-19][DEBUG ] connected to host: 100-19 
[100-19][DEBUG ] detect platform information from remote host
[100-19][DEBUG ] detect machine type
[100-19][DEBUG ] find the location of an executable
[100-19][INFO  ] Running command: ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.100-19.asok mon_status
[ceph_deploy.mon][WARNIN] mon.100-19 monitor is not yet in quorum, tries left: 5
[ceph_deploy.mon][WARNIN] waiting 5 seconds before retrying
[100-19][INFO  ] Running command: ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.100-19.asok mon_status
[ceph_deploy.mon][WARNIN] mon.100-19 monitor is not yet in quorum, tries left: 4
[ceph_deploy.mon][WARNIN] waiting 10 seconds before retrying
[100-19][INFO  ] Running command: ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.100-19.asok mon_status
[ceph_deploy.mon][WARNIN] mon.100-19 monitor is not yet in quorum, tries left: 3
[ceph_deploy.mon][WARNIN] waiting 10 seconds before retrying
[100-19][INFO  ] Running command: ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.100-19.asok mon_status
[ceph_deploy.mon][WARNIN] mon.100-19 monitor is not yet in quorum, tries left: 2
[ceph_deploy.mon][WARNIN] waiting 15 seconds before retrying
[100-19][INFO  ] Running command: ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.100-19.asok mon_status
[ceph_deploy.mon][WARNIN] mon.100-19 monitor is not yet in quorum, tries left: 1
[ceph_deploy.mon][WARNIN] waiting 20 seconds before retrying
[ceph_deploy.mon][INFO  ] processing monitor mon.100-22
[100-22][DEBUG ] connected to host: 100-22 
[100-22][DEBUG ] detect platform information from remote host
[100-22][DEBUG ] detect machine type
[100-22][DEBUG ] find the location of an executable
[100-22][INFO  ] Running command: ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.100-22.asok mon_status
[ceph_deploy.mon][WARNIN] mon.100-22 monitor is not yet in quorum, tries left: 5
[ceph_deploy.mon][WARNIN] waiting 5 seconds before retrying
[100-22][INFO  ] Running command: ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.100-22.asok mon_status
[ceph_deploy.mon][WARNIN] mon.100-22 monitor is not yet in quorum, tries left: 4
[ceph_deploy.mon][WARNIN] waiting 10 seconds before retrying
[100-22][INFO  ] Running command: ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.100-22.asok mon_status
[ceph_deploy.mon][WARNIN] mon.100-22 monitor is not yet in quorum, tries left: 3
[ceph_deploy.mon][WARNIN] waiting 10 seconds before retrying
[100-22][INFO  ] Running command: ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.100-22.asok mon_status
[ceph_deploy.mon][WARNIN] mon.100-22 monitor is not yet in quorum, tries left: 2
[ceph_deploy.mon][WARNIN] waiting 15 seconds before retrying
[100-22][INFO  ] Running command: ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.100-22.asok mon_status
[ceph_deploy.mon][WARNIN] mon.100-22 monitor is not yet in quorum, tries left: 1
[ceph_deploy.mon][WARNIN] waiting 20 seconds before retrying
[ceph_deploy.mon][INFO  ] processing monitor mon.100-24
[100-24][DEBUG ] connected to host: 100-24 
[100-24][DEBUG ] detect platform information from remote host
[100-24][DEBUG ] detect machine type
[100-24][DEBUG ] find the location of an executable
[100-24][INFO  ] Running command: ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.100-24.asok mon_status
[100-24][ERROR ] admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
[ceph_deploy.mon][WARNIN] mon.100-24 monitor is not yet in quorum, tries left: 5
[ceph_deploy.mon][WARNIN] waiting 5 seconds before retrying
[100-24][INFO  ] Running command: ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.100-24.asok mon_status
[100-24][ERROR ] admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
[ceph_deploy.mon][WARNIN] mon.100-24 monitor is not yet in quorum, tries left: 4
[ceph_deploy.mon][WARNIN] waiting 10 seconds before retrying
[100-24][INFO  ] Running command: ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.100-24.asok mon_status
[100-24][ERROR ] admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
[ceph_deploy.mon][WARNIN] mon.100-24 monitor is not yet in quorum, tries left: 3
[ceph_deploy.mon][WARNIN] waiting 10 seconds before retrying
[100-24][INFO  ] Running command: ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.100-24.asok mon_status
[100-24][ERROR ] admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
[ceph_deploy.mon][WARNIN] mon.100-24 monitor is not yet in quorum, tries left: 2
[ceph_deploy.mon][WARNIN] waiting 15 seconds before retrying
[100-24][INFO  ] Running command: ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.100-24.asok mon_status
[100-24][ERROR ] admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
[ceph_deploy.mon][WARNIN] mon.100-24 monitor is not yet in quorum, tries left: 1
[ceph_deploy.mon][WARNIN] waiting 20 seconds before retrying
[ceph_deploy.mon][ERROR ] Some monitors have still not reached quorum:
[ceph_deploy.mon][ERROR ] 100-24
[ceph_deploy.mon][ERROR ] 100-22
[ceph_deploy.mon][ERROR ] 100-19
 

展开
收起
爱吃鱼的程序员 2020-06-05 13:48:06 2705 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB
                        <p>ceph.conf :</p> 
    


    [global]
    fsid = 553bbf3a-68e0-4c12-9337-ce5abdeeef30
    mon_initial_members = 100-19, 100-22, 100-24
    mon_host = 192.168.100.19,192.168.100.22,192.168.100.24
    auth_cluster_required = cephx
    auth_service_required = cephx
    auth_client_required = cephx
    public_network = 192.168.100.0/24
    osd journal size = 1024
    osd pool default size = 3
    osd pool default min size = 1
    osd pool default pg num = 333
    osd pool default pgp num = 333
    osd crush chooseleaf type = 1
    [osd]
    osd_journal_size = 5120
    [mon]
    mon osd allow primary affinity = true

    2020-06-05 13:48:20
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
Android内存泄漏自动化链路分析组件--Probe 立即下载
Data as a Service - 数据即服务 -- MongoDB⾼级应⽤模式 立即下载
存储漫谈:Ceph原理与实践 立即下载