Outils pour utilisateurs

Outils du site


kb:linux:donnees:single_node_ceph

Ceci est une ancienne révision du document !


Single Node CEPH

Nécessite une bonne configuration du nom d'host, et dans ce HOW-TO, ce sera st01.

On va commencer par créer la clé SSH pour le compte root.

# ssh-keygen && cp ~./.ssh/id_rsa.pub ~./.ssh/authorized_keys

Ajout du dépôt ceph

# wget -q -O- 'https://download.ceph.com/keys/release.asc' | apt-key add -
# echo deb http://download.ceph.com/debian-luminous/ stretch main | tee /etc/apt/sources.list.d/ceph.list

Puis on installe l'outil ceph-deploy

# apt update && apt install ceph-deploy

Et créer un dossier de cluster, qui stoquera les informations du cluster.

# mkdir CLUSTER-DIR && cd CLUSTER-DIR

On créer le cluster:

# ceph-deploy new st01

On ajoute ces deux lignes dans le fichier ceph.conf

osd pool default size = 2
osd crush chooseleaf type = 0

Default pool size is how many replicas of our data we want (2). The chooseleaf setting is required to tell ceph we are only a single node and that it’s OK to store the same copy of data on the same physical node. Normally for safety, ceph distributes the copies and won’t leave all your eggs in the same basket (server).

ceph-deploy install --release luminous st01
kb/linux/donnees/single_node_ceph.1515529275.txt.gz · Dernière modification : 2018/01/09 20:21 de beu