The Ceph File System (CephFS) can be mounted as a kernel client, either manually or
automatically on system start.
Before you begin
Before you begin, make sure that you have the
following prerequisites in place:
- Root-level access to a Linux-based client node.
- Root-level access to a Ceph Monitor node.
- An existing Ceph File System.
About this task
Important: Clients running on other Linux distributions, aside from Red Hat Enterprise
Linux, are permitted but not supported. If issues are found in the CephFS Metadata Server or other
parts of the storage cluster when using these clients, IBM will address them. If the cause is found
to be on the client side, the kernel vendor of the Linux distribution must address the
issue..
Procedure
Configure the client node to use the Ceph storage cluster.
- Enable the IBM Storage
Ceph
7 Tools repository.
RHEL 9:
[root@client01 ~]# curl https://public.dhe.ibm.com/ibmdl/export/pub/storage/ceph/ibm-storage-ceph-7-rhel-9.repo | sudo tee /etc/yum.repos.d/ibm-storage-ceph-7-rhel-9.repo
Repeat this step on all nodes of the IBM Storage
Ceph storage
cluster.
- Install the
ceph-common package.
[root@client01 ~]# dnf install ceph-common
- Log in to the Cephadm shell on the monitor node.
[root@host01 ~]# cephadm shell
- Copy the Ceph client keyring from the Ceph Monitor node to the client
node.
scp /ceph.client.CLIENT_ID.keyring root@CLIENT_NODE_NAME:/etc/ceph/ceph.client.CLIENT_ID.keyring
Replace
CLIENT_NODE_NAME with the Ceph client host name or IP address.
For
example,
[ceph: root@host01 ~]# scp /ceph.client.1.keyring root@client01:/etc/ceph/ceph.client.1.keyring
- Copy the Ceph configuration file from a Ceph Monitor node to the client
node.
scp /etc/ceph/ceph.conf root@CLIENT_NODE_NAME:/etc/ceph/ceph.conf
Replace
CLIENT_NODE_NAME with the Ceph client host name or IP address.
For
example,
[ceph: root@host01 ~]# scp /etc/ceph/ceph.conf root@client01:/etc/ceph/ceph.conf
- Configure the client node to use the Ceph storage cluster.
[root@client01 ~]# chmod 644 /etc/ceph/ceph.conf
- Choose either
automatically or manually.