Lee Marzke on 10 Aug 2006 02:52:31 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Debian df command reports wrong usage on root partition


bergman@merctech.com wrote:
In the message dated: Wed, 09 Aug 2006 18:49:14 EDT,
The pithy ruminations from Lee Marzke on <[PLUG] Debian df command reports wrong usage on root partition> were:
=> This is a multi-part message in MIME format.
=> --------------040008070203060506030204
=> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
=> Content-Transfer-Encoding: 7bit
=> => I'm having a weird problem on a Debian 3.1 system. After moving Gb of
=> data from the root partition to /var ( and replacing those directories => with symlinks )
=> my root partition is still full.


Ah, this is basically a question that I use when conducting interviews...


Let me take some wild guess...

	You moved data from /var/log.

	You haven't restarted syslog (or rebooted).

Here are some hints for tools that may help figure things out:
	fuser
	lsof

Hint:
	how does "rm" work?

		man 2 unlink




OK, I didn't touch /var/log, and the system has been rebooted a few times in the last month since I noticed the problem.

lsof | grep tmp shows a 20G file in /tmp
python2.3 5056 zope 6u REG 8,3 20971520 700398 /tmp/tmpeAnx7E (deleted)


This doesn't show up in a directory listing, and only exists when Zope is running.

So what is this, and why is df showing this ? Running Zope on SuSE, did not do this.

Thanks,

Lee

Finally, here are some nice explanations:

	http://blogs.sun.com/roller/page/chrisg?entry=df_and_du
	http://www.cyberciti.biz/nixcraft/vivek/blogger/2006/01/freebsd-why-command-df-and-du-reports.php

Mark
=> => Is there some known problem with df ? Are the LVM mounted
=> volumes causing it problems ?
=> => I've also looked at / with a graphical disk analysis tool, and all the disk
=> space is taken up by /home and /var - so why is 14Gb still showing up
=> as used under / ?
=> => df
=> Filesystem 1k-blocks Used Available => Use% Mounted on
=> /dev/sda2/ 87857 19645 73171 => 22% /boot
=> /dev/sda3/ 17299036 14649436 1770848 90% /
=> /dev/mapper/sys-home 30963708 20959920 8430924 72% /home
=> /dev/mapper/sys-var 20970876 8716796 12254080 42% /var
=> => => If I add the size of all partitions ( excluding /boot, /home and /var )
=> I get 1.5Gb, however the df command above shows 14Gb in use.
=> => Here are the sized reported by du for all directories except in /boot, => /home, /var
=> => /tmp 24
=> /bin 3112
=> /dev 852
=> /lib 128472
=> /root 4500
=> /etc 404432
=> /usr 1021440
=> Total 1.54 Gb
=> => Also, the disks are on a Adaptec 2400 IDE RAID controller, HW RAID 1
=> that appear as SCSI drives sda2, sda3 JBOD, and the rest as LVM
=> => Thanks,
=> => Lee Marzke
=>


-----
Mark Bergman    Biker, Rock Climber, Unix mechanic, IATSE #1 Stagehand


begin:vcard
fn:Lee Marzke
n:Marzke;Lee
email;internet:lee@marzke.net
tel;work:800 393 5217
tel;home:610 454 9354
version:2.1
end:vcard

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug