Ceph FS Guia

Preview:

Citation preview

7/23/2019 Ceph FS Guia

http://slidepdf.com/reader/full/ceph-fs-guia 1/1

ssh-keygen

ssh-copy-id -i .ssh/id_rsa.pub fs2

ssh fs2

ssh-copy-id -i .ssh/id_rsa.pub fs3

apt-get install ceph-deploy --force-yes

apt-get install upstart --force-yes (NO INS!"!# $N %#O&'O&

ceph-deploy ne) fs* fs2 fs3

Change the default number of replicas in the Ceph configuration file from 3 to2 so that

Ceph can achieve anactive + clean state with just two Ceph OSDs. Add the

following line under the[default] section:

osd pool default size = 2

ceph-deploy install fs* fs2 fs3

ceph-deploy +on create-initial

ceph-deploy osd --,ap-disk create fs*sdb

ceph-deploy osd --,ap-disk create fs2sdb

ceph-deploy osd --,ap-disk create fs3sdb

ceph osd pool create datastore *

ceph-deploy osd prepare fs22/0ar/local/osd2 fs3/0ar/local/osd3

ceph-deploy osd prepare fs2/0ar/local/osd2 fs3/0ar/local/osd3

ceph-deploy osd acti0ate fs2/0ar/local/osd2 fs3/0ar/local/osd3

ceph-deploy ad+in fs* fs2 fs3

ch+od 1r /etc/ceph/ceph.client.ad+in.keyring

ceph health

initctl list grep ceph

apt-get install upstart --force-yes

start ceph-all