Operating System - HP-UX
1833159 Members
3142 Online
110051 Solutions
New Discussion

Re: korn shell hangs while using NFS /home

 
SOLVED
Go to solution
jok llamera
Advisor

korn shell hangs while using NFS /home

hi fellas,

I have a problem with NFS. All of my users hangs while logging using korn shell. My /home directory is an NFS and I dont have any problem with C-Shell. I have browse some documents like setting HISTFILE to point to local filesystem or setting 777 for .sh_history file but in my system this is impossible. Some of my machines were working fine using the same NFS /home.

Is there any patches need for this or there might be a simple twik on this other than what is stated above.

thanks,
joks
Excelence is not an act but a hobby
4 REPLIES 4
Alex Glennie
Honored Contributor

Re: korn shell hangs while using NFS /home

not sure of the O/S here but I;m curious to know why you cant have a local history file ?

Oherthan that it *maybe* worth ago :

edit /etc/rc.config.d/nfsconf and add

LOCKD_OPTIONS="-p 4045" ?

It's had mixed results in the past but sometimes helps ?
Sebastien Masson
Valued Contributor
Solution

Re: korn shell hangs while using NFS /home

it's a rpc.lockd and rpc.statd problem. You need to patch your NFS server/client. Korn shell try to lock the history file and NFS freeze....

For now try something like:

/sbin/init.d/nfs.client stop
(be sure rpc.stat.d and rpc.lockd are stoped)
rm -rf /var/statmon/sm
rm -rf /var/statmon/sm.bak
/sbin/init.d/nfs.client start

If this does't fix the problem, do the same thing on server side (but by stop nis.client and nis.server)
Roger Baptiste
Honored Contributor

Re: korn shell hangs while using NFS /home

hi,

If it works on C and not on Korn, the immediate inference one can draw is the HISTORY file (as you had already pointed out).

Atleast for testing, can you point the HISTFILE of one userid to the local filesystem and try logging in? it will confirm this for sure. Make sure the directory where the HISTFILE is pointed is writable by the userid.

Is this on a 10.20 box?? Make sure you have got all the NFS related patches on the box. Check for the cumulative NFS patch. If nothing works, restart the NFS client on the box.

-raj
Take it easy.
Sanjay_6
Honored Contributor

Re: korn shell hangs while using NFS /home

Hi Joks,

Take a look at the thread below, This solution is for 10.20.

http://us-support.external.hp.com/cki/bin/doc.pl/sid=f13d048a0af44cebcc/screen=ckiDisplayDocument?docId=200000034353594

The latest patch in this category is PHNE_24143

Hope this helps.

Regds