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:
- Install the
nfs-utils
andlibnfsidmap
packages:yum install nfs-utils libnfsidmap
- Create the directory which will serve as the mount point for the remote filesystem:
mkdir /mnt/nfs
- 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.