How to setup NFS Server on CentOS 7
NFS Network File System is a distributed file system protocol originally developed by Sun Microsystems in 1984, allowing a user on a client computer to access files over a computer network much like local storage is accessed. NFS, like many other protocols, builds on the Open Network Computing Remote Procedure Call (ONC RPC) system. The NFS is an open standard defined in Request for Comments (RFC), allowing anyone to implement the protocol.
NFS server and client installation on CentOS 7 http://cn.linux.vbird.org/linux_server/0330nfs.php
Installing NFS Server
Once the packages are installed,enable and start NFS services.
Creating NFS Share:
Note: You can also share your existing directory with NFS.
Allow client servers to read and write on the created directory
We have to modify file to make an entry of directory that you want to share
Configuring NFS client:
We need to install NFS packages on NFS client-server in order mount remote filesystem, install NFS packages using below command.
Once the packages are installed, enable and start NFS services.
systemctl enable rpcbind systemctl start rpcbind
Mounting NFS shares on clients:
Before mounting the NFS share, we need to check the available shares on the NFS server. To do that, run the following command on the client-server.