Book Image

Troubleshooting CentOS

By : Jonathan Hobson
Book Image

Troubleshooting CentOS

By: Jonathan Hobson

Overview of this book

Table of Contents (17 chapters)
Troubleshooting CentOS
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Mounting NFS shares on a CentOS client


Assuming that your server is currently providing NFS shares, we will now investigate the client workstation in order to ensure that everything is working correctly. This is a task that every troubleshooter needs to know and perfect.

To begin, the client must be using the nfs-utils package like this:

# yum install nfs-utils

Having completed the installation for the nfs-utils package, you must now create mount points in the following way:

# mkdir -p /path/to/mount/point

For example, to suit your needs, the preceding command may read as follows:

# mkdir -p /mnt/nfs/home

Now start the relevant services like this:

# systemctl enable rpcbind
# systemctl enable nfs-server
# systemctl enable nfs-lock
# systemctl enable nfs-idmap
# systemctl start rpcbind
# systemctl start nfs-server
# systemctl start nfs-lock
# systemctl start nfs-idmap

Finally, we can now mount the NFS share on the client workstation in the following way:

# mount -t nfs XXX.XXX.XXX.XXX:/path...