Use RBD on a client
Quick tip on Ceph. The linux kernel RBD (rados block device) driver allows striping a linux block device over multiple distributed object store data objects. The libceph module takes care of that.
Warning: Don’t use rbd kernel driver on the osd server. Perhaps it will freeze the rbd client and your osd server.
$ sudo apt-get install ceph-common
Starting with rbd:
$ lsmod rbd
$ ceph-authtool --print-key /etc/ceph/keyring.admin
rbd is the default pool and
share is the name of my device. You can easily get more information about your device, it should identified with the name
$ ls /sys/bus/rbd/devices/0/
/dev/ device should have been generated, now format the devive and put a filesystem on it:
$ sudo mkfs.xfs /dev/rbd0
Now you can use it as a simple device or put NFS on it.
/!\ Warning: make sure that this bug does not affect your Ceph version before trying to remove a RBD device.
This article was a simple introduction to the RBD device. Since I don’t want to paraphrase the Ceph wiki, if you need more information consult it the official wiki.