c082 [Solved] df reports negative value on a local filesystem - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > General

General General questions about the FreeBSD operating system. Ask here if your question does not fit elsewhere.

Reply
 
Thread Tools Display Modes
  #1  
Old March 1st, 2010, 13:55
rockHardRideFre rockHardRideFre is offline
Junior Member
 
Join Date: Nov 2009
Posts: 20
Thanks: 2
Thanked 0 Times in 0 Posts
Default df reports negative value on a local filesystem

Hi,

I have a FreeBD 7.2 i386 on AsRock Conroe 1333 with 2 IDE and 1 SATA disks. I made 2 partitions on this SATA disk, one for a network file share, and one for backup. Both have the UFS2 filesystem. For several months everything was ok but recently after having nearly filled the backup partition, df reports negative value for "Available":

Code:
Filesystem            Size    Used   Avail Capacity  Mounted on
/dev/mirror/gm4s1a    496M    154M    302M    34%    /
devfs                 1.0K    1.0K      0B   100%    /dev
/dev/mirror/gm4s1e    496M     22K    456M     0%    /tmp
/dev/mirror/gm4s1f     67G     24G     38G    38%    /usr
/dev/mirror/gm4s1d    1.9G    174M    1.6G    10%    /var
/dev/ad10e            144G     67G     66G    51%    /usr/samba-shares/personal
/dev/ad10f            144G    136G   -3.6G   103%    /media/bkp
Of course, this contradicts with "Size"-"Used", and du also tells that 136G are used (that should mean 8G are available).

Why is this? Should I fix something or just ignore?

Thanks in advance.

Last edited by DutchDaemon; March 1st, 2010 at 14:06. Reason: added [code] tags
Reply With Quote
  #2  
Old March 1st, 2010, 14:02
graudeejs's Avatar
graudeejs graudeejs is offline
Style(9) Addict
 
Join Date: Nov 2008
Location: Riga, Latvia
Posts: 4,525
Thanks: 422
Thanked 607 Times in 475 Posts
Default

8% are reserved for root by default, you see "negative space" because you are using reserved space
This had been discussed many times on this forum (search for similar threads)

Last edited by DutchDaemon; March 1st, 2010 at 14:10.
Reply With Quote
The Following User Says Thank You to graudeejs For This Useful Post:
rockHardRideFre (March 2nd, 2010)
  #3  
Old March 1st, 2010, 17:04
fronclynne's Avatar
fronclynne fronclynne is offline
Senior Member
 
Join Date: Feb 2009
Location: Lunch Time
Posts: 1,297
Thanks: 132
Thanked 166 Times in 143 Posts
Default

See tunefs(8), especially read the section under "-m minfree" very carefully. Also, from fs(5):
Code:
The fs_minfree element gives the minimum acceptable percentage of file
     system blocks that may be free.  If the freelist drops below this level
     only the super-user may continue to allocate blocks.  The fs_minfree ele-
     ment may be set to 0 if no reserve of free blocks is deemed necessary,
     however severe performance degradations will be observed if the file sys-
     tem is run at greater than 90% full; thus the default value of fs_minfree
     is 10%.
__________________
Quid habemus reliquum?
Nutrimentum anatum!

Внимание: лифт вниз не поднимает
Reply With Quote
The Following User Says Thank You to fronclynne For This Useful Post:
rockHardRideFre (March 2nd, 2010)
  #4  
Old March 2nd, 2010, 07:45
rockHardRideFre rockHardRideFre is offline
Junior Member
 
Join Date: Nov 2009
Posts: 20
Thanks: 2
Thanked 0 Times in 0 Posts
Default [Solved]

Thanks. It's clear now.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
/ filesystem reports 102% ilemur General 1 February 27th, 2010 16:09
[Solved] smartctl reports Reallocated_Sector_Ct FAILING_NOW. sixtydoses System Hardware 3 December 17th, 2009 01:26
Abuse reports bluetick Off-Topic 4 September 14th, 2009 18:34
security reports? Lem0nHead General 3 August 27th, 2009 01:54
Reproducable ZFS panic ("vrele: negative ref cnt") exscape General 5 May 21st, 2009 20:47


All times are GMT +1. The time now is 10:06.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0