The Network Filesystem (NFS) is one of the most popular sharable filesystem protocols that can be used with every Unix-based system. Unix-based clients that do not understand the CephFS type can still access the Ceph Filesystem using NFS. To do this, we would require an NFS server in place that can re-export CephFS as an NFS share. NFS-Ganesha is an NFS server that runs in user space and supports the CephFS FSAL (File System Abstraction Layer) using libcephfs
.
In this recipe, we will demonstrate creating ceph-node1
as an NFS-Ganesha server and exporting CephFS as an NFS and mounting it on client-node1
.
On
ceph-node1
, install packages required fornfs-ganesha
:# yum install -y nfs-utils nfs-ganesha nfs-ganesha-fsal-ceph
Since this is a test setup, disable firewall. For the production setup, you might consider enabling the required ports over a firewall, which is generally
2049
:# systemctl stop firewalld; systemctl disable firewalld
Enable the...