ceph扩容mon报错

在执行添加ceph扩容节点的时候,异常报错,无法添加上扩容节点,报错如下

[root@ceph01 ceph]# ceph-deploy mon add ceph03
.......省略部分内容
[ceph03][INFO  ] Running command: systemctl start ceph-mon@ceph03
[ceph03][INFO  ] Running command: ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.ceph03.asok mon_status
[ceph03][ERROR ] admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
[ceph03][WARNIN] ceph03 is not defined in `mon initial members`
[ceph03][WARNIN] monitor ceph03 does not exist in monmap
[ceph03][WARNIN] neither `public_addr` nor `public_network` keys are defined for monitors
[ceph03][WARNIN] monitors may not be able to form quorum
[ceph03][INFO  ] Running command: ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.ceph03.asok mon_status
[ceph03][ERROR ] admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
[ceph03][WARNIN] monitor: mon.ceph03, might not be running yet

报错提示缺少public network内部通信网段,在ceph.conf添加后即可添加节点

[root@ceph01 ceph]# vim ceph.conf 
.......省略部分内容
public network = 192.168.100.0/24

执行如下语句下发密钥,重启mon服务即可完成添加

[root@ceph01 ceph]# ceph-deploy --overwrite-conf config push ceph01 ceph02 ceph03
[root@ceph01 ceph]# systemctl restart ceph-mon.target
[root@ceph01 ceph]# ceph -s
  cluster:
    id:     56f368f3-3ccc-4ef4-9b5e-a3d788bb03f2
    health: HEALTH_WARN
            no active mgr

  services:
    mon: 3 daemons, quorum ceph01,ceph02,ceph03  //此处显示已添加上
    mgr: no daemons active
    osd: 3 osds: 3 up, 3 in

  data:
    pools:   0 pools, 0 pgs
    objects: 0  objects, 0 B
    usage:   0 B used, 0 B / 0 B avail
    pgs:

猜你喜欢

转载自blog.51cto.com/14557736/2483227
今日推荐