RHCSA RHEL 8 – Mount and unmount network file systems using NFS

Channel Avatar
RHCSA RHEL 8 - Mount and unmount network file systems using NFS
RHCSA RHEL 8 – Mount and unmount network file systems using NFS
Buy CSG Merchandise:
Your support on Ko-Fi is much appreciated:

More information on Sophos Home Antivirus:

More information about Hostinger VPS:

This video is based on RHEL 8.

Video to cover the section ‘Mount and unmount network file systems using NFS’ for the RHCSA (Red Hat Certified System Administrator).

More information on the required learning: http://bit.ly/rhcsa8

Notes from the video (also can be found on our website): https://csg.tech.blog/2020/01/05/mount-unmount-nfs/
Notes from the video:

NFS Server Build (
Note: this isn’t required knowledge for the RHCSA.

First on a new server install the NFS server (not required as part of the exam):

# yum groupinstall -y file-server

Add firewall rule.

# firewall-cmd –permanent –add-servicenfs

# firewall-cmd –reload

Start NFS at boot:

# systemctl enable rpcbind nfs-server

# systemctl start rpcbind nfs-server

Create directories to export:

# mkdir /home/nfs-share

# chmod 777 /home/nfs-share

Update the SELINUX contexts:

# yum install -y setroubleshoot-server

Enable SELINUX booleans:

# setsebool -P nfs_export_all_rw on
# setsebool -P nfs_export_all_ro on
# setsebool -P use_nfs_home_dirs on

Edit the /etc/exports file and create a new line with the following:

Restart nfs-server:

# systemctl restart nfs-server

Check the share is working:

# showmount -e localhost

NFS Client Setup (
This is the required section for the exam.

Install NFS-Utils (if not already installed):

# yum install -y nfs-utils

To mount temporarily:

# mount -t nfs /mnt

Check the mount is working:

# ls /mnt

# vi /mnt/somefile

To unmount:

# umount /mnt

To mount permanently edit /etc/fstab with the following line: /mnt nfs4 defaults 1 2

To test the fstab mount configuration force a mount:

# mount -a

#rhcsa #rhel #linux

Take the opportunity to connect and share this video with your friends and family if you find it useful.

Read Also

Leave a Reply

Your email address will not be published. Required fields are marked *