The Ceph Filesystem is natively supported by the LINUX kernel; however, if your host is running on a lower kernel version or if you have any application dependency, you can always use the FUSE client for Ceph to mount Ceph FS.
Let's review how to configure FUSE client for access to the Ceph cluster and mounting Ceph FS:
- Validate that the Ceph FUSE package is installed on the machine
client-node1
(Ansible installs this as part of the client packages):
# rpm -qa |grep -i ceph-fuse
- Validate that the Ceph FS
keyring
file is createdclient-node1
in/etc/ceph/ceph.client.cephfs.keyring
, with the following contents (note your key will be different from the example):
- Mount Ceph FS using the FUSE client:
# ceph-fuse --keyring /etc/ceph/ceph.client.cephfs.keyring --name client.cephfs -m ceph-node1:6789 /mnt/cephfs
- To mount Ceph FS at OS boot, add the following lines to the
/etc/fstab
file on theclient-node1
:
...