执行:
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
<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
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。