Ceph:Install Clients

From Define Wiki
Revision as of 12:26, 24 February 2014 by Michael (talk | contribs) (Created page with "== Install Ceph == Check that you have a correct version of Linux installed <syntaxhighlight> ceph-deploy install ceph-client ceph-deploy admin ceph-client </syntaxhighlight> == Configure a Blo...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Install Ceph

Check that you have a correct version of Linux installed

ceph-deploy install ceph-client
ceph-deploy admin ceph-client


Configure a Block Device

On the client node:

rbd create foo --size 4096 [-m {mon-IP}] [-k /path/to/ceph.client.admin.keyring]
sudo modprobe rbd
sudo rbd map foo --pool rbd --name client.admin [-m {mon-IP}] [-k /path/to/ceph.client.admin.keyring]

Create a file system and mount the Ceph FS

sudo mkfs.ext4 -m0 /dev/rbd/rbd/foo

sudo mkdir /mnt/ceph-block-device
sudo mount /dev/rbd/rbd/foo /mnt/ceph-block-device
cd /mnt/ceph-block-device