NFS Mount command hangs if Portmap is not running

  • 3006009
  • 22-May-2006
  • 30-Apr-2012


Novell SUSE Linux Enterprise Server 9
Novell Open Enterprise Server (OES)
Novell Open Enterprise Server (Linux based)


NFS Mount command hangs for several minutes
NFS mount is eventually successful

Portmap service was not allowed to start during boot as a security precaution


This is expected behavior for the NFS client as it requires the nfslock service to be registered with portmap.  If portmap is not allowed to start at boot time, nfslock can not register.  When the NFS client attempts to mount an external file system export, it will make sure the nfslock is registered with portmap.  It will try several times to do so, eventually timing out anywhere from 3 to 11 minutes after the Mount command is issued.

If, as a security precaution, portmap needs to not be running on the server, this problem can be avoided by allowing both the portmap and nfslock services to start at boot time and then stopping the portmap service after the server is up.  This can be accomplished through the use of a shell script to issue the"rcportmap stop" command.