LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 11-13-2007, 09:59 AM   #1
hypernetics
Member
 
Registered: Oct 2003
Location: Berlin, GER
Posts: 35

Rep: Reputation: 15
df -h shows disk full, but it's not the case


Hi folks,

my mailserver crashed two hours ago.
"df -h" shows that the "/"-filesystem (reiser) is full.

By checking the subdirectories via "du -sh" it counts only 1,0GB, altough the partition is sized at 11GB.

How can I check, what's going wrong here?

Thanks for your help.
 
Old 11-13-2007, 10:37 AM   #2
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by hypernetics View Post
Hi folks,

my mailserver crashed two hours ago.
"df -h" shows that the "/"-filesystem (reiser) is full.

By checking the subdirectories via "du -sh" it counts only 1,0GB, altough the partition is sized at 11GB.

How can I check, what's going wrong here?

Thanks for your help.
From the man page for "du":

Quote:
--max-depth=N
print the total for a directory (or file, with --all) only if it is N or fewer levels below the command line argument; --max-depth=0 is the same as --summarize
Run "du -h" and you should get the same number as "df -h".
 
Old 11-13-2007, 10:43 AM   #3
miedward
Member
 
Registered: Feb 2007
Distribution: RHEL 4, SOLARIS 10
Posts: 91

Rep: Reputation: 15
I don't know if reiser uses them, but I have run out of inodes (file indexes more or lesS) on systems where there were many many (millions?) of very small files. At least in solaris the inodes are assigned when the volume is formated, so theres a fixed number of them.

You can check to see if this is your problem by doing a
Code:
df -i
 
Old 11-13-2007, 10:47 AM   #4
hypernetics
Member
 
Registered: Oct 2003
Location: Berlin, GER
Posts: 35

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by miedward View Post
I don't know if reiser uses them, but I have run out of inodes (file indexes more or lesS) on systems where there were many many (millions?) of very small files. At least in solaris the inodes are assigned when the volume is formated, so theres a fixed number of them.

You can check to see if this is your problem by doing a
Code:
df -i
It seems that Reiser doesn't use inodes :-(
 
Old 11-13-2007, 02:55 PM   #5
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
Quote:
Originally Posted by hypernetics View Post
Hi folks,

my mailserver crashed two hours ago.
"df -h" shows that the "/"-filesystem (reiser) is full.

By checking the subdirectories via "du -sh" it counts only 1,0GB, altough the partition is sized at 11GB.

How can I check, what's going wrong here?

Thanks for your help.
Can you post the output of both du & df?

Being that the machine crashed, is it possible / came back up in ro (read only) mode? can you find a useless file & delete it? Can you recreate it?

Are there any RAID arrays on this machine?

What's going on with the other partitions?
 
Old 11-13-2007, 03:05 PM   #6
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Mineral, Virginia
Distribution: Debian 8
Posts: 7,876

Rep: Reputation: 318Reputation: 318Reputation: 318Reputation: 318
"By checking the subdirectories via "du -sh" it counts only 1,0GB, altough the partition is sized at 11GB."


du shows the size of the filesystem. It is possible that your filesystem is smaller than the partition, i.e. the filesystem does not use the entire partition.

--------------------
Steve Stites
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
'df' command shows disk full .... very weird! sharathg786 Slackware 7 03-02-2007 04:48 PM
df shows disk almost full, can't see why mhath Linux - General 6 12-14-2005 08:55 PM
disk shows it is full after installing one cd SDP Linux - Software 1 08-01-2005 06:49 PM
partition shows full when not eroica Linux - Software 2 02-03-2005 09:01 AM
Trashicon shows full but it's empty Boby Fedora 0 07-09-2004 07:35 PM

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

All times are GMT -5. The time now is 04:01 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