====== 28 Ceph Mon 追加 ====== ===== 追加 ===== ceph-deploy mon add ceph-mon02 ===== 削除 ===== ceph-deploy mon destroy ceph-mon01 ===== config同期 ===== 追加後は、cpeh.confを同期してあげる。 ceph-deploy --overwrite-conf config push ceph001 ceph002 ceph003 ceph005 ceph006 ceph007 ===== prometheus再起動 ===== 追加後すぐは、Prometheusに追加monの情報が入ってないので、停止・起動してあげる ceph mgr module disable prometheus ceph mgr module enable prometheus ===== エラー ===== [ceph-mon02][INFO ] Running command: systemctl enable ceph.target [ceph-mon02][INFO ] Running command: systemctl enable ceph-mon@ceph-mon02 [ceph-mon02][INFO ] Running command: systemctl start ceph-mon@ceph-mon02 [ceph-mon02][INFO ] Running command: ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.ceph-mon02.asok mon_status [ceph-mon02][ERROR ] admin_socket: exception getting command descriptions: [Errno 2] No such file or directory [ceph-mon02][WARNIN] monitor ceph-mon02 does not exist in monmap [ceph-mon02][WARNIN] neither `public_addr` nor `public_network` keys are defined for monitors [ceph-mon02][WARNIN] monitors may not be able to form quorum [ceph-mon02][INFO ] Running command: ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.ceph-mon02.asok mon_status [ceph-mon02][ERROR ] admin_socket: exception getting command descriptions: [Errno 2] No such file or directory [ceph-mon02][WARNIN] monitor: mon.ceph-mon02, might not be running yet ==== 対応 ==== 「public_network」を追加してあげると解決 [global] fsid = XXXXXXXX-XXXX-XXX-XXXX-XXXXXXXXXXX mon_initial_members = ceph001, ceph004, ceph005, ceph-mon02 mon_host = 10.10.0.101,10.10.0.104,10.10.0.105, 10.10.10.12 auth_cluster_required = cephx auth_service_required = cephx auth_client_required = cephx ↓ [global] fsid = XXXXXXXX-XXXX-XXX-XXXX-XXXXXXXXXXX mon_initial_members = ceph001, ceph004, ceph005, ceph-mon02 mon_host = 10.10.0.101,10.10.0.104,10.10.0.105, 10.10.10.12 auth_cluster_required = cephx auth_service_required = cephx auth_client_required = cephx public_network = 10.10.0.0/16 {{tag>Ceph}}