Linux Command Rpcinfo - Check Nfs Client Connection

1) Issue the following command on the NFS client to make sure the server is running all the NFS server processes:

/usr/bin/rpcinfo -p servername

The rpcinfo command should display the following processes:

rpcbind

nfs

mountd

status

nlockmgr

llockmgr

2) Issue the following command on the NFS client to make sure the rpc.mountd processed on the NFS server is available and responding to RPC requests:

/usr/bin/rpcinfo -u servername mountd

3) Issue the following command on the NFS client to check that the NFS server is exporting the directory you want to mount:

/usr/sbin/showmount -e server_name

4) If You Receive a “Device Busy” Message

If you receive the “device busy” message while attempting to mount a directory, try to access the mounted directory. If you can access it, then it is already mounted.

If you receive the “device busy” message while attempting to unmount a directory, a user or process is currently using the directory. Wait until the process completes, or follow these steps:

Issue the following command to determine who is using the mounted directory,

/usr/sbin/fuser -cu local_mount_point

The fuser (1M) command will return a list of process IDs and user names that are currently using the directory mounted under local_mount_point. This will help you decide whether to kill the processes or wait for them to complete.

To kill all processes using the mounted directory, issue the following command:

/usr/sbin/fuser -ck local_mount_point

Try again to unmount the directory.

Bobbin Zachariah 10:36 am

About Bobbin Zachariah

Founder of LinOxide, passionate lover of Linux and technology writer. Started his career in Linux / Opensource from 2000. Love traveling, blogging and listening music. Reach Bobbin Zachariah about me page and google plus page.

Author's All Posts
Like to become part of Linoxide Team and contribute tips? Contact us here.

Comments

Your email address will not be published. Required fields are marked *

All comments are subject to moderation.