This article is to show how to migrate from the NFS kernel server to the NFS-Ganesha server under CentOS Stream 9. The most important thing for migrating from one program to another program is how much downtime will be and what is expected to be done by the clients. In this case, what the clients are needed to do when NFS-Ganesha is used for the server?
Here are the main points when migrating from NFS Kernel Server to the NFS-Ganesha:
- The nfs-tuils and nfs-ganesha packages and in general, the two software, are perfectly fine installed on the same system. There are no conflicts when NFS Kernel Server and the NFS-Ganesha server are installed at the same time on the same system.
- The clients, do not need to do anything, except remount the NFS mounts.
- It should be installed a new community repository by installing the centos-release-nfs-ganesha5 package. The Special Interest Groups (SIG) maintains the repository and the group is within the CentOS community
For installation of NFS-Ganesha and a detailed information check out the older article on the subject – Simple export of a ext4 directory with NFS Ganesha 3.5 server in CentOS 8 with SELinux enforcing, Simple export of a ext4 directory with NFS Ganesha 3.5 server in CentOS 8 without SELinux and Create and export a GlusterFS volume with NFS-Ganesha in CentOS 8
Prerequisite – NFS Kernel Configuration
NFS Kernel Server is installed with nfs-utils packages (and its dependencies) and it has the following simple configuration:
[root@srv ~]# cat /etc/exports /mnt/storage 192.168.0.0/24(rw,sync,no_root_squash,no_subtree_check)
And here are the NFS services on the system:
[root@srv ~]# systemctl |grep nfs proc-fs-nfsd.mount loaded active mounted NFSD configuration filesystem var-lib-nfs-rpc_pipefs.mount loaded active mounted RPC Pipe File System nfs-idmapd.service loaded active running NFSv4 ID-name mapping service nfs-mountd.service loaded active running NFS Mount Daemon nfs-server.service loaded active exited NFS server and services nfsdcld.service loaded active running NFSv4 Client Tracking Daemon nfs-client.target loaded active active NFS client services
The server’s firewall has been tuned for the NFS kernel server, so no need to edit anything in the firewall for the NFS-Ganesha server.
Keep on reading!