Solved

here's a cryptic one...

Posted on 2000-04-25
5
200 Views
Last Modified: 2010-04-20
i suppose this one might be solved by rebooting but that's not exactly a favorable option.  this is occuring while i telnet into the system since it is in a remote location.  basically when i run "df -k" my session hangs.  also if i'm in / and run "ls -l" it hangs.  i can run "ls -l" in any other directory and it doesn't hang and i can run "ls" in / and it doesn't hang.  any ideas?  the easy option is just to reboot but that's not exactly the solution i'm looking for since there are users on it constantly.
0
Comment
Question by:kyrios
  • 3
  • 2
5 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 2750157
Does the system mount have any NFS mounts at the root level? Is there more than one disk mounted at the root level? If "df" or "cd /; ls" hangs, that's a sign that something mounted at the root level isn't accesible.
0
 

Author Comment

by:kyrios
ID: 2751942
i checked fstab and no there are no nfs mounts at the root level.  there are two raids connected at the root level though; however, i can access each of those drives without hangup.

well, now here is the cryptic thing.  "ls" by itself works at the root level but "ls -l" doesn't and "df" doesn't.
0
 
LVL 40

Accepted Solution

by:
jlevie earned 200 total points
ID: 2752688
What happens if you do "for dir in /*; do ls -ld $dir; done". If the oddness is confined to a specific root path, it ought to hang at that dir. You can tell which is the problem by getting the same list (presumably without hanging) by "for dir in /*; do ls -d $dir; done". Knowing what it doesn't like may be helpful in figuring out what's happening.
0
 

Author Comment

by:kyrios
ID: 2752777
excellent!  i found out it was a directory that someone was trying to put an nfs mount on but badly misconfigured it.
0
 
LVL 40

Expert Comment

by:jlevie
ID: 2752866
Well, I'm glad that was it, I was beginning to think it might some strange thing with an corrupted inode (in a way it sort of was, but fortunately not in a catastrophic way).
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question