1832856 Members
2914 Online
110047 Solutions
New Discussion

Re: ls -l hangs in /net

 
Carme Torca
Super Advisor

ls -l hangs in /net

Hi,

I have a problem, when I do ls -l, its hangs.
The same when I do fuser /net or cd /net.

I have nfs filesystems mounts in it.
What can I do?
Thanks!,
Carmen.
Users are not too bad ;-)
9 REPLIES 9
Frank de Vries
Respected Contributor

Re: ls -l hangs in /net

What happened ? Was the connection lost ?

Then you best reconnect properly.

umount /net

And you may try to stop and start
the nfs deamons.

Depending on whether this is the client
or server or both you can
/sbin/init.d/nfs.client stop
/sbin/init.d/nfs.server stop
/sbin/init.d/nfs.client start
/sbin/init.d/nfs.server start

mount /net



Look before you leap
Paul Sperry
Honored Contributor

Re: ls -l hangs in /net

I agree with frank.
What does bdf show? Does it hang too?
Bill Hassell
Honored Contributor

Re: ls -l hangs in /net

It is very common to have commands hang for network filesystems when the networking is overloaded, badly configured or your NFS server is not working. All filesystems in HP-UX must work correctly or many commands will hang or fail.


Bill Hassell, sysadmin
Mark Ellzey
Valued Contributor

Re: ls -l hangs in /net

Hi,

You must also check for proper name resolution. If this host cannot resolve the NFS server's hostname, you will also see this problem.

Regards,
Mark
siva0123
Trusted Contributor

Re: ls -l hangs in /net

Hi ,


Try to unmount the file system which is having issue and restart the nfs dameons.

also please ensure that the nfs server which is sharing that filesystem is alive.

Thanks,
Siva
Jeff Wilkins
Valued Contributor

Re: ls -l hangs in /net

You most likely have a mounted nfs that is not available. More than likely you will not be able to umount. Follow Franks stop commands. If this does not work comment out the likely not available nfs mount and restart.

I have had this happen before. I came in and noticed all my file system backups fail because of a lost nfs mount was causing network timeout error in netbackup. One reason I don't like mounting nfs on a server.
jfwilkins@hotmail.com
Frank de Vries
Respected Contributor

Re: ls -l hangs in /net

Please do not forget to assign points:

http://forums1.itrc.hp.com/service/forums/helptips.do?#28

Thanks
Look before you leap
Ganesh Balraman
Regular Advisor

Re: ls -l hangs in /net

Run the following Command and it should respond Ready and wait.
Step1:
#rpcinfo -u nfsd
#rpcinof -u rpc.statd
#rpcinfo -u nfsd
#rpcinfo -u rpc.statd

or

Step2:Restart nfs server daemons.

or

Finally reboot the nfs server.

Regds
B.Ganesh
MHudec
Frequent Advisor

Re: ls -l hangs in /net

Hello Carmen,


advices for nfs server side were already given, I just would add one for the client side.

It might prove better to use autofs to mount nfs stuff instead of having entries directly in /etc/fstab. It might cause some headache during boot when nfs server is not available as system will wait until nfs server becomes available.

Steps:

1. Setup /etc/rc.config.d/nfsconf:
AUTOFS=1
AUTO_MASTER="/etc/auto_master" AUTOMOUNT_OPTIONS=""
AUTOMOUNTD_OPTIONS=""

2. Check also for following in nfsconf:
NFS_CLIENT=1
NFS_SERVER=1
NUM_NFSD=4
NUM_NFSIOD=4

3. Setup /etc/auto_master:
/- /etc/auto.direct

4. Setup /etc/auto.direct:
:

5. Restart automounter:
/sbin/init.d/nfs.client stop
/sbin/init.d/nfs.client start