[root@ceph-node01 ceph-clasuter]# ceph-deploy --overwrite-conf mon create ceph-mon01 ceph-mon02 ceph-mon03
[ceph_deploy.conf][DEBUG ] found configuration file at: /root/.cephdeploy.conf
[ceph_deploy.cli][INFO ] Invoked (2.0.1): /usr/bin/ceph-deploy --overwrite-conf mon create ceph-mon01 ceph-mon02 ceph-mon03
[ceph_deploy.cli][INFO ] ceph-deploy options:
[ceph_deploy.cli][INFO ] username : None
[ceph_deploy.cli][INFO ] verbose : False
[ceph_deploy.cli][INFO ] overwrite_conf : True
[ceph_deploy.cli][INFO ] subcommand : create
[ceph_deploy.cli][INFO ] quiet : False
[ceph_deploy.cli][INFO ] cd_conf : <ceph_deploy.conf.cephdeploy.Conf instance at 0x7f92447a7fc8>
[ceph_deploy.cli][INFO ] cluster : ceph
[ceph_deploy.cli][INFO ] mon : ['ceph-mon01', 'ceph-mon02', 'ceph-mon03']
[ceph_deploy.cli][INFO ] func : <function mon at 0x7f924478b398>
[ceph_deploy.cli][INFO ] ceph_conf : None
[ceph_deploy.cli][INFO ] default_release : False
[ceph_deploy.cli][INFO ] keyrings : None
[ceph_deploy.mon][DEBUG ] Deploying mon, cluster ceph hosts ceph-mon01 ceph-mon02 ceph-mon03
[ceph_deploy.mon][DEBUG ] detecting platform for host ceph-mon01 ...
[ceph-mon01][DEBUG ] connected to host: ceph-mon01
[ceph-mon01][DEBUG ] detect platform information from remote host
[ceph-mon01][DEBUG ] detect machine type
[ceph-mon01][DEBUG ] find the location of an executable
[ceph_deploy.mon][INFO ] distro info: CentOS Linux 7.6.1810 Core
[ceph-mon01][DEBUG ] determining if provided host has same hostname in remote
[ceph-mon01][DEBUG ] get remote short hostname
[ceph-mon01][WARNIN] ********************************************************************************
[ceph-mon01][WARNIN] provided hostname must match remote hostname
[ceph-mon01][WARNIN] provided hostname: ceph-mon01
[ceph-mon01][WARNIN] remote hostname: ceph-node02
[ceph-mon01][WARNIN] monitors may not reach quorum and create-keys will not complete
[ceph-mon01][WARNIN] ********************************************************************************
[ceph-mon01][DEBUG ] deploying mon to ceph-mon01
[ceph-mon01][DEBUG ] get remote short hostname
[ceph-mon01][DEBUG ] remote hostname: ceph-node02
[ceph-mon01][DEBUG ] write cluster configuration to /etc/ceph/{cluster}.conf
[ceph-mon01][DEBUG ] create the mon path if it does not exist
[ceph-mon01][DEBUG ] checking for done path: /var/lib/ceph/mon/ceph-ceph-node02/done
[ceph-mon01][DEBUG ] create a done file to avoid re-doing the mon deployment
[ceph-mon01][DEBUG ] create the init path if it does not exist
[ceph-mon01][INFO ] Running command: systemctl enable ceph.target
[ceph-mon01][INFO ] Running command: systemctl enable ceph-mon@ceph-node02
[ceph-mon01][INFO ] Running command: systemctl start ceph-mon@ceph-node02
[ceph-mon01][INFO ] Running command: ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.ceph-mon01.asok mon_status
[ceph-mon01][ERROR ] admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
[ceph-mon01][WARNIN] monitor: mon.ceph-mon01, might not be running yet
[ceph-mon01][INFO ] Running command: ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.ceph-mon01.asok mon_status
[ceph-mon01][ERROR ] admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
[ceph-mon01][WARNIN] monitor ceph-mon01 does not exist in monmap
[ceph-mon01][WARNIN] neither `public_addr` nor `public_network` keys are defined for monitors
[ceph-mon01][WARNIN] monitors may not be able to form quorum
[ceph_deploy.mon][DEBUG ] detecting platform for host ceph-mon02 ...
root@ceph-mon02's password:
[ceph_deploy][ERROR ] KeyboardInterrupt
帮下忙 加我 发个小红包解决 谢谢拉 q 370460370