Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Guck Puppy on October 24, 2003, 01:46:08 AM

Title: using df "hangs" my terminal
Post by: Guck Puppy on October 24, 2003, 01:46:08 AM
This is bloody weird.

in SSH, when I type:
 df -h
it will print out the relevant info just fine : e.g.
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda3             110G   96G  8.2G  93% /
/dev/hdb1             110G   70G   35G  67% /home/e-smith/files/ibays
/dev/hda1              99M  8.7M   84M  10% /boot
none                  247M     0  247M   0% /dev/shm

But then it just hangs. Can't ctrl-c, ctrl-break.

I thought "I know, let'd try it on the console" which was stupid. Now that's hung too. whatever i type just gets echoed back to me and i can't get back to the prompt - even alt-f2 to get a new console won't work.

I had a quick look at the running processes for df commands - there are several, this has been buggin me a few days :
root    25301  432 ?        D    Oct19   0:00 /bin/df --block-size=1 --local
root    26586  440 tty1     D    Oct19   0:00 df -h
me       1353  420 ?        D    Oct21   0:00 df -h
me       2902  420 ?        D    Oct22   0:00 df -h
me       5933  420 pts/3    D    08:55   0:00 df -h
me       6850  444 pts/4    D    13:01   0:00 df -h --sync
root     6926  596 tty2     D    13:31   0:00 df -h
me       6992  496 ?        D    13:39   0:00 df -h

I can't seem to kill -9 them...

Anyone any ideas?

G
Title: Re: using df "hangs" my terminal
Post by: Guck Puppy on October 24, 2003, 02:02:44 AM
http://www.thelinuxlink.net/pipermail/lvlug/2003-May/007471.html

Seems that the "D" status from PS indicates "uninterruptible sleep" probably due to some faulty hardware. I had a shitty old drive mounted (since unmounted, but it would fit that it caused the problem).

So, have to reboot to get df working again. Sucky.

G
Title: Re: using df "hangs" my terminal
Post by: Krusty on October 24, 2003, 04:25:01 AM
I know you tried ALT + F2 but did you try ALT + F3 to see if it signed you out of the console?????
Title: Re: using df "hangs" my terminal
Post by: Guck Puppy on October 24, 2003, 04:30:56 AM
Uh, I thought that alt f1 - f9 are all consoles... what is so special about alt-f3?

G
Title: Re: using df "hangs" my terminal
Post by: Byte on October 24, 2003, 01:41:10 PM
nothing special, only alt F2 and F3 are available under SME far as im aware.