账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    第一次部署 ceph 在运行ceph-deploy mon create-initial报错
    • 2020-01-01 00:00
    • 11
    59
    0

    我已经关闭了防火墙 只配了一台服务器

    [root@ceph01 ~]# ceph-deploy mon create-initial
    [ceph_deploy.conf][DEBUG ] found configuration file at: /root/.cephdeploy.conf
    [ceph_deploy.cli][INFO  ] Invoked (1.5.39): /usr/bin/ceph-deploy mon create-initial
    [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                : False
    [ceph_deploy.cli][INFO  ]  subcommand                    : create-initial
    [ceph_deploy.cli][INFO  ]  quiet                         : False
    [ceph_deploy.cli][INFO  ]  cd_conf                       : <ceph_deploy.conf.cephdeploy.Conf instance at 0x7f44563a9e60>
    [ceph_deploy.cli][INFO  ]  cluster                       : ceph
    [ceph_deploy.cli][INFO  ]  func                          : <function mon at 0x7f44563946e0>
    [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 ceph01
    [ceph_deploy.mon][DEBUG ] detecting platform for host ceph01 ...
    [ceph01][DEBUG ] connected to host: ceph01 
    [ceph01][DEBUG ] detect platform information from remote host
    [ceph01][DEBUG ] detect machine type
    [ceph01][DEBUG ] find the location of an executable
    [ceph_deploy.mon][INFO  ] distro info: CentOS Linux 7.6.1810 Core
    [ceph01][DEBUG ] determining if provided host has same hostname in remote
    [ceph01][DEBUG ] get remote short hostname
    [ceph01][DEBUG ] deploying mon to ceph01
    [ceph01][DEBUG ] get remote short hostname
    [ceph01][DEBUG ] remote hostname: ceph01
    [ceph01][DEBUG ] write cluster configuration to /etc/ceph/{cluster}.conf
    [ceph01][DEBUG ] create the mon path if it does not exist
    [ceph01][DEBUG ] checking for done path: /var/lib/ceph/mon/ceph-ceph01/done
    [ceph01][DEBUG ] create a done file to avoid re-doing the mon deployment
    [ceph01][DEBUG ] create the init path if it does not exist
    [ceph01][INFO  ] Running command: systemctl enable ceph.target
    [ceph01][INFO  ] Running command: systemctl enable ceph-mon@ceph01
    [ceph01][INFO  ] Running command: systemctl start ceph-mon@ceph01
    [ceph01][INFO  ] Running command: ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.ceph01.asok mon_status
    [ceph01][ERROR ] admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
    [ceph01][WARNIN] monitor: mon.ceph01, might not be running yet
    [ceph01][INFO  ] Running command: ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.ceph01.asok mon_status
    [ceph01][ERROR ] admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
    [ceph01][WARNIN] monitor ceph01 does not exist in monmap
    [ceph01][WARNIN] neither `public_addr` nor `public_network` keys are defined for monitors
    [ceph01][WARNIN] monitors may not be able to form quorum
    [ceph_deploy.mon][INFO  ] processing monitor mon.ceph01
    [ceph01][DEBUG ] connected to host: ceph01 
    [ceph01][DEBUG ] detect platform information from remote host
    [ceph01][DEBUG ] detect machine type
    [ceph01][DEBUG ] find the location of an executable
    [ceph01][INFO  ] Running command: ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.ceph01.asok mon_status
    [ceph01][ERROR ] admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
    [ceph_deploy.mon][WARNIN] mon.ceph01 monitor is not yet in quorum, tries left: 5
    [ceph_deploy.mon][WARNIN] waiting 5 seconds before retrying
    [ceph01][INFO  ] Running command: ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.ceph01.asok mon_status
    [ceph01][ERROR ] admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
    [ceph_deploy.mon][WARNIN] mon.ceph01 monitor is not yet in quorum, tries left: 4
    [ceph_deploy.mon][WARNIN] waiting 10 seconds before retrying
    [ceph01][INFO  ] Running command: ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.ceph01.asok mon_status
    [ceph01][ERROR ] admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
    [ceph_deploy.mon][WARNIN] mon.ceph01 monitor is not yet in quorum, tries left: 3
    [ceph_deploy.mon][WARNIN] waiting 10 seconds before retrying
    [ceph01][INFO  ] Running command: ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.ceph01.asok mon_status
    [ceph01][ERROR ] admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
    [ceph_deploy.mon][WARNIN] mon.ceph01 monitor is not yet in quorum, tries left: 2
    [ceph_deploy.mon][WARNIN] waiting 15 seconds before retrying
    [ceph01][INFO  ] Running command: ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.ceph01.asok mon_status
    [ceph01][ERROR ] admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
    [ceph_deploy.mon][WARNIN] mon.ceph01 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 ] ceph01

    部署了3次了都是这一步报中同样的错误,希望帮忙解决一下
    下面这个是ceoh.conf文件

    
    [global]
    fsid = a36e72a5-203b-4f30-83d9-f88938d549d7
    mon_initial_members = ceph01
    #mon_host = fe80::f624:fb5f:a33b:e5c0%ens33
    mon_host=192.168.0.107
    auth_cluster_required = cephx
    auth_service_required = cephx
    auth_client_required = cephx
    public_network=42.243.65.3/24
    # 存储集群副本个数
    osd_pool_default_size = 1
    # 允许在degraded状态下只写两次对象
    osd_pool_default_min_size = 1
    # 池的pg数量,具体计算公式请参见附录
    osd_pool_default_pg_num = 128
    # pgp数量需要与pg数量相同
    osd_pool_default_pgp_num = 128
    
    1
    打赏
    收藏
    点击回答
    您的回答被采纳后将获得:提问者悬赏的 11 元积分
        全部回答
    • 0
    • 烈酒孤独 普通会员 1楼

      这个错误提示是由于 Ceph 的 init 目录下的 mon 创建失败,可能的原因有:

      1. Ceph 的 init 目录路径不正确,需要检查 Ceph 的配置文件中 init 目录的路径。

      2. Ceph 的 init 配置文件中需要包含正确的启动命令,比如:/usr/local/ceph/daemon/ceph-deploy mon start

      3. Ceph 的 init 配置文件需要经过 init 目录的检查和验证,需要确保 init 配置文件的格式正确,文件内容没有语法错误。

      4. Ceph 的 init 配置文件需要经过 init 目录的权限验证,需要确保 init 配置文件的权限设置正确。

      如果以上条件都满足,但是报错仍然存在,可能需要进一步检查 Ceph 的日志文件,查看具体的错误信息,找出报错的具体位置和原因。

    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部