RE: Large discrepancy in reported disk usage on USR partition



Hi,

The space reserved as minfree does not appear to have been changed from the
default setting of 8%. Is your suggestion that I should change it to a
larger value? I don't understand how modifying it now could fix the
situation, but I could be missing something.

The output of "tunefs -p /usr" is as follows:

#: tunefs -p /usr
tunefs: ACLs: (-a) disabled
tunefs: MAC multilabel: (-l) disabled
tunefs: soft updates: (-n) enabled
tunefs: maximum blocks per file in a cylinder group: (-e) 2048
tunefs: average file size: (-f) 16384
tunefs: average number of files in a directory: (-s) 64
tunefs: minimum percentage of free space: (-m) 8%
tunefs: optimization preference: (-o) time
tunefs: volume label: (-L)

I have not observed the problem on any of the other ~dozen FreeBSD servers
in our data centre.

Could the "missing" space be an indication of hardware disk issues i.e.
physical blocks marked as bad?

Is it possible on UFS2 for disk space to be allocated but hidden somehow?
(although I have been running the commands such as "du -x" as superuser)
Similarly, is it possible on UFS2 for disk space to be allocated in "lost
cluster chains" ?

Best Regards,
Brendan Hart

-----Original Message-----
From: Jeremy Chadwick [mailto:koitsu@xxxxxxxxxxx]
Sent: Thursday, 30 October 2008 11:50 AM
To: Brendan Hart
Cc: freebsd-questions@xxxxxxxxxxx
Subject: 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 |



__________ Information from ESET NOD32 Antivirus, version of virus signature
database 3567 (20081029) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



__________ Information from ESET NOD32 Antivirus, version of virus signature
database 3567 (20081029) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


_______________________________________________
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: Huge Partition
    ... Or are the problems happening at a lower level than the filesystem? ... However, I have not come close to filling the partition up, so I cannot verify that all the space is actually usable. ... > script failed for out of disk space. ... To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list ...
    (Fedora)
  • Re: checking total and free space
    ... The df command will tell you how much space in the filesystem ... It tells you nothing about unallocated disk space. ... >> and the size of each partition to get the free space. ... Partition Tag Flags Sector Count Sector Mount Directory ...
    (comp.unix.solaris)
  • Re: redimensioning /usr
    ... and build a Linux fs partition in it ... > And isn't this the case for not allocating all your hard disk space ... journalling fs for the /tmp filesystem? ...
    (comp.os.linux.setup)
  • Re: File system error
    ... > I got a little problem with /usr partition ... > Filesystem Size Used Avail Capacity Mounted on ... the disk space won't be released until ... that could be one reason. ...
    (freebsd-questions)
  • 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)