LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-24-2011, 08:38 AM   #1
badihi
LQ Newbie
 
Registered: Feb 2010
Posts: 29

Rep: Reputation: 0
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
 
Old 03-24-2011, 09:14 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
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
 
1 members found this post helpful.
Old 03-24-2011, 10:03 AM   #3
badihi
LQ Newbie
 
Registered: Feb 2010
Posts: 29

Original Poster
Rep: Reputation: 0
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
 
Old 03-24-2011, 10:11 AM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
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
 
Old 03-24-2011, 10:28 AM   #5
badihi
LQ Newbie
 
Registered: Feb 2010
Posts: 29

Original Poster
Rep: Reputation: 0
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!
 
Old 03-24-2011, 11:19 AM   #6
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
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
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
partition space and disk space usage and free don't match nsic Linux - Newbie 3 02-22-2013 12:57 PM
Wrong disk free space (VERY wrong) macrojd Linux - Server 12 05-17-2009 02:14 AM
What is wrong with reiserfs? wrong free space mesh2005 Linux - General 1 05-03-2007 07:21 AM
df reports wrong disk usage Mathieu_G Linux - General 4 04-13-2005 02:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration