1752772 Members
5017 Online
108789 Solutions
New Discussion

Re: login hanging

 
SOLVED
Go to solution
Dennis Handly
Acclaimed Contributor

Re: login hanging

>The .sh_history file gets created by default.

 

Hmm, I wasn't aware there was a file based default.

 

>RPC lock daemons should be doing whatever the default is.

 

The problem is they get tired and stop working correctly and hang.  ;-)

 

>users have the same problem unless the histfile is redirected to local filesystem.

 

As expected if the RPC lock demons aren't working.

 

>Who is Dave?

 

Dave Olker

http://h30499.www3.hp.com/t5/user/viewprofilepage/user-id/3154

jerrym
Trusted Contributor

Re: login hanging

I've had to restart them in the past before. But I restarted them on this box already.

 

nfs.server, client stop/start

 

But I did not restart them on the nfs server. It would cause an outag I'm sure.

 

Dennis Handly
Acclaimed Contributor

Re: login hanging

>I've had to restart them in the past before.

 

That's using a hammer, you need a scalpel:

1) Kill rpc.statd and rpc.lockd ON BOTH SYSTEMS.
        $ ps -ef | grep rpc.lockd
        $ kill <rpc.lockd pid>
        $ ps -ef | grep rpc.statd
        $ kill <rpc.statd pid>

2) Remove all entries in /etc/sm and /etc/sm.bak ON BOTH SYSTEMS.
        $ rm -r /var/statmon/sm /var/statmon/sm.bak

3) Restart rpc.statd (first), then rpc.lockd, on both systems:
        $ /usr/sbin/rpc.statd
        $ /usr/sbin/rpc.lockd

 

http://h30499.www3.hp.com/t5/LVM-and-VxVM/korn-shell-hangs-while-using-NFS-home/m-p/2617417/highlight/true#M5691

jerrym
Trusted Contributor
Solution

Re: login hanging

Dennis. YOU ARE THE MAN!!!   It worked.  No more hangs. It took two logins to finally clear but

then it stopped hanging.

 

Thank you soo much for not giving up on me. It was really starting to bother me that users may

start logging in and getting hung sessions. 

 

I will remember this behavior with rpc.

 

 

 

Dennis Handly
Acclaimed Contributor

Re: login hanging

>Thank you so much for not giving up on me.

 

Unfortunately I've had decades of experience with this RPC hang and my shared history file.  :-(