Solved

here's a cryptic one...

Posted on 2000-04-25
5
202 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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…
Suggested Courses

615 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