Ceph RBD Image Mount

DaeGon Kim
2 min readOct 20, 2022

The article will show how to

  1. Mount a rbd image using the admin client
  2. Make it persist

The Ceph cluster we are using here is described in Ceph Cluster Deploy article.

First we need to create a pool and an rbd image in the pool.

These commands will create a pool named main-block-devices and a rbd image foo in the pool. The size of image will be 1GB.

How to retrieve pools and rbd image information

Client Node Set up for RBD mounts

First, install ceph-common on a ceph-client node.

sudo apt install -y ceph-common

This will create /etc/ceph directory on the ceph-client node. Then copy /etc/ceph/ceph.conf from the ceph-mon node to /etc/ceph directory on the ceph-client node.

We also need to copy a client keyring file as well. In this example, we will use the admin client. So, copy the below file from the ceph-mon node to the ceph-client node.

/etc/ceph/ceph.client.admin.keyring

--

--

No responses yet