NFS server
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-serverMake share
mkdir /var/nfs
echo 'hello' > /var/nfs/readme # create test file
echo '/var/nfs' >> /etc/exportsStart service
systemctl start nfs-server.serviceClient setup (RHEL7)
yum install nfs-utilsMount
mount -t nfs 192.168.249.195:/var/nfs /mnt/Verify
local
[will@rhel ~]# exportfs
/var/nfsremote
[will@rhel ~]$ showmount -e 192.168.249.195
Export list for 192.168.249.195:
/var/nfs *