.. important:: To use kernel module operations, you must have a running Ceph cluster.
-Load the Ceph RBD Module
-========================
-
-To map a block device image to a kernel module, first load the Ceph RBD module::
-
- modprobe rbd
-
Get a List of Images
====================
==================
Use ``rbd`` to map an image name to a kernel module. You must specify the
-image name, the pool name, and the user name. ::
+image name, the pool name, and the user name. ``rbd`` will load RBD kernel
+module on your behalf if it's not already loaded. ::
sudo rbd map {image-name} --pool {pool-name} --id {user-name}
rbd create foo --size 4096 [-m {mon-IP}] [-k /path/to/ceph.client.admin.keyring]
-#. On the ``ceph-client`` node, load the ``rbd`` client module. ::
-
- sudo modprobe rbd
-
#. On the ``ceph-client`` node, map the image to a block device. ::
sudo rbd map foo --pool rbd --name client.admin [-m {mon-IP}] [-k /path/to/ceph.client.admin.keyring]