Create NFS Sharable Directory
Goal: Setup a shared directory across cluster using NFS
Designate one of the machine to host the data files. That is where we are going to host a NFS server. Suppose, server01.einext.com is your NFS file server.
On NFS Server
Install NFS applications
Start NFS services
Create a folder - consider this as data folder for your entire cluster.
Add the following line to /etc/exports file. * signifies any client can connect the NFS server. You restrict access by using server name or domain name.
Apply the new entry to the exports file
On the NFS Client machine
Verify that the nfs mount points are showing up.
Install the software
Create a mount point
On Mac OS
Verify mount points
Testing the access
Enter the mount details in fstab for persistence.
Add the following line
<nfs server name>:/data /mnt/nfs/data nfs auto,noatime,nolock,bg,nfsvers=3,intr,tcp,actimeo=1800 0 0
To reload all mount point after machine reboot, run the following command.