次のように与えられ、拡張ノードを追加することができ、異常なエラー、拡張ノードの実装で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
不足公衆ネットワークは内部通信ネットワーク与えられていることを示唆し、ノードが追加ceph.conf後に添加することができます
[root@ceph01 ceph]# vim ceph.conf
.......省略部分内容
public network = 192.168.100.0/24
実行キーの下に次の文を発行し、追加の月を完了するために、サービスを再起動します
[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: