Introduction

NFS(Network File System) is a distributed filesystem protocol used to provides remote directory access on a server. This helps leveraging storage space in a different location and to write to the same space from multiple clients.

In this article, we will show how to configure NFS mounts on openSUSE. And the process would keep alike between different releases, such as Ubuntu, RHEL, CentOS, etc.

Server setup (openSUSE)

zypper in nfs-kernel-server

Make share

mkdir /var/nfs
echo 'hello' > /var/nfs/readme # create test file
echo '/var/nfs' >> /etc/exports

Start service

systemctl start nfs-server.service

Client setup (RHEL7)

yum install nfs-utils

Mount

mount -t nfs 192.168.249.195:/var/nfs /mnt/

Verify

local

[will@rhel ~]# exportfs
/var/nfs

remote

[will@rhel ~]$ showmount -e 192.168.249.195
Export list for 192.168.249.195:
/var/nfs *