Here’s a quick tutorial on how to make RBD’s, disable their features, and make them persistent at startup.
Note - You really should go into your cepf.conf file and set
rbd_default_features = 1 under the
[global] section before going any further. Failure to do so will result in you images not wanting to map. If needed these features can be enabled later with
red feature enable
In order to create the RBD image simply run the following command
On the machine you wish to map this image run
This will map the image (if it is your first) to
/dev/rbd0. It will also be mapped to
/dev/rbd/pool_name/image_name. From here we can treat this as a normal block device and map it.
To make this mountable upon boot, we need to edit our rbdmap file.
And last but not least enable the rbdmap service.
I hope this ends up helping someone, thank you for reading!