How-To: Troubleshoot NFS

How-To: Troubleshoot NFS

I’ve been using NFS ever since but not exactly the one to set up the server. When the ff. problem occurred, I never imagined I have very little idea as to where to start troubleshooting: Could not chdir to home directory /home/User: No such file or directory.

Well i know the directory’s shared via NFS from another server, so i had to start from there. So here’s a short list of things to check or do (Redhat/Fedora/CentOS based):

On the server:

  1. Make sure NFS is running. Two services should be running: portmap and the NFS service. Try to restart the services.
  2. portmap: /etc/init.d/portmap restart
    nfs: /etc/init.d/nfs restart
    Check if it runs at startup.
    chkconfig --list | grep nfs
    chkconfig nfs on

  3. Check /etc/exports. This is a list of shared volumes
  4. /export 10.1.2.0/24(rw,sync,root_squash,no_wdelay,no_subtree_check,secure)

  5. Check /etc/hosts.allow and /etc/hosts.deny. Lists allowed remote and denied clients to access the server.
  6. ALL: 10.36.13.0/24

On the client:

  1. Mount/unmount the remote directory.
  2. mount 10.2.3.4:/export/ /mntpt

  3. Check /etc/fstab. This should mount the nfs system at boot time.
  4. # device mountpoint fs-type options dump fsckorder
    10.2.3.4:/export/ /mntpt/ nfs soft,nfsvers=2 0 0

The unfortunate thing is I don’t have root privileges on either the server or client. I’m helpless.

Note: Network File System (NFS) allows machines to mount a disk partition on a remote machine as if it were a local disk. For more on NFS, click here.

Comments are closed.