Solved

here's a cryptic one...

Posted on 2000-04-25
5
197 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

947 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now