rpc-statd fails to start, during boot as a result NFSv3 shares fail to mount.

Solution Verified - Updated -

Issue

A NFSv3 share fails to mount at boot time, if rpc-statd fails to start. Usually, this would be expected, considering mounting a NFSv3 share with locking (default), would require rpc-statd to be in running state.

The service status shows that it failed to start, since the operation had timed out:

 * rpc-statd.service - NFS status monitor for NFSv2/3 locking.
    Loaded: loaded (/usr/lib/systemd/system/rpc-statd.service; static; vendor preset: disabled)
    Active: failed (Result: timeout) since Mon 2022-10-24 08:38:31 GMT; 3min 15s ago

 Oct 24 08:35:34 <hostname> systemd[1]: Starting NFS status monitor for NFSv2/3 locking....
 Oct 24 08:35:34 <hostname> rpc.statd[1657]: Version 1.3.0 starting
 Oct 24 08:35:34 <hostname> rpc.statd[1657]: Flags: TI-RPC
 Oct 24 08:37:04 <hostname> systemd[1]: rpc-statd.service start operation timed out. Terminating.
 Oct 24 08:38:31 <hostname> systemd[1]: Failed to start NFS status monitor for NFSv2/3 locking..
 Oct 24 08:38:31 <hostname> systemd[1]: Unit rpc-statd.service entered failed state.
 Oct 24 08:38:31 <hostname> systemd[1]: rpc-statd.service failed.

If shares are mounted with nolock, mount operation doesn't fail as expected, however rpc-mountd fails to start with timeout, in place of rpc-statd:

 Mar 04 10:59:14 <hostname> systemd[1]: Starting RPC Bind...
 Mar 04 10:59:14 <hostname> systemd[1]: Started RPC Bind.
 Mar 04 10:59:14 <hostname> systemd[1]: Starting NFS status monitor for NFSv2/3 locking....
 Mar 04 10:59:14 <hostname> rpc.statd[8542]: Version 2.5.4 starting
 Mar 04 10:59:14 <hostname> rpc.statd[8542]: Flags: TI-RPC
 Mar 04 10:59:14 <hostname> systemd[1]: Started NFS status monitor for NFSv2/3 locking..
 Mar 04 10:59:14 <hostname> rpc.mountd[8543]: Version 2.5.4 starting
 Mar 04 10:59:14 <hostname> rpc.mountd[8543]: Caught signal 15, un-registering and exiting.
 Mar 04 10:59:14 <hostname> systemd[1]: nfs-mountd.service: Failed with result 'timeout'.
 Mar 04 10:59:14 <hostname> systemd[1]: Failed to start NFS Mount Daemon.

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9
  • opsware-agent
  • rpcbind
  • rpc-mountd
  • rpc-statd

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content