RHEL6: unable to stop or restart nfs service, even killing nfs server threads does not work

Solution Unverified - Updated -

Issue

  • We're unable to restart nfs service on one of the servers. Looks like the process is getting to a dead lock state.
  • Is there a better method to bring the nfs service back w/o server reboot?
  • I've tried to kill (kill -9) the nfsd processes (pid 3162 3161 3160 3159 3158 3157 3156 3155) but still no luck.
  • Example
[root@servername ~]# /etc/init.d/nfs status
rpc.svcgssd is stopped
rpc.mountd (pid 28093) is running...
nfsd (pid 3162 3161 3160 3159 3158 3157 3156 3155) is running...
rpc.rquotad (pid 28089) is running...
[root@servername ~]# kill -9 3162
[root@servername ~]# /etc/init.d/nfs stop
Shutting down NFS daemon:                                  [  OK  ]
Shutting down NFS mountd:                                  [  OK  ]
Shutting down NFS quotas:                                  [  OK  ]
Shutting down NFS services:                                [  OK  ]
[root@servername ~]# /etc/init.d/nfs status
rpc.svcgssd is stopped
rpc.mountd is stopped
nfsd (pid 3162 3161 3160 3159 3158 3157 3156 3155) is running...
rpc.rquotad is stopped
[root@servername ~]# /etc/init.d/nfs restart
Shutting down NFS daemon:                                  [  OK  ]
Shutting down NFS mountd:                                  [FAILED]
Shutting down NFS quotas:                                  [FAILED]
Starting NFS services:                                     [  OK  ]
Starting NFS quotas:                                       [  OK  ]
Starting NFS mountd:                                       [  OK  ]
Stopping RPC idmapd:                                       [  OK  ]
Starting RPC idmapd:                                       [  OK  ]
Starting NFS daemon:                                       [  OK  ]
[root@servername ~]# /etc/init.d/nfs status
rpc.svcgssd is stopped
rpc.mountd (pid 28323) is running...
nfsd (pid 3162 3161 3160 3159 3158 3157 3156 3155) is running...
rpc.rquotad (pid 28319) is running...

Environment

  • Red Hat Enterprise Linux 6
  • NFS server

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.