Native support for Ceph has been added in the Linux kernel 2.6.34 and the later versions. In this recipe, we will demonstrate how to access Ceph FS through the Linux kernel driver on client-node1
.
In order for our client to have access to Ceph FS, we need to configure the client for accessing the cluster and mounting Ceph FS. Let's review how this is done:
- Check your client's Linux kernel version:
root@client-node1 # uname -r
- Create a mount point directory in which you want to mount the filesystem:
# mkdir /mnt/cephfs
- Get the keys for the
client.cephfs
user, which we created in the last section. Execute the following command from the Ceph monitor node to get the user keys:
# ceph auth get-key client.cephfs
- Mount Ceph FS using the native Linux mount call with the following syntax:
Syntax: # mount -t ceph <monitor _IP:Monitor_port>:/ <mount_point_name> -o name=admin,secret=<admin_user_key>
# mount...