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