在執行添加ceph擴容節點的時候,異常報錯,沒法添加上擴容節點,報錯以下vim
[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添加後便可添加節點socket
[root@ceph01 ceph]# vim ceph.conf .......省略部份內容 public network = 192.168.100.0/24
執行以下語句下發密鑰,重啓mon服務便可完成添加ide
[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: