Access the cluster using rbd client
Objective
This guide explains how to access your OVHcloud Ceph cluster from a machine configured as an RBD client. It describes how to prepare your environment, configure network access, and connect securely to your Cloud Disk Array.
Requirements
Before proceeding:
- A Cloud Disk Array solution
- Your client machine’s public or private IP is allowed in the Access Control List (ACL){} of your Ceph cluster. See our guide "Cloud Disk Array - IP ACL creation".
- You have the following credentials (available in the OVHcloud Control Panel):
- Cluster monitor IPs
- Ceph username (
client.<username>) - Secret key (keyring content)
Instructions
Installing Ceph on the client machine
For Debian/Ubuntu distributions:
For RHEL/CentOS distributions:
Retrieve connection details
Log in to the OVHcloud Control Panel, click Bare Metal Cloud, then Cloud Disk Array and select your service.
Overview:
- Locate the monitor IPs for your Ceph cluster.
Users:
- Find the Ceph username and key required for authentication.
Note: If no users exist yet, follow these guides:
Configure the client
Create or edit the file /etc/ceph/ceph.conf with the following content:
Note: The default Ceph monitor port is :6789 (Messenger v1). Some clusters may also expose :3300 for Messenger v2.
Create a keyring file for your Ceph user at /etc/ceph/ceph.client.<username>.keyring:
Ensure the keyring file has restricted permissions for security:
Test the connection and configuration
Verify that the client can successfully connect to the Ceph cluster:
If the configuration is correct, the command returns the current cluster status.
To validate the setup, list the images available in your pool:
An empty result indicates that no images have been created yet. If an error occurs, review the configuration files and credentials to ensure they are correct.
Create, map, and mount an RBD volume
A Ceph pool cannot be mounted directly. You must first create an RBD image within the pool and then map it to a block device.
Create an RBD image:
Verify image creation:
Map the image to a block device:
Verify the mapping:
Format the block device (XFS example):
Mount the filesystem:
You can now start using your Ceph block storage.
Unmount and unmap the RBD volume
Before detaching an RBD image, ensure the filesystem is properly unmounted:
The RBD image is now safely detached from the client.
Notes and best practices
- Always use the monitor IP addresses provided in the OVHcloud Control Panel.
- Avoid storing sensitive information in plain-text configuration files.
- For Kubernetes environments, use the CSI RBD driver with the same configuration and credentials.
Go further
Visit our dedicated Discord channel: https://discord.gg/ovhcloud. Ask questions, provide feedback and interact directly with the team that builds our Storage and Backup services.
If you need training or technical assistance to implement our solutions, contact your sales representative or click on this link to get a quote and ask our Professional Services experts for assisting you on your specific use case of your project.
Join our community of users.