LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Disk Space (https://www.linuxquestions.org/questions/linux-server-73/disk-space-881377/)

albye 05-18-2011 05:35 AM

Disk Space
 
Hi, I've got a question on free disk space. I'm currently running CentOS 5.5 on in Xenserver virtual environment. We've had an issue with disk space. My question is as follows: -

from a ssh connection i run df -h this gives the value of 90% used leaving me with 9GB. If I use system monitor via a VNC connection the free disk space value is 20GB free on the same volume. Which one is correct? I do use SNMP to monitor the same volume and should alert me when < 10% is free I know this works as I set the alert threshold to < 90% I get an alert. I'm some what confused.

atb
Alex

cepheus11 05-18-2011 05:52 AM

"df" counts whole filesystem blocks, which leads to a higher value of "used space" than the sum of all file sizes. Depending on the method this "system monitor" uses, this could explain the difference, although a difference of 10GB on a ~100GB partition seems a little high.

What does the following command say (can take some time because it counts all filesizes):
Code:

du -hs

albye 05-18-2011 10:04 AM

I've resolved this issue some strange happened to the VNC screen so I've restarted the VNC service and it appears to be in synch with the command line output.


All times are GMT -5. The time now is 02:49 PM.