LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-01-2008, 05:35 AM   #1
ongi
LQ Newbie
 
Registered: Feb 2006
Posts: 4

Rep: Reputation: 0
Disk free result "df" differs from "du"


Hi,
the command "df -h" reports 101G whereas "du -h --max-depth=1" reports 62G on my partition /data (ReiserFS, size 104G, raid5) running on a file server with Suse 10.0.
Total number of files: 152412
Number of small files (< 5k): 73573
Where is the rest of disk space (39G) ?
 
Old 04-01-2008, 06:21 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
df reports on the whole partition

du reports on the disk space used by specific files / directories

What is the complete output of df?---ie Size, Used, Avail
 
Old 04-01-2008, 06:53 AM   #3
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
Files might have been deleted, but might still be 'in use' by processes. That can explain the difference and a reboot should solve that.

If you know which files are 'involved', you can find the responsible process with the lsof command and stop/start that process which also should clear the situation.

Last edited by Wim Sturkenboom; 04-01-2008 at 06:56 AM. Reason: added lsof paragraph
 
Old 04-01-2008, 07:07 AM   #4
ongi
LQ Newbie
 
Registered: Feb 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Hi pixellany,
thanks for your quick answer !

Here is the complete output of df -h
Size = 104G
Used = 100G
Avail = 3.6G
Use% = 97%
Mounted on: /data

So partition is nearly full.
 
Old 04-01-2008, 07:10 AM   #5
ongi
LQ Newbie
 
Registered: Feb 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Hi Wim,

thanks for you quick answer !

I will do a reboot on that machine cause I do not know what files are involved.

Yesterday I did the reboot, here the results:
linux starts in maintenance mode
reiserfsck --check reports exit-code 4
reiserfsck --rebuild-tree runs pass 0, 1 but does not finish pass 2
reboot and run rebuild again for three times with the same result: hang in pass 2
support for ReiserFS no longer available (www.namesys.com)
format with Ext3, restore data from backup

I hope Raid5 will run better on Ext3, ...

Last edited by ongi; 04-03-2008 at 02:51 AM. Reason: add new results
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
net working eth0 eth1 wlan0 "no connection" "no LAN" "no wi-fi" Cayitano Linux - Newbie 5 12-09-2007 07:11 PM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM
LXer: Merging "Open Source" and "Free Software" LXer Syndicated Linux News 2 08-08-2007 04:27 AM
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 08:31 AM
Can you explain the difference between "Free Software (GNU)" and "Open Source"? vharishankar General 5 03-03-2005 09:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:13 AM.

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