CEPH: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Thomas (Diskussion | Beiträge)
Thomas (Diskussion | Beiträge)
Zeile 18: Zeile 18:
*root@kekistand:~# ssh-copy-id bay
*root@kekistand:~# ssh-copy-id bay
*root@kekistand:~# ssh-copy-id omar
*root@kekistand:~# ssh-copy-id omar
===Hilfskript===
*cat  /usr/local/sbin/root-all-nodes
<pre>
#!/bin/bash
echo localhost
$*
LIST="bay omar nelson"
for k in $LIST
do
echo $k
ssh k $*
done
</pre>
===Anlegen des Users cephadmin===
===Anlegen des Users cephadmin===
*root@kekistand:~# useradd -s /bin/bash -m cephadmin
*root-all-nodes useradd -s /bin/bash -m cephadmin
*root@kekistand:~# ssh nelson useradd -s /bin/bash -m cephadmin
 
*root@kekistand:~# ssh bay    useradd -s /bin/bash -m cephadmin
*root-all-nodes mkdir /home/cephadmin/.ss
*root@kekistand:~# ssh omar  useradd -s /bin/bash -m cephadmin


=Links=
=Links=
*https://linoxide.com/ubuntu-how-to/create-ceph-cluster-ubuntu-16-04/
*https://linoxide.com/ubuntu-how-to/create-ceph-cluster-ubuntu-16-04/
*https://www.howtoforge.com/tutorial/how-to-install-a-ceph-cluster-on-ubuntu-16-04/
*https://www.howtoforge.com/tutorial/how-to-install-a-ceph-cluster-on-ubuntu-16-04/

Version vom 18. Mai 2017, 13:36 Uhr

Aufbau

Storage-Node

  • omar
  • nelson
  • bay

Admin-Node

  • kekistan

Vorbreitung

Installation von ssh und ntp

Auf allen Nodes

  • sudo apt -y install ntp ssh

ssh-key auf allen nodes

ssh-keygen

  • root@kekistand:~# ssh-keygen

ssh-copy-id

  • root@kekistand:~# ssh-copy-id nelson
  • root@kekistand:~# ssh-copy-id bay
  • root@kekistand:~# ssh-copy-id omar

Hilfskript

  • cat /usr/local/sbin/root-all-nodes
#!/bin/bash
echo localhost
$*
LIST="bay omar nelson"
for k in $LIST
do
echo $k
ssh k $*
done

Anlegen des Users cephadmin

  • root-all-nodes useradd -s /bin/bash -m cephadmin
  • root-all-nodes mkdir /home/cephadmin/.ss

Links