Showing results for 
Search instead for 
Did you mean: 

df command hangs

Paul Wasik
Frequent Advisor

df command hangs

Hello, I have one filesystems which ocasionally boasts a 10 second delay with the df command. there are no other (of 45) filesystems. I'm in search of better or more troubleshooting techniques and commands to determine the casue of the dealy. 


you can see here, I have a delay:



[root@umndapp55 log]# time df /plnk/tlg/tlg2
Filesystem           1K-blocks      Used Available Use% Mounted on
                      28288000     88596  26437043   1% /plnk/tlg/tlg2

real    0m10.001s
user    0m0.000s
sys     0m0.001s



system info:

[root@umndapp55 log]# uname -a ; uptime ; date ;cat /etc/redhat-release
Linux umndapp55 2.6.18-164.el5 #1 SMP

Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
 13:31:41 up 16 days, 10:36, 19 users,  load average: 0.57, 0.72, 0.72
Tue Oct 11 13:31:41 CDT 2011
Red Hat Enterprise Linux Server release 5.4 (Tikanga)

Johan Guldmyr
Honored Contributor

Re: df command hangs


So df is only slow towards /plnk/tlg/tlg2
but not to any of the other (45??) file systems?

Then I'd wonder what kind of file system is on this disk.. and what kind of underlying disks, controller, server, etc.

iostat (check load on the disk)
Modris Bremze
Esteemed Contributor

Re: df command hangs

umount and fsck the file system. Check if there are there any processes heavily using that disk (sar), SAN, connections.