2024-02-18-04
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
63668ed6d1
commit
4d831e9873
3 changed files with 78 additions and 10 deletions
73
source/archive/ceph_cluster.rst
Normal file
73
source/archive/ceph_cluster.rst
Normal file
|
|
@ -0,0 +1,73 @@
|
||||||
|
Un cluster ceph simple
|
||||||
|
======================
|
||||||
|
|
||||||
|
- 3 admin
|
||||||
|
- 1 rados-gtw
|
||||||
|
- 3 node osd
|
||||||
|
|
||||||
|
|
||||||
|
.. code-block::
|
||||||
|
|
||||||
|
## all
|
||||||
|
|
||||||
|
cd
|
||||||
|
apt-get update
|
||||||
|
apt-get install gnupg2
|
||||||
|
hostname | sed -e 's/ip-//' | sed -e 's/-/./g' > ip
|
||||||
|
hostname {hostname}
|
||||||
|
hostname > /etc/hostname
|
||||||
|
echo `cat ip` `hostname` >> /etc/hosts
|
||||||
|
|
||||||
|
## ceph-admin-1
|
||||||
|
|
||||||
|
vi /etc/hosts
|
||||||
|
|
||||||
|
## nodes
|
||||||
|
|
||||||
|
apt-get install lvm2
|
||||||
|
|
||||||
|
## ceph-admin-1
|
||||||
|
|
||||||
|
cd
|
||||||
|
wget -q -O- 'https://download.ceph.com/keys/release.asc' | apt-key add -
|
||||||
|
echo deb https://eu.ceph.com/debian-octopus/ $(lsb_release -sc) main | tee /etc/apt/sources.list.d/ceph.list
|
||||||
|
apt update
|
||||||
|
apt install ceph-deploy
|
||||||
|
ssh-keygen
|
||||||
|
cat .ssh/id_rsa.pub
|
||||||
|
|
||||||
|
## all
|
||||||
|
|
||||||
|
useradd -d /home/ceph-deploy -m ceph-deploy
|
||||||
|
passwd ceph-deploy
|
||||||
|
echo "ceph-deploy ALL = (root) NOPASSWD:ALL" | tee /etc/sudoers.d/ceph-deploy
|
||||||
|
chmod 0440 /etc/sudoers.d/ceph-deploy
|
||||||
|
apt install ntpsec
|
||||||
|
apt install python-minimal
|
||||||
|
|
||||||
|
su ceph-deploy
|
||||||
|
bash
|
||||||
|
cd
|
||||||
|
mkdir .ssh
|
||||||
|
vi .ssh/authorized_keys
|
||||||
|
chmod 700 .ssh
|
||||||
|
chmod 600 .ssh/authorized_keys
|
||||||
|
exit
|
||||||
|
exit
|
||||||
|
|
||||||
|
## ceph-admin-1
|
||||||
|
|
||||||
|
mkdir ceph-cluster
|
||||||
|
cd ceph-cluster
|
||||||
|
ceph-deploy --username ceph-deploy new ceph-admin-1 ceph-admin-2 ceph-admin-3
|
||||||
|
ceph-deploy --username ceph-deploy install ceph-admin-1 ceph-admin-2 ceph-admin-3 radosgw-1 ceph-node-1 ceph-node-2 ceph-node-3
|
||||||
|
ceph-deploy --username ceph-deploy mon create-initial
|
||||||
|
ceph-deploy --username ceph-deploy admin ceph-admin-1 ceph-admin-2 ceph-admin-3 radosgw-1 ceph-node-1 ceph-node-2 ceph-node-3
|
||||||
|
ceph-deploy --username ceph-deploy mgr create ceph-admin-1 ceph-admin-2 ceph-admin-3
|
||||||
|
ceph-deploy --username ceph-deploy osd create --data /dev/sda ceph-node-1
|
||||||
|
ceph-deploy --username ceph-deploy osd create --data /dev/sdb ceph-node-1
|
||||||
|
ceph-deploy --username ceph-deploy osd create --data /dev/sda ceph-node-2
|
||||||
|
ceph-deploy --username ceph-deploy osd create --data /dev/sdb ceph-node-2
|
||||||
|
ceph-deploy --username ceph-deploy osd create --data /dev/sda ceph-node-3
|
||||||
|
ceph-deploy --username ceph-deploy osd create --data /dev/sdb ceph-node-3
|
||||||
|
ceph-deploy --username ceph-deploy rgw create radosgw-1
|
||||||
|
|
@ -1,6 +1,11 @@
|
||||||
Archive de Nicolas
|
Archive de Nicolas
|
||||||
==================
|
==================
|
||||||
|
|
||||||
|
|
||||||
|
.. toctree::
|
||||||
|
|
||||||
|
ceph_cluster
|
||||||
|
|
||||||
Une idee de merde faudrait que je retourne dessus une jour...
|
Une idee de merde faudrait que je retourne dessus une jour...
|
||||||
|
|
||||||
.. mermaid::
|
.. mermaid::
|
||||||
|
|
|
||||||
|
|
@ -2,18 +2,8 @@ Documentation de GnomeZworc!
|
||||||
============================
|
============================
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:maxdepth: 5
|
|
||||||
:caption: Contents:
|
|
||||||
|
|
||||||
tech_conf/index
|
tech_conf/index
|
||||||
personnal/index
|
personnal/index
|
||||||
doc_api/index
|
doc_api/index
|
||||||
archive/index
|
archive/index
|
||||||
|
|
||||||
|
|
||||||
Indices and tables
|
|
||||||
==================
|
|
||||||
|
|
||||||
* :ref:`genindex`
|
|
||||||
* :ref:`modindex`
|
|
||||||
* :ref:`search`
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue