1827078 Members
1391 Online
109713 Solutions
New Discussion

"ls -al" not responding

 
SOLVED
Go to solution
Onur Sirin_1
Frequent Advisor

"ls -al" not responding

Hi,
I have a server HP UX 11.11.
On root domain, "ls -al" command is not responding.
When I enter "ls -al" command on /,
it waits and gives no response.
But "ls" command is working.

What is the reason of problem??

Thanks & Best regards.
8 REPLIES 8
Keith Bryson
Honored Contributor

Re: "ls -al" not responding

Is a 'bdf' responding? If not, this could be an issue with NFS. Do you have any remote NFS mounts on this server?

Keith
Arse-cover at all costs
Florian Heigl (new acc)
Honored Contributor

Re: "ls -al" not responding

If it is not nfs-related (but that IS the reason in 99% of cases), it might be some alias issue.
yesterday I stood at the edge. Today I'm one step ahead.
Hoang Minh Tuan
Regular Advisor

Re: "ls -al" not responding

maybe the reason is alias setting, check by issue command #alias. If it have, unalias it by command #unalias

You also check bdf, maybe the file system is full and pvdislay, lvdisplay /dev/vg00/lvol3 to show out abnormal information.

HMT
Bus wait at bus station, Work wait at my work station
Onur Sirin_1
Frequent Advisor

Re: "ls -al" not responding

Hi,
yes you're right. IT seems a NFS problem.
When I wait long time, it gives the error below:
"NFS server (pid774@/net) not responding still trying"

Any suggestions?
Govinda_1
Valued Contributor

Re: "ls -al" not responding

hi,

Check if your NFS server is alive, and all the NFS mounts are available, check using bdf see all the mounts are available. if your not using NFS. u can stop the nfs server/client.

#/sbin/init.d/nfs.server stop
#/sbin/init.d/nfs.client start


Thanks & Regards,
Govinda G.
Keith Bryson
Honored Contributor
Solution

Re: "ls -al" not responding

Be aware - you will probably have to re-boot to clear this - NFS sucks sometimes.

KB
Arse-cover at all costs
Steven E. Protter
Exalted Contributor

Re: "ls -al" not responding

You may get some help by looking at the file /var/adm/syslog/syslog.log

If there are a lot of files to be listed, this command can be a significant CPU hog and take a long time to finish.

Generally, root should not have real files, just folders to mount.

ps -ef | grep nfsd

Will show you how many nfs processes you have running.

Errors, even misplaced dots in network configuration /etc/rc.config.d/netconf can hang nfs up pretty well.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Onur Sirin_1
Frequent Advisor

Re: "ls -al" not responding

Hi,
it was a NFS problem.
Restarting nfs daemons didn't solve the problems.
After rebooting the machine, problem is fixed.
Thanks for all replies
Best regards