---
title: "Access the cluster using rbd client"
description: "This guide shows you how to access your cluster using rbd client."
url: https://docs.ovhcloud.com/en/guides/storage-and-backup/block-storage/cloud-disk-array/ceph-use-your-cluster-with-rbd
lang: en
lastUpdated: 2026-04-02
---
# 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](https://www.ovhcloud.com/en-gb/storage-solutions/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](/en/guides/storage-and-backup/block-storage/cloud-disk-array/ceph-create-an-ip-acl.md)".
- 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:

```bash
sudo apt-get update
sudo apt-get -y install ceph ceph-common
```

For **RHEL/CentOS** distributions:

```bash
sudo yum install -y ceph-common
```

### 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.

:::info
**Note:** If no users exist yet, follow these guides:

- "[Cloud Disk Array - User creation](/en/guides/storage-and-backup/block-storage/cloud-disk-array/ceph-create-a-user.md)"
- "[Change user rights](/en/guides/storage-and-backup/block-storage/cloud-disk-array/ceph-change-user-rights.md)"

:::

### Configure the client

Create or edit the file `/etc/ceph/ceph.conf` with the following content:

```bash
[global]
mon_host = `<MONITOR_IP_1>`:6789, <MONITOR_IP_2>:6789, `<MONITOR_IP_3>`:6789
```

:::info
**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`:

```bash
[client.`<username>`]
key = <your_secret_key>
```

Ensure the keyring file has restricted permissions for security:

```bash
sudo chmod 600 /etc/ceph/ceph.client.`<username>`.keyring
```

### Test the connection and configuration

Verify that the client can successfully connect to the Ceph cluster:

```bash
ceph -s --id `<username>`
```

If the configuration is correct, the command returns the current cluster status.

To validate the setup, list the images available in your pool:

```bash
rbd -n client.`<username>` list <pool_name>
```

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:

```bash
rbd -n client.`<username>` create <pool_name>/<image_name> \
  -s <size_in_MB> \
  --image-format 2 \
  --image-feature layering
```

Verify image creation:

```bash
rbd -n client.`<username>` list <pool_name>
```

Map the image to a block device:

```bash
sudo rbd -n client.`<username>` map <pool_name>/<image_name>
```

Verify the mapping:

```bash
rbd showmapped
```

Format the block device (XFS example):

```bash
sudo mkfs.xfs /dev/rbd0
```

Mount the filesystem:

```bash
sudo mkdir -p /mnt/<mount_point>
sudo mount /dev/rbd0 /mnt/<mount_point>
df -h /mnt/<mount_point>
```

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:

```bash
sudo umount /mnt/<mount_point>
sudo rbd unmap /dev/rbd0
```

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](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](https://www.ovhcloud.com/en-gb/professional-services/) 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](https://community.ovhcloud.com/).
