ceph/doc/start/quick-rbd.rst
John Wilkins 09dd8cad36 doc: Updating Getting Started with 5-minute quick start.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2012-07-03 11:21:43 -07:00

30 lines
772 B
ReStructuredText

=================
RBD Quick Start
=================
To use RADOS block devices, you must have a running Ceph cluster. You may
execute this quick start on a separate host if you have the Ceph packages and
the ``/etc/ceph/ceph.conf`` file installed with the appropriate IP address
and host name settings modified in the ``/etc/ceph/ceph.conf`` file.
Create a RADOS Block Device image. ::
rbd create foo --size 4096
Load the ``rbd`` client module. ::
sudo modprobe rbd
Map the image to a block device. ::
sudo rbd map foo --pool rbd --name client.admin
Use the block device. In the following example, create a file system. ::
sudo mkfs.ext4 -m0 /dev/rbd/rbd/foo
Mount the file system. ::
sudo mkdir /mnt/myrbd
sudo mount /dev/rbd/rbd/foo /mnt/myrbd