Operating System - HP-UX
1825706 Members
3332 Online
109686 Solutions
New Discussion

rpc.lockd process locked up

 
SOLVED
Go to solution
David Owens_1
Advisor

rpc.lockd process locked up

I have a HP D330 NFS server running HP-UX 11.0. Recently, several users have called and complained about intermittent (5-20 seconds) lockups from their HP-UX client workstation. I logged into the NFS server and noticed the rpc.lockd process appears to be hung up for some reason.

1) Does anyone know what would cause this process to lock up?

2) Does anyone know a way to gracefully unlock without affecting users currently mounted?

3) Is there a kernel parameter or patch that may prevent this from happening?

Any help would be appreciated.

Thanks,
David
4 REPLIES 4
Tim D Fulford
Honored Contributor
Solution

Re: rpc.lockd process locked up

Take a look at the following thread. There are patches for 10.20 & 11.00 for rpc.lokd

11.00 phne_20627 & 20371 & 10.20 phne_22288

or just search rpc.lockd with patches box ticked

Tim
-
Tim D Fulford
Honored Contributor

Re: rpc.lockd process locked up

S.K. Chan
Honored Contributor

Re: rpc.lockd process locked up

1) Can be a few reasons. For example your program that issue the rpc lockd request to the server does not get a respond back fro the server.
2) This is what you should do to clear the problem .. (first do this on the client side and then on the server side)
a. Kill rpc.lockd and rpc.statd
# ps -ef|grep rpc.lockd
# kill
==> repeat for rpc.statd
b. Delete all files in /var/statmon
# rm -R /var/statmon/sm.bak
# rm -R /var/statmon/state.bak
# mv /var/statmon/sm /var/statmon/sm.bak
# mv /var/statmon/state /var/statmon/state.bak
3. Restart rpc.statd and rpc.lockd
# /usr/sbin/rpc.statd
# /usr/sbin/rpc.lockd
3) No

I am attaching a really nice writeup on Network Lock Manager. I suggest you go through it to understand the "mechanics" on RPC. Also there is a section on how to troubleshoot the problem is it gets serious.
Mark Greene_1
Honored Contributor

Re: rpc.lockd process locked up

After you've checked and applied any of the patches recommended above, you can diagnose rpc and nfs issues like this:

UNIX95= ps -efH|head -1; UNIX95= ps -efH|egrep "inetd|rpc|mount|nfs"|grep -v grep; rpcinfo -p|egrep "service|nfs"; showmount -e; mount -p

This will show you the current rpc/nfs config as utilized on the system. You can also do "rpcinfo -m" for more stats.

HTH
mark
the future will be a lot like now, only later