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.

# 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
# apt update && apt install ceph-deploy
# ssh-keygen && cp ~./.ssh/id_rsa.pub ~./.ssh/authorized_keys
# mkdir CLUSTER-DIR && cd CLUSTER-DIR
# ceph-deploy new st01
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.1515528814.txt.gz · Dernière modification : 2018/01/09 20:13 de beu