2
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 C ha ng e t h e de f au l t nu m be r of r e pl i ca s in t h e C e ph co n gu r at i on l e f r om 3 t o 2 so t h at C eph can a chi eve an active + clean  state wi t h j ust t w o C ep h O S Ds. A dd t he f o l l o w in g l in e u n d e r t h e[default]  se cti o n : 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

Ceph FS Guia

Embed Size (px)

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