User Tools

Site Tools


ceph:deploy_ceph_cluster_for_humans

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ceph:deploy_ceph_cluster_for_humans [2019/07/18 09:17]
127.0.0.1 external edit
ceph:deploy_ceph_cluster_for_humans [2019/07/23 09:48] (current)
dodger
Line 28: Line 28:
  
 ^ Name ^ Description ^ Sample ^ ^ Name ^ Description ^ Sample ^
-| ''​${THESERVER}''​ | Variable used as salt target, it can be a mask of serves (see sample) | <code bash>​export THESERVER="​bvmlb-os*-00*"</​code>​ |  +| ''​${THESERVER}''​ | Variable used as salt target, it can be a mask of serves (see sample) | <code bash>​export THESERVER="​demoenv-ceph*-00*"</​code>​ |  
-| ''​${LISTOFSERVERS}''​ | Variable used as ''​ceph-deploy''​ target ​ | <code bash>​export LISTOFSERVERS="​bvmlb-osm-001 bvmlb-osd-001"</​code>​ | +| ''​${LISTOFSERVERS}''​ | Variable used as ''​ceph-deploy''​ target ​ | <code bash>​export LISTOFSERVERS="​demoenv-cephm-001 demoenv-cephd-001"</​code>​ | 
  
  
Line 145: Line 145:
 export ''​LISTOFSERVERS''​ variable, for example: export ''​LISTOFSERVERS''​ variable, for example:
 <code bash> <code bash>
-export LISTOFSERVERS="​bvmld-osadm-101 bvmld-osm-101 bvmld-osd-101 bvmld-osd-102 bvmld-osd-103"+export LISTOFSERVERS="​demoenv-cephadm-101 demoenv-cephm-101 demoenv-cephd-101 demoenv-cephd-102 demoenv-cephd-103"
 </​code>​ </​code>​
 <WRAP center round important 60%> <WRAP center round important 60%>
Line 177: Line 177:
 # monitoring server # monitoring server
 ##########################​ ##########################​
-THESERVER="​bvmlb-osm-001"+THESERVER="​demoenv-cephm-001"
 </​code>​ </​code>​
 \\ \\
Line 204: Line 204:
 # monitoring server # monitoring server
 ##########################​ ##########################​
-LISTOFSERVERS="​bvmlb-osm-001 bvmlb-osm-002"+LISTOFSERVERS="​demoenv-cephm-001 demoenv-cephm-002"
 </​code>​ </​code>​
 \\ \\
Line 225: Line 225:
 export ''​LISTOFSERVERS''​ variable, for example: export ''​LISTOFSERVERS''​ variable, for example:
 <code bash> <code bash>
-export LISTOFSERVERS="​bvmlb-osd-001 bvmlb-osd-002 bvmlb-osd-003"+export LISTOFSERVERS="​demoenv-cephd-001 demoenv-cephd-002 demoenv-cephd-003"
 </​code>​ </​code>​
  
Line 277: Line 277:
 export ''​LISTOFSERVERS''​ variable, for example: export ''​LISTOFSERVERS''​ variable, for example:
 <code bash> <code bash>
-export LISTOFSERVERS="​bvmld-osadm-101 bvmld-osm-101 bvmld-osd-101 bvmld-osd-102 bvmld-osd-103"+export LISTOFSERVERS="​demoenv-cephadm-101 demoenv-cephm-101 demoenv-cephd-101 demoenv-cephd-102 demoenv-cephd-103"
 </​code>​ </​code>​
  
Line 300: Line 300:
 Deploy rados from ceph adm: Deploy rados from ceph adm:
 <code bash> <code bash>
-THESERVER="​bvmlb-osgw-001"+THESERVER="​demoenv-cephgw-001"
  
 ceph-deploy install --rgw ${THESERVER} --repo-url https://​download.ceph.com/​rpm-hammer/​el7/​ ceph-deploy install --rgw ${THESERVER} --repo-url https://​download.ceph.com/​rpm-hammer/​el7/​
Line 332: Line 332:
 Sample: Sample:
 <code bash> <code bash>
