LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Wrong space usage! (https://www.linuxquestions.org/questions/linux-general-1/wrong-space-usage-870714/)

badihi 03-24-2011 08:38 AM

Wrong space usage!
 
Hello there.
I have a debian linux on my server. My disk space is only 10GB. When I check the space usage with discus program, it says:

Mount Total Used Avail Prcnt Graph
/ 9.39 GB 8.30 GB 1.10 GB 88.3% [*********-]
+ib/init/rw 124.3 MB 0 KB 124.3 MB 0.0% [----------]
/sys 0 KB 0 KB 0 KB 0.0% [----------]
/dev 120.1 MB 92 KB 120.0 MB 0.1% [----------]
/dev/shm 124.3 MB 0 KB 124.3 MB 0.0% [----------]

But when I use this command:
du / --max-depth=0
It says:
1860864 /

Why the stats of discus is not like du command?

Thanks

EricTRA 03-24-2011 09:14 AM

Hello,

The du command displays in units of blocks which might have different sizes, depending on what filesystem you use and how it's defined at install. Use the -k parameter to display in kilobytes or -h to have 'human readable' output. You'll get another output.

Kind regards,

Eric

badihi 03-24-2011 10:03 AM

Thanks Eric,
But I tried -h option with du and the output was:

1.8G /

And -k option:

1861000 /

But discus is still like above.
What's wrong here?

Thanks

EricTRA 03-24-2011 10:11 AM

Hi,

Can you check if you have any open files that have a status deleted?
Code:

lsof | grep deleted
I've had this happen in the past with lots of open files with status deleted after someone deleted files owned by httpd but didn't restart httpd. Run the check as above and see if anything strange draws your attention. If there's a process with lots of those deleted files, restart the process and check the difference between du and discus again.

Kind regards,

Eric

badihi 03-24-2011 10:28 AM

Problem solved, Thanks Eric!
MySQL had some huge deleted files and because it was not restarted, the space did not freed after deletion of files. When I restarted this, the problem solved!
I think you are very expert in linux Eric!
Thaks for your help!

EricTRA 03-24-2011 11:19 AM

Hello,

Glad you got it solved! You're welcome. If you consider your problem solved then please mark it as such using the Thread Tools.

Kind regards,

Eric


All times are GMT -5. The time now is 12:33 AM.