Re: Large discrepancy in reported disk usage on USR partition



On Thu, Oct 30, 2008 at 11:12:32AM +1030, Brendan Hart wrote:
I have inherited some servers running various releases of FreeBSD and I am
having some trouble with the /usr partition on one of these boxen.

The problem is that there appears to be far more space used on the USR
partition than there are actual files on the partition. The utility "df -h"
reports 25GB used (i.e. nearly the whole partition), but "du -x /usr"
reports only 7.6GB of files.

Have you tried playing with tunefs(8), -m flag?

I can't reproduce this behaviour on any of our systems.

icarus# df -k /usr
Filesystem 1024-blocks Used Avail Capacity Mounted on
/dev/ad12s1f 167879968 1973344 152476228 1% /usr
icarus# du -sx /usr
1973344 /usr

eos# df -k /usr
Filesystem 1024-blocks Used Avail Capacity Mounted on
/dev/ad0s1f 32494668 2261670 27633426 8% /usr
eos# du -sx /usr
2261670 /usr

anubis# df -k /usr
Filesystem 1024-blocks Used Avail Capacity Mounted on
/dev/ad4s1f 80010344 1809620 71799898 2% /usr
anubis# du -sx /usr
1809620 /usr

horus# df -k /usr
Filesystem 1024-blocks Used Avail Capacity Mounted on
/dev/ad4s1f 32494668 1608458 28286638 5% /usr
horus# du -sx /usr
1608458 /usr

--
| Jeremy Chadwick jdc at parodius.com |
| Parodius Networking http://www.parodius.com/ |
| UNIX Systems Administrator Mountain View, CA, USA |
| Making life hard for others since 1977. PGP: 4BD6C0CB |

_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • RE: lvm on RH8 _ SOLVED_
    ... Apparently, the lvm module wasn't getting initialised at boot, so I ... Using fdisk, change the partition usage to 0x8e (free space, logical ... Next the filesystem needs to be created in the logical volumes. ...
    (RedHat)
  • Re: Hard Drive Question
    ... > hardlined partition logic is usually overkill and needlessly complicated. ... * To impose restrictions on the size of certain directory subtrees (i.e. /tmp ... amount of filesystem checked at any one time, ... * To provide alternate (or recovery) directory subtrees, ...
    (alt.os.linux)
  • read/only root filesystem strategy
    ... the installed system as possible be running under a read/only mount. ... or a widely shared network filesystem. ... Modifying the kernel to perform the setup. ... Partition hda1 would house the kernel and a small rescue ...
    (comp.os.linux.development.system)
  • RE: lvm on RH8
    ... Using fdisk, change the partition usage to 0x8e (free space, logical ... Next the filesystem needs to be created in the logical volumes. ... 512000 inodes, 1024000 blocks ... lvscan -- no logical volumes found ...
    (RedHat)
  • Re: migrate to bigger disk
    ... Same goes for the Linux partition. ... because the filesystem carries a measure of it's size in the ... beginning of the primary partition table. ...
    (comp.os.linux.setup)