Configuring an NFS client to use a shared filesystem

This recipe continues where the previous recipe left off, showing you how to configure NFS on a client system.

Getting ready

This recipe requires a CentOS system with a working network connection. It assumes that an NFS server has been configured as explained in the previous recipe. You'll also need administrative privileges provided by logging in with the root account.

How to do it...

Follow these steps to configure an NFS client:

  1. Install the nfs-utils and libnfsidmap packages:
    yum install nfs-utils libnfsidmap
    
  2. Create the directory which will serve as the mount point for the remote filesystem:
    mkdir /mnt/nfs
    
  3. Start the rpcbind service and register it so that it will start when the server boots:

Get CentOS 7 Server Deployment Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.