NFS Client Deployment Guide#
The following instructions are for deploying the NFS Client.
Prerequisites#
This guide is written for a Red Hat Enterprise Linux 8 based operating system which is operating within a cluster of systems and the following are the prerequisites:
References#
Instructions are based on the following documentation:
https://www.server-world.info/en/note?os=Rocky_Linux_8&p=nfs&f=2
Deployment Scripts#
An example bash script of the instructions has been provided:
deploy-nfs-client.sh
Deployment Steps#
Note
Instructions assume execution using the root
account.
Warning
When NFS mounting the /home
directory ensure that only one mount for /home
is defined in /etc/fstab
.
Install required NFS client packages:
dnf -y install nfs-utils
Set the Domain Name:
Important
Replace
engwsc.example.com
with the domain name of your network.sed -i 's/#Domain = local.domain.edu/Domain = engwsc.example.com/g' /etc/idmapd.conf
Create local directories:
mkdir -p /app mkdir -p /home mkdir -p /scratch
Add the NFS mounts to
/etc/fstab
to enable them at boot:
Important
Replace
engwsc.example.com
with the domain name of your network.cat >> /etc/fstab <<EOL # NFS Mounts nfs01.engwsc.example.com:/srv/nfs/app /app nfs4 defaults,tcp,soft,nfsvers=4 0 0 nfs01.engwsc.example.com:/srv/nfs/home /home nfs4 defaults,tcp,soft,nfsvers=4 0 0 nfs01.engwsc.example.com:/srv/nfs/scratch /scratch nfs4 defaults,tcp,soft,nfsvers=4 0 0 EOL
Reload fstab in systemd:
systemctl daemon-reload
Mount the NFS paths:
mount /app mount /home mount /scratch