Ceph RBD Image Mount
2 min readOct 20, 2022
The article will show how to
- Mount a rbd image using the admin client
- 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.
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