1832681 Members
3042 Online
110043 Solutions
New Discussion

ls -l not responding

 
Gary Yu
Super Advisor

ls -l not responding

Hi all,

we had a strange problem with ls command, when I cd to root directory, and run a ls, I got the file/directory list, but any option with ls, e.g ls -l or ls -p will hang, nothing returned. it only happened to root directory '/', in any sub-directories they are OK.

I have noticed some entries in the syslog like
"May 15 14:43:59 test1 vmunix: NFS server (pid864@/net) not responding still trying. "
the process 864 is automount, we don't have any NFS file system on the sever, and we are not using automount, so I kill the process, disable automount and restart nfs.core and nfs.client. there're no entries in syslog about automount anymore, but the problem still exists, any idea?

thanks,
Gary
2 REPLIES 2
Khalid A. Al-Tayaran
Valued Contributor

Re: ls -l not responding


Hi,

From your syslog you have NFS enabled. Your server is waiting for an NFS server/client to respond. Just set a time out to disconnect when not responding. Commands like bdf, ll , ls will not respond.
Paula J Frazer-Campbell
Honored Contributor

Re: ls -l not responding

Hi Garry

In /etc/rc.config.d/nfs.conf change to the following :


NFS_CLIENT="0"
NFS_SERVER="0"


Then

cd /sbin/init.d
./nfs.server stop
./nfs.client stop

Paula

If you can spell SysAdmin then you is one - anon