ceph:extending_cluster_add_mons
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
ceph:extending_cluster_add_mons [2019/07/23 09:59] – dodger | ceph:extending_cluster_add_mons [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Extending the cluster: Adding monitors ====== | ||
- | ^ Documentation | ||
- | ^Name:| Extending the cluster: Adding monitors | | ||
- | ^Description: | ||
- | ^Modification date : | ||
- | ^Owner: | ||
- | ^Notify changes to:|Owner | | ||
- | ^Tags: | ||
- | |||
- | |||
- | ====== Pre-Requisites ====== | ||
- | |||
- | * [[documentation: | ||
- | |||
- | ====== Variables used in this documentation ====== | ||
- | |||
- | ^ Name ^ Description ^ Sample ^ | ||
- | | '' | ||
- | | '' | ||
- | | '' | ||
- | |||
- | |||
- | ====== 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 ===== | ||
- | As seen [[http:// | ||
- | |||
- | <code bash> | ||
- | ceph-deploy mon create ${NEWSERVERS} | ||
- | </ | ||
- | |||
- | ===== Method 2: Manual (as official instructions) ===== | ||
- | As seen [[http:// | ||
- | |||
- | |||
- | 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}/ | ||
- | </ | ||
- | |||
- | |||
- | |||
- | ===== Method 3: Fully manual with fsid (the working one) ===== | ||
- | |||
- | A little modification of the manual documentation, | ||
- | |||
- | 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}/ | ||
- | </ |