메뉴 닫기

ceph-monitor mon remove

ceph mon 서버 제거

1.

service ceph -a stop mon.{mon-id}

#적용
# sudo service ceph-mon@mon-1 stop

2.

ceph mon remove {mon-id}

3.

ceph.conf 에서 제거된 mon 리스트 삭제.

–overwrite-conf config push
–overwrite-conf admin
시행후 전체 재시작.
—————————————————————————

다른 방법 [ ceph 문서에 기재된 내용으로 다소 복잡하지만 정확하긴 하여 링크합니다.)

12.1. CEPH-DEPLOY

To remove a monitor from your cluster, use the mon destroy command.

ceph-deploy mon destroy []
For example, to remove Ceph monitors on monitor hosts node5 and node6, you would execute the following:

ceph-deploy mon destroy node5 node6
Check to see that your monitors have left the quorum.

ceph quorum_status –format json-pretty
IMPORTANT
Ensure that you remove any references to this monitor in your Ceph configuration file; then, push a new copy of the Ceph configuration file to your Ceph nodes.

Ideally, you should remove the monitor host from Calamari. Get the cluster ID:

http://{calamari-fqdn}/api/v2/cluster
Then, remove the monitor host from Calamari.

http://{calamari-fqdn}/api/v2/server
http://{calamari-fqdn}/api/v2/key/{host-fqdn}
12.2. MANUAL

This procedure removes a ceph-mon daemon from your cluster. If this procedure results in only two monitor daemons, you may add or remove another monitor until you have a number of ceph-mon daemons that can achieve a quorum.

Stop the monitor. :

service ceph -a stop mon.{mon-id}
Remove the monitor from the cluster. :

ceph mon remove {mon-id}
Remove the monitor entry from ceph.conf.
12.3. REMOVING MONITORS FROM AN UNHEALTHY CLUSTER

This procedure removes a ceph-mon daemon from an unhealhty cluster—​i.e., a cluster that has placement groups that are persistently not active + clean.

Identify a surviving monitor and log in to that host. :

ceph mon dump
ssh {mon-host}
Stop the ceph-mon daemon and extract a copy of the monap file. :

service ceph stop mon || stop ceph-mon-all
ceph-mon -i {mon-id} –extract-monmap {map-path}
# for example,
ceph-mon -i a –extract-monmap /tmp/monmap

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x