Solved

here's a cryptic one...

Posted on 2000-04-25
5
196 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 Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

760 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

23 Experts available now in Live!

Get 1:1 Help Now