Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Apr 2005 09:39:45 -0700 (PDT)
From:      Philip Hallstrom <freebsd@philip.pjkh.com>
To:        Osmany Guirola Cruz <osmany.guirola@cigb.edu.cu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: df question
Message-ID:  <20050419093836.M24860@wolf.pjkh.com>
In-Reply-To: <1113914239.70976.6.camel@draco.cigb.edu.cu>
References:  <20050403223444.S53903@frambozen.monochrome.org>  <MIEPLLIBMLEEABPDBIEGMEGGHDAA.bob@a1poweruser.com>  <1113914239.70976.6.camel@draco.cigb.edu.cu>

next in thread | previous in thread | raw e-mail | index | archive | help
> Hi people
>
> I do df -h on my machine and got this RARE ouput
>
> %df -h
>
> Filesystem     Size    Used   Avail Capacity  Mounted on
> /dev/ad0s1a    7.7G    2.2G    4.9G    31%    /
> devfs          1.0K    1.0K      0B   100%    /dev
> /dev/ad0s1d     65G    9.5G     50G    16%    /usr/home
>
> %df
> Filesystem  1K-blocks    Used    Avail Capacity  Mounted on
> /dev/ad0s1a   8122126 2328406  5143950    31%    /
> devfs               1       1        0   100%    /dev
> /dev/ad0s1d  68372608 9940308 52962492    16%    /usr/home
>
> 50G+9.5G=60.5G   but the partition size is 65G ... where are my ~5G,?
> What can i do?

Accept it :-)  Or change the minimum free space on the drive.  Here's the 
relevant part of the tunefs manpage:

-m minfree
 	 Specify the percentage of space held back from normal users; the
minimum free space threshold.  The default value used is 8%.  This value
can be set to zero, however up to a factor of three in throughput will
be lost over the performance obtained at a 10% threshold.  Settings of
5% and less force space optimization to always be used which will
greatly increase the overhead for file writes.  Note that if the value
is raised above the current usage level, users will be unable to
allocate files until enough files have been deleted to get under the
higher threshold.


I haven't checked, but I suspect the FAQ and Handbook at www.freebsd.org 
have more information on this...

-philip



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050419093836.M24860>