- Getting Started Configuration Accessing Your Cluster Hypervisors Maintenance Hook Scripts Troubleshooting
RBD
What is RBD
RBD (RADOS Block Device) is the way to go when you need a block device on a Linux machine. This includes QEMU hypervisors like Proxmox and OpenShift. There is also an experimental Windows driver.
Creating an RBD
To create an RBD, we need to create a RBD pool first.
- Navigate to
Pools
. - Click
Create
. - For now go with replicated and set Application to
RBD
. - Navigate to
RBD
. - Click
Create
.
Erasure Coding (EC)
If you want to store RBDs on an EC pool, create a EC RBD pool. Then during the RBD creation:
- Select the replicated RBD pool as your
Pool
. - Selected the EC RBD pool as your
Data Pool
.
Mounting the RBD
There are multiple ways to mount the RBD.
The Native Way
To mount your RBD on a Linux system you need to:
- Setup Ceph Keys.
- Download and move both ceph.conf and key to
/etc/ceph/
on the system. - Ensure the system has an up-to-date kernel, to prevent client bugs.
- Ensure the system has access to your MONs.
- Ensure the system has Ceph packages installed.
rbd device map $pool_name/$rbd_name --id $ceph_key_name
rbd device list
# Format the listed RBD
mkfs.xfs /dev/rbd0
mkdir /mnt/my-rbd
mount /dev/rbd0 /mnt/my-rbd
NVMe over Fabrics
Hypervisors
RBDs can be directly utilized by QEMU-based hypervisors like: