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, then you can always use the FUSE (Filesystem in User Space) client for Ceph to mount CephFS.
Install the Ceph FUSE package on the
client-node1
machine:# apt-get install -y ceph-fuse
Create the CephFS keyring file,
/etc/ceph/client.cephfs.keyring
, with the following contents:[client.cephfs] key = AQAGSF5VMIDWHhAAox9s/oHg/6FPzf4xRQV73Q==
Mount CephFS using the Ceph FUSE client:
# ceph-fuse --keyring /etc/ceph/client.cephfs.keyring --name client.cephfs -m ceph-node1:6789 /mnt/cephfs
To mount CephFS at the OS boot, add the following lines in the
/etc/fstab
file onclient-node1
:id=cephfs,keyring=client.cephfs.keyring /mnt/cephfs fuse.ceph defaults 00
Umount and mount CephFS again:
# umount /mnt/cephfs # mount /mnt/cephfs