ユーザ用ツール

サイト用ツール


サイドバー



最近の更新



Tag Cloud

タグ#
8
10
1
3
1
2
17
7
1
1
4
13
4
1
2
279
1
8
2
7
17
5
1
30
3
3
1
6
1
1
44
1
3
3
1
1
1
1
1
1
32
46
7
9
10
7
10
3
3
2
9
2
2
6
6
1
1
5
10
4
3
3
2
1
8
2
4
1
6
30
2
12
2
3
1
1
2
3
1
1
2
4
3
2
4
2
2
1
1
2
1
2
1
2
1
27
2
1
2
2
2
1
1
2
3
15
5
8
1
1
2
14
2
6
1
2
12
1
2
1
1
4
10
1
6
2
1
6
1
3
3
11
1
2
1
1
10
3
1
14
1
1
4
1
2
1
2
9
2
2
3
1
1
3
1
2
1
2
2
2
1
2
3
1
4
3
4
1
3
1
3
3
2
1
1
30
1
3
3
1
1
1
3
5
1
35
2
3
2
1
2
2
3
1
1
1
4
1
2
1
3
1
1
1
2
5
2
5
2
1
1
1
5
3
2
4
2
1
2
1
19
1
1
3
4
1
1
2
1
1
2
1
1
1
1
2
1
1
1
1
1
9
6
1
3
1
1
3
1
1
1
1
2
1
1
1
1
1
1
2
01_linux:13_storage:28_ceph_add_mon

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
01_linux/13_storage/28_ceph_add_mon.txt · 最終更新: 2021/07/19 21:50 by matsui

Yesterday:1310 Today:104 Total:145778