Re: root partition full and du and df do not agree (resolved)
Sometime in September John Harrold assaulted the keyboard and produced: | I have a delima. My root partition is about 24Gb and it's full. The | problem is that I cannot figure out what is taking up the space. If I | goto '/' and run 'du -x' it says that about 500Mb are being used. This is | about what I would expect. Now If I run 'df' it says the partition is | 100% full. Is there any way to check for unlinked files which are taking | up space or something like that? I'm quite baffled here. This computer is | running sarge. Thanks for the suggestions, I especially like the thought on many small files. In case anyone had any similar problems, this was mine: I was mounting somethin on /export/data and running a nightly rsync from computer A to computer B. The problem above was on comuter B. One night I ran rsync with /export/data unmounted on B. When I noticed the error /export/data was mounted so du would not traverse into that directory (since that appeared to be a different file system), and just ignored any data in that directory. I rewrote my backup scripts to make sure that the partition was mounted before performing the rsync ;). -- -- | /"\ john harrold | \ / ASCII ribbon campaign jmh at member.fsf.org | X against HTML mail the most useful idiot | / \ -- What difference does it make to the dead, the orphans, and the homeless, whether the mad destruction is brought under the name of totalitarianism or the holy name of liberty and democracy? --Gandhi -- gpg --keyserver keys.indymedia.org --recv-key F65A739E -- signature.asc Description: Digital signature
Re: root partition full and du and df do not agree
On Sun, Sep 05, 2004 at 09:28:20AM -0400, John Harrold wrote: > I have a delima. My root partition is about 24Gb and it's full. The problem > is that I cannot figure out what is taking up the space. If I goto '/' and > run 'du -x' it says that about 500Mb are being used. This is about what I > would expect. Now If I run 'df' it says the partition is 100% full. Is > there any way to check for unlinked files which are taking up space or > something like that? I'm quite baffled here. This computer is running > sarge. > Hi John, if you have lots of SMALL files (less than the block size) you may be out of inodes and NOT MB. try 'df -i'. =Kev -- (__) (oo) /--\/ / ||| * /\---/\ ~~ ~~ "Have you mooed today?"... signature.asc Description: Digital signature
Re: root partition full and du and df do not agree
John Harrold wrote: I have a delima. My root partition is about 24Gb and it's full. The problem is that I cannot figure out what is taking up the space. If I goto '/' and run 'du -x' it says that about 500Mb are being used. This is about what I would expect. Now If I run 'df' it says the partition is 100% full. Is there any way to check for unlinked files which are taking up space or something like that? I'm quite baffled here. This computer is running sarge. perhaps a lot of small files eating all inodes -- Reader, suppose you were an idiot. And suppose you were a member of Congress. But I repeat myself. -- Mark Twain -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: root partition full and du and df do not agree
Elimar Riesebieter wrote: On Sun, 05 Sep 2004 the mental interface of Elimar Riesebieter told: On Sun, 05 Sep 2004 the mental interface of John Harrold told: I have a delima. My root partition is about 24Gb and it's full. The problem is that I cannot figure out what is taking up the space. If I goto '/' and run 'du -x' it says that about 500Mb are being used. This is about what I would expect. Now If I run 'df' it says the partition is 100% full. Is there any way to check for unlinked files which are taking up space or something like that? I'm quite baffled here. This computer is running sarge. $ du-sh | sort -n Sorry $ du -s(h|m|k) * | sort -n ^ ^ ^ choose what ever you want ;-) Elimar Don't use -h, it will sort wierdly, ie 800K will sort as larger than 400M. signature.asc Description: OpenPGP digital signature
Re: root partition full and du and df do not agree
In article <[EMAIL PROTECTED]>, John Harrold <[EMAIL PROTECTED]> wrote: >I have a delima. My root partition is about 24Gb and it's full. The problem >is that I cannot figure out what is taking up the space. If I goto '/' and >run 'du -x' it says that about 500Mb are being used. This is about what I >would expect. Now If I run 'df' it says the partition is 100% full. Is >there any way to check for unlinked files which are taking up space or >something like that? Sure. Try ls -ld /proc/*/fd/* 2>&1 | fgrep '(deleted)' .. that will show you all deleted files still held open by running processes. Mike. -- "In times of universal deceit, telling the truth becomes a revolutionary act." -- George Orwell. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: root partition full and du and df do not agree
On Sun, 05 Sep 2004 the mental interface of Elimar Riesebieter told: > On Sun, 05 Sep 2004 the mental interface of > John Harrold told: > > > I have a delima. My root partition is about 24Gb and it's full. The problem > > is that I cannot figure out what is taking up the space. If I goto '/' and > > run 'du -x' it says that about 500Mb are being used. This is about what I > > would expect. Now If I run 'df' it says the partition is 100% full. Is > > there any way to check for unlinked files which are taking up space or > > something like that? I'm quite baffled here. This computer is running > > sarge. > > $ du-sh | sort -n Sorry $ du -s(h|m|k) * | sort -n ^ ^ ^ choose what ever you want ;-) Elimar -- It's a good thing we don't get all the government we pay for. signature.asc Description: Digital signature
Re: root partition full and du and df do not agree
On Sun, 05 Sep 2004 the mental interface of John Harrold told: > I have a delima. My root partition is about 24Gb and it's full. The problem > is that I cannot figure out what is taking up the space. If I goto '/' and > run 'du -x' it says that about 500Mb are being used. This is about what I > would expect. Now If I run 'df' it says the partition is 100% full. Is > there any way to check for unlinked files which are taking up space or > something like that? I'm quite baffled here. This computer is running > sarge. $ du-sh | sort -n HANN Elimar -- We all know Linux is great... it does infinite loops in 5 seconds. -- Linus Torvalds signature.asc Description: Digital signature
Re: root partition full and du and df do not agree
On Sun, 5 Sep 2004 09:28:20 -0400 John Harrold <[EMAIL PROTECTED]> wrote: >I have a delima. My root partition is about 24Gb and it's full. The problem >is that I cannot figure out what is taking up the space. If I goto '/' and >run 'du -x' it says that about 500Mb are being used. This is about what I >would expect. Now If I run 'df' it says the partition is 100% full. Is >there any way to check for unlinked files which are taking up space or >something like that? I'm quite baffled here. This computer is running >sarge. > Try doing something like 'find / -mount -size +50k -print' (then change +500k to +100k) and so on until you find the culprit(s). HTH -- Cheers, Trey (1) Everything depends. (2) Nothing is always. (3) Everything is sometimes. Linux salamander 2.6.8-6cvs20040902123957-default #1 Thu Sep 2 12:39:57 UTC 2004 i686 i686 i386 GNU/Linux 12:07pm up 1 day 13:41, 3 users, load average: 0.14, 0.09, 0.10 pgpdVTDLQfkqB.pgp Description: PGP signature
Re: root partition full and du and df do not agree
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John Harrold wrote: | I have a delima. My root partition is about 24Gb and it's full. | The problem is that I cannot figure out what is taking up the | space. If I goto '/' and run 'du -x' it says that about 500Mb are Hi John! Maybe you can use 'du -sh *' in / to look, where the space is gone. Mostly you can have /var/log filled with some logs etc. What filesystem do you use? And perhaps the output of du, df and mount might be interesting :-) You can try to run fsck to check if your filesystem is corrupted (maybe its a good idea to do so from a boot disk). Cheers, Jan - -- GPG-KeyID: 82201FC4 Available at my public keyserver www.gpg-keyserver.de -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFBOxRNvvmCkIIgH8QRAj5lAKCiRZpth/914KmwhARpBShI3FQWYQCgyO9/ F7hd4ZFiMdHi4pfC79v//Po= =3ylO -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: root partition full and du and df do not agree
Sometime in September Jan Kesten assaulted the keyboard and produced: Howdy Jan, | Maybe you can use 'du -sh *' in / to look, where the space is gone. | Mostly you can have /var/log filled with some logs etc. It's weird, but /var and the rest of the stuff on the root partition only seem to be using about 500Mb according to du. | What filesystem do you use? And perhaps the output of du, df and | mount might be interesting :-) I'm using ext3. The machine is at home and not on the network right now. So I'll get the output of du and df and email it to the list after I get home. | You can try to run fsck to check if your filesystem is corrupted | (maybe its a good idea to do so from a boot disk). Yeah, that was my next option. I just thought there might be a way to tell if something was hidden from du. -- -- | /"\ john harrold | \ / ASCII ribbon campaign jmh at member.fsf.org | X against HTML mail the most useful idiot | / \ -- What difference does it make to the dead, the orphans, and the homeless, whether the mad destruction is brought under the name of totalitarianism or the holy name of liberty and democracy? --Gandhi -- gpg --keyserver keys.indymedia.org --recv-key F65A739E -- signature.asc Description: Digital signature
root partition full and du and df do not agree
I have a delima. My root partition is about 24Gb and it's full. The problem is that I cannot figure out what is taking up the space. If I goto '/' and run 'du -x' it says that about 500Mb are being used. This is about what I would expect. Now If I run 'df' it says the partition is 100% full. Is there any way to check for unlinked files which are taking up space or something like that? I'm quite baffled here. This computer is running sarge. -- -- | /"\ john harrold | \ / ASCII ribbon campaign jmh at member.fsf.org | X against HTML mail the most useful idiot | / \ -- What difference does it make to the dead, the orphans, and the homeless, whether the mad destruction is brought under the name of totalitarianism or the holy name of liberty and democracy? --Gandhi -- gpg --keyserver keys.indymedia.org --recv-key F65A739E -- signature.asc Description: Digital signature