Site icon ARKIT

NFS Server Configuration in RHEL7 Step by Step Guide

NFS Server in RHEL7

NFS Server Configuration in RHEL 7 Step by Step guide. NFS = Network File system which is used to share directories across the Unix/Linux Operating system. Which does not support directly cross platform.

NFS Server configuration in RHEL7


  1. Centralized Management of Files
  2. Everyone can access same data
  3. Secured with Firewalls and Kerberos
  4. Reduce Storage Cost and Easy to use

Server Profile:

NFS server side configuration

# yum install nfs-utils
# systemctl enable nfs-server
# systemctl start nfs-server

Enable Firewall ports to communicate with client

# firewall-cmd --permanent --add-service=nfs
# firewall-cmd --permanent --add-service=mountd
# firewall-cmd --permanent --add-service=rpc-bind

Above commands will enable the firewall ports from server to client

Create and Configure NFS share

# mkdir /ravi
# chown nfsnoboddy:root /ravi
#chmod 770 /ravi
# vim /etc/exports

Save & Exit (:wq)

# exportfs -avr

That’s it from server side configuration. 

Now we may get one question in mind that do we need to write NFS SELinux context to NFS shares and Services, Not required since NFS services default use kernel_t to run

Client Side Configuration

Login to client machine and try to ping to NFS server machine to confirm client is communicating with NFS server.

# showmount -e NFS-SERVER-IP
# showmount -r

To see the NFS shares, which are shared from NFS server

Manually mounting the NFS shares using mount command

# mount -t nfs -o sync /mnt/nfs
# df -h

Now you should to see an mount point /mnt/nfs

That’s it very easy and simple way to configure nfs server


You learn that how to install and configure NFS server in Linux

Please do comment your feedback on the same

File system Usage Monitoring Script

Reset root user password in RHEL 7

Stale File Handle Error Resolution

RHCSA video tutorial

Thanks for your wonderful Support and Encouragement