- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ls -l not responding
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2003 06:59 AM
05-15-2003 06:59 AM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2003 07:06 AM
05-15-2003 07:06 AM
Re: ls -l not responding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2003 07:09 AM
05-15-2003 07:09 AM
Re: ls -l not responding
It seems it is trying to reach some other server and some of the root files will be NFS.
ls -l will display the complete reference path also.
Thanks
Zafar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2003 07:10 AM
05-15-2003 07:10 AM
Re: ls -l not responding
If you dont have an nfs mount .. I beleive that the only way to fix this is to reboot the server.
If you want to disable nfs from starting at boot up you can go to /etc/rc.config.d/
vi nfsconf
and change
NFS_CLIENT=1
NFS_SERVER=1
to
NFS_CLIENT=0
NFS_SERVER=0
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2003 07:14 AM
05-15-2003 07:14 AM
Re: ls -l not responding
/net -hosts -soft
This automount/autofs configuration allows to access remote host's file systems via the path /net/
Now you have killed the automounter, but the kernel still monitors the mount point for it... I'm afraid, you will only get rid of this problem by rebooting. Comment out the auto_master entry before, if you don't need the functionality.
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2003 07:18 AM
05-15-2003 07:18 AM
Re: ls -l not responding
thanks all for the reply.
bdf works but ll doesn't either. I found the problem is the /net directory which automount uses. when I try to "cd /net" it hangs, and after Ctlr-C, it said :
sh: /net: The specified directory is not valid.
and any operations on /net will hang. so the question now is, how to release /net or delete /net ?
thanks,
Gary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2003 07:28 AM
05-15-2003 07:28 AM
Re: ls -l not responding
didn't see your reply when I was typing, I think you are right, although automount is killed, /net still not released. is reboot the only option?
BTW, will it cause other problems other than "ls", I may not have a chance to reboot the server in a while, I just want to know can I live with it before restart ?
thanks,
Gary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2003 07:35 AM
05-15-2003 07:35 AM
Solutionthe only problem is that e.g. open() or stat() the /net directory hangs (interruptable). Your ll does a stat() on files/dirs it sees, just to print the timestamps, etc.
Other parts of the system should not be affected, so it should be no problem to wait until the next planned downtime. However, scripts could get stuck while accessing /net.
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2003 07:39 AM
05-15-2003 07:39 AM
Re: ls -l not responding
If no process is accessing files from /net then it wont be a problem until reboot.
To find out which process are accessing try lsof package.
lsof -b /net
Kill if any process comes out as a result.
HTH
Umapathy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2003 08:57 AM
05-15-2003 08:57 AM
Re: ls -l not responding
I did not know about auto_master. I had this issue and looked and looked and like you said the only solution is to reboot but i was never able to find out how to prevent it. Execpt for stop or disabling nfs.
I do have one question. On one server when I look at /etc/auto_master it tells me
## Configured using SAM by root on Thu Mar 27 21:26:31 2003
With nothing in it.
On another server ( the one that I had the problem with /net )
I do see the entry.
Would you happned to know what why they are different?
Thanks
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2003 09:41 AM
05-15-2003 09:41 AM
Re: ls -l not responding
normally you should not get into problems forcing a reboot. However there, there are versions of automount that are known to cause such things... usually they get solved by installing the latest NFS/ONC cumulative patch. But if you don't use/need NFS at all then disabling is the easiest workaround.
Concerning your auto_master file... looks like someone used SAM to configure it. You are able to do some from the "Networking and Communications" -> "Networked File Systems" area.
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2003 09:43 AM
05-15-2003 09:43 AM