ceph:extending_cluster_add_mons
Differences
This shows you the differences between two versions of the page.
Last revisionBoth sides next revision | |||
ceph:extending_cluster_add_mons [2019/07/23 09:35] – created dodger | ceph:extending_cluster_add_mons [2019/07/23 09:59] – dodger | ||
---|---|---|---|
Line 23: | Line 23: | ||
====== Instructions ====== | ====== Instructions ====== | ||
+ | |||
+ | |||
+ | ===== Modify ceph.conf ===== | ||
+ | You must add the new monitors to '' | ||
+ | <code bash> | ||
+ | [mon.pro-cephm-005] | ||
+ | host = pro-cephm-005.ciberterminal.net | ||
+ | addr = 10.20.54.55 | ||
+ | public_addr = 10.20.54.55: | ||
+ | |||
+ | [mon.pro-cephm-006] | ||
+ | host = pro-cephm-006.ciberterminal.net | ||
+ | addr = 10.20.54.56 | ||
+ | public_addr = 10.20.54.56: | ||
+ | </ | ||
+ | |||
+ | And populate to all the cluster: | ||
+ | <code bash> | ||
+ | ceph-deploy --overwrite-conf config push ${ALLSERVERS} | ||
+ | </ | ||
+ | |||
+ | Then restart the monitors (yes, is a **salt** command): | ||
+ | <code bash> | ||
+ | salt " | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
===== Method 1: ceph-deploy ===== | ===== Method 1: ceph-deploy ===== | ||
Line 51: | Line 79: | ||
sudo ceph-mon -i $(hostname) --mkfs --monmap ${TMPDIR}/ | sudo ceph-mon -i $(hostname) --mkfs --monmap ${TMPDIR}/ | ||
</ | </ | ||
+ | |||
===== Method 3: Fully manual with fsid (the working one) ===== | ===== Method 3: Fully manual with fsid (the working one) ===== | ||
+ | A little modification of the manual documentation, | ||
- | Maybe tomorrow.... today is late... | + | As '' |
+ | <code bash> | ||
+ | export TMPDIR=~/ | ||
+ | mkdir ${TMPDIR} | ||
+ | cd ${TMPDIR} | ||
+ | sudo ceph auth get mon. -o keyfile.txt | ||
+ | sudo ceph mon getmap -o mapfile.bin | ||
+ | for i in ${NEWSERVERS} ; do scp -r " | ||
+ | </ | ||
+ | |||
+ | Then in **each new node**: | ||
+ | |||
+ | <code bash> | ||
+ | export TMPDIR=~/ | ||
+ | sudo ceph-mon -i $(hostname) --mkfs --monmap ${TMPDIR}/ | ||
+ | </ |