Uzyskaj dostęp do klastra za pomocą klienta rbd (EN)
Objective
There are different ways to use your Ceph cluster. We'll describe how to map your cluster using rbd client.
Requirements
You must first ensure that you have done those steps :
- Create a pool
- Create a user
- Add rights to a user on a pool
- Add an IP ACL to allow your server to contact the cluster
Ceph installation
For deb based distributions:
For rpm based distributions:
Ceph configuration
Create file /etc/ceph/ceph.conf
Create the file /etc/ceph/ceph.client.<ceph_user_name>.keyring
<mon_X_IP> has to be replaced by monitors IP you can find on the Cloud Disk Array manager. Under 'Platforms and services' select your Ceph cluster.
<my_user_key> has to be replaced by the users's key you can find on your Cloud Disk Array manager.
Configuration check
You can check the configuration by listing the images inside your pool.
In this case, the result is empty because we have not have created an image yet. If you have an error, please double check your configuration.
Image creation
You can't directly mount a pool, you have to mount an image that exists on the pool.
We make sure that the image was created correctly by listing the pool content.
Map the image
My rbd image is not mapped to /dev/rbd0, it's a block storage. Therefore we have to setup a filesystem.
Setup the filesystem
Mount the filesystem
You can now use your Ceph cluster!
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 on https://community.ovh.com/en/.