-ceph@bvmlb-osadm-001 ~/​ceph-deploy $ ssh ${THESERVER} "sudo radosgw-admin zone get"+ceph@demoenv-cephadm-001 ~/​ceph-deploy $ ssh ${THESERVER} "sudo radosgw-admin zone get"
 { {
     "​domain_root":​ "​.rgw",​     "​domain_root":​ "​.rgw",​
Line 365: Line 365:
  
 <code bash> <code bash>
-for i in 1 3  ; do bash CloneWars.sh -F -c datacenter01 -i 10.20.55.1${i} -v 4 -o 2  -r 4096 -O -m 20 -h AVMLP-OSFS-00${i} ​ ; done +for i in 1 3  ; do bash CloneWars.sh -F -c datacenter01 -i 10.20.55.1${i} -v 4 -o 2  -r 4096 -O -m 20 -h demoenv-cephFS-00${i} ​ ; done 
-for i in 2 4  ; do bash CloneWars.sh -F -c datacenter02 -i 10.20.55.1${i} -v 4 -o 2  -r 4096 -O -m 20 -h AVMLP-OSFS-00${i} ​ ; done+for i in 2 4  ; do bash CloneWars.sh -F -c datacenter02 -i 10.20.55.1${i} -v 4 -o 2  -r 4096 -O -m 20 -h demoenv-cephFS-00${i} ​ ; done
 </​code>​ </​code>​
  
 <code bash> <code bash>
-export THESERVER="​avmlp-osfs*.ciberterminal.net"​+export THESERVER="​demoenv-cephfs*.ciberterminal.net"​
 salt "​${THESERVER}"​ state.apply ​ salt "​${THESERVER}"​ state.apply ​
 salt "​${THESERVER}"​ state.apply nsupdate salt "​${THESERVER}"​ state.apply nsupdate
Line 380: Line 380:
 salt "​${THESERVER}"​ cmd.run ​    "​ssh-keygen -q -N ''​ -f /​home/​ceph/​.ssh/​id_rsa" ​    ​runas=ceph salt "​${THESERVER}"​ cmd.run ​    "​ssh-keygen -q -N ''​ -f /​home/​ceph/​.ssh/​id_rsa" ​    ​runas=ceph
 salt "​${THESERVER}"​ cmd.run "cat /​home/​ceph/​.ssh/​id_rsa.pub"​ |egrep -v "​^a"​ | sed '​s/​^[[:​space:​]]\{1,​5\}//​g'​ > auth_keys_oss.txt salt "​${THESERVER}"​ cmd.run "cat /​home/​ceph/​.ssh/​id_rsa.pub"​ |egrep -v "​^a"​ | sed '​s/​^[[:​space:​]]\{1,​5\}//​g'​ > auth_keys_oss.txt
-export THESERVER="​avmlp-os*.ciberterminal.net"​+export THESERVER="​demoenv-ceph*.ciberterminal.net"​
 salt "​${THESERVER}"​ file.copy /​home/​ceph/​.ssh/​id_rsa.pub /​home/​ceph/​.ssh/​authorized_keys salt "​${THESERVER}"​ file.copy /​home/​ceph/​.ssh/​id_rsa.pub /​home/​ceph/​.ssh/​authorized_keys
-while read LINE ; do salt "​${THESERVER}"​ file.append /​home/​ceph/​.ssh/​authorized_keys "​${LINE}"​ ; done < auth_keys_avmlp-os.txt+while read LINE ; do salt "​${THESERVER}"​ file.append /​home/​ceph/​.ssh/​authorized_keys "​${LINE}"​ ; done < auth_keys_demoenv-ceph.txt
 </​code>​ </​code>​
  
Line 388: Line 388:
 <code bash> <code bash>
 for i in ${MDSSERVERS} ; do scp ceph.repo ${i}:/​home/​ceph/​ ; ssh ${i} "sudo mv /​home/​ceph/​ceph.repo /​etc/​yum.repos.d/" ​ ; done for i in ${MDSSERVERS} ; do scp ceph.repo ${i}:/​home/​ceph/​ ; ssh ${i} "sudo mv /​home/​ceph/​ceph.repo /​etc/​yum.repos.d/" ​ ; done
-export MDSSERVERS="​avmlp-osfs-002.ciberterminal.net ​avmlp-osfs-001.ciberterminal.net ​avmlp-osfs-004.ciberterminal.net ​avmlp-osfs-003.ciberterminal.net"​+export MDSSERVERS="​demoenv-cephfs-002.ciberterminal.net ​demoenv-cephfs-001.ciberterminal.net ​demoenv-cephfs-004.ciberterminal.net ​demoenv-cephfs-003.ciberterminal.net"​
 export LISTOFSERVERS=${MDSSERVERS} export LISTOFSERVERS=${MDSSERVERS}
 ceph-deploy install ${LISTOFSERVERS} ceph-deploy install ${LISTOFSERVERS}
ceph/deploy_ceph_cluster_for_humans.txt · Last modified: 2019/07/23 09:48 by dodger