ceph:extending_cluster_bootstrap
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
ceph:extending_cluster_bootstrap [2019/07/23 06:53] – [Variables used in this documentation] dodger | ceph:extending_cluster_bootstrap [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Extending the cluster: bootstrap vm's ====== | ||
- | |||
- | ^ Documentation | ||
- | ^Name:| Extending the cluster: bootstrap vm's | | ||
- | ^Description: | ||
- | ^Modification date : | ||
- | ^Owner: | ||
- | ^Notify changes to:|Owner | | ||
- | ^Tags: | ||
- | |||
- | ====== Variables used in this documentation ====== | ||
- | |||
- | ^ Name ^ Description ^ Sample ^ | ||
- | | '' | ||
- | | '' | ||
- | | '' | ||
- | |||
- | |||
- | ====== Instructions ====== | ||
- | ===== SALT PART ===== | ||
- | |||
- | <WRAP center round info 60%> | ||
- | SALT part | ||
- | </ | ||
- | |||
- | ===== Deploy the new VM's for new nodes ===== | ||
- | |||
- | Use clonewars with the following ops: | ||
- | <code bash> | ||
- | bash CloneWars.sh -c ${NUTANIXCLUSTER} -h ${THESERVER} -i ${THEIPADDRESS} | ||
- | </ | ||
- | |||
- | ===== Run salt basic states ===== | ||
- | |||
- | - Connect to salt-master | ||
- | - Run the following '' | ||
- | <code bash> | ||
- | salt " | ||
- | salt " | ||
- | </ | ||
- | |||
- | |||
- | === Install yum-plugin-priorities ===== | ||
- | |||
- | In all the servers: | ||
- | <code bash> | ||
- | salt " | ||
- | </ | ||
- | |||
- | ===== Install ceph-deploy | ||
- | |||
- | In the adm: | ||
- | <code bash> | ||
- | salt " | ||
- | </ | ||
- | |||
- | ===== Add ceph user ===== | ||
- | |||
- | In all the servers: | ||
- | <code bash> | ||
- | salt " | ||
- | </ | ||
- | Check: | ||
- | <code bash> | ||
- | salt " | ||
- | </ | ||
- | |||
- | |||
- | ===== Add ceph user to sudoers | ||
- | In all the servers: | ||
- | <code bash> | ||
- | salt " | ||
- | "ceph ALL = (root) NOPASSWD: | ||
- | </ | ||
- | |||
- | Check: | ||
- | <code bash> | ||
- | salt " | ||
- | salt " | ||
- | </ | ||
- | |||
- | ===== Generate ssh keys ===== | ||
- | All the servers: | ||
- | <code bash> | ||
- | salt " | ||
- | " | ||
- | runas=ceph | ||
- | </ | ||
- | |||
- | ===== Populate ssh keys ===== | ||
- | |||
- | Allow self node to ssh itself: | ||
- | <code bash> | ||
- | salt " | ||
- | </ | ||
- | |||
- | Get pub keys, from '' | ||
- | <code bash> | ||
- | salt " | ||
- | </ | ||
- | |||
- | Get the pub keys from all the cluster nodes ('' | ||
- | <code bash> | ||
- | salt " | ||
- | </ | ||
- | \\ | ||
- | |||
- | Populate the pub keys from all cluster to '' | ||
- | <code bash> | ||
- | while read LINE ; do salt " | ||
- | </ | ||
- | \\ | ||
- | |||
- | |||
- | Populate the keys from '' | ||
- | <code bash> | ||
- | while read LINE ; do salt " | ||
- | </ | ||
- | \\ | ||
- | |||
- | |||
- | ===== Ceph admin node PART ===== | ||
- | |||
- | <WRAP center round info 60%> | ||
- | Ceph admin node PART | ||
- | </ | ||
- | |||
- | ===== Upload ceph.repo ===== | ||
- | |||
- | Copy '' | ||
- | <code bash> | ||
- | for i in ${NEWSERVERS} ; do scp / | ||
- | for i in ${NEWSERVERS} ; do ssh ${i} "sudo chown root. / | ||
- | for i in ${NEWSERVERS} ; do ssh ${i} "ls -l / | ||
- | </ | ||
- | |||
- | ===== Install ceph ===== | ||
- | |||
- | <code bash> | ||
- | ceph-deploy install ${NEWSERVERS} | ||
- | </ | ||
- | |||
- | |||
- | |||
- | ====== DONE ====== | ||
- | |||
- | |||
- | |||
- | |||