在安装ceph时,在执行monitor初始化mon、收集秘钥是出现异常报错
报错如下:
[c2][INFO ] Running command: ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.c2.asok mon_status
[c2][ERROR ] admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
[ceph_deploy.mon][WARNIN] mon.c2 monitor is not yet in quorum, tries left: 3
[ceph_deploy.mon][WARNIN] waiting 10 seconds before retrying
[c2][INFO ] Running command: ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.c2.asok mon_status
[c2][ERROR ] admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
[ceph_deploy.mon][WARNIN] mon.c2 monitor is not yet in quorum, tries left: 2
[ceph_deploy.mon][WARNIN] waiting 15 seconds before retrying
[c2][INFO ] Running command: ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.c2.asok mon_status
[c2][ERROR ] admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
[ceph_deploy.mon][WARNIN] mon.c2 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 ] c2
[ceph_deploy.mon][ERROR ] c1
检查firewalld、iptables都是关闭的,查看hosts文件,正常
最后发现是hostname文件将主机名改错了,更改主机名与hosts文件内主机名一致,重启
执行命令ceph-deploy --overwrite-conf mon create-initial
出现以下报错:
[c2][INFO ] Running command: ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.c2.asok mon_status
[c2][ERROR ] no valid command found; 10 closest matches:
[c2][ERROR ] perf dump {<logger>} {<counter>}
[c2][ERROR ] log reopen
[c2][ERROR ] help
[c2][ERROR ] git_version
[c2][ERROR ] log flush
[c2][ERROR ] log dump
[c2][ERROR ] config unset <var>
[c2][ERROR ] config show
[c2][ERROR ] get_command_descriptions
[c2][ERROR ] dump_mempools
[c2][ERROR ] admin_socket: invalid command
[c2][WARNIN] monitor: mon.c2, might not be running yet
在各个节点上执行命令pkill ceph
关闭ceph进程后后,再次执行命令ceph-deploy mon create-initial
,无报错
来源:51CTO
作者:wx5d8a23dbc329e
链接:https://blog.51cto.com/14557736/2476826