DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 20th October 2008
Bruco Bruco is offline
Fdisk Soldier
 
Join Date: May 2008
Location: Kalamazoo, MI, USA
Posts: 61
Thanked 1 Time in 1 Post
Default The case of the missing 24GB

So if I run a df -h on my home server a particular line jumps out at me:

Code:
# df -h
Filesystem       Size    Used   Avail Capacity  Mounted on
/dev/ufs/root    496M     46M    410M    10%    /
devfs            1.0K    1.0K      0B   100%    /dev
/dev/ufs/tmp     496M     76K    456M     0%    /tmp
/dev/ufs/usr     285G    235G     26G    90%    /usr
/dev/ufs/var     1.7G    112M    1.4G     7%    /var
Er, last I checked taking 235 from 285 leaves you with 50 - not 26. I know some rounding goes on here, but 24GB appears to be "missing"! It looks like in the cases of almost all the lines there is some hard disk space that is not accounted for, but in the case of /usr it's certainly the most noticeable.

/usr is mounted on the same logical drive that everything else is - which is a RAID-5 drive provided by three 160GB drives on a Highpoint controller.

Any ideas? Is there something I just don't get here? Are the measurements showing me two different things based on a cluster size (similar to the size vs. size on disk in Windows)?

Thanks.
Reply With Quote
  #2   (View Single Post)  
Old 20th October 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

Looks like somebody forgot to read man pages..

Quote:
Originally Posted by newfs(8)
-m free-space
The percentage of space reserved from normal users; the minimum free space threshold. The default value used is defined by MINFREE from <ufs/ffs/fs.h>, currently 8%. See tunefs(8) for more details on how to set this option.
In this case; 285 * 8 is 2280... add a decimal point, 22.8G.. or something.. math isn't my expertise, but it clearly accounts for some of the missing space you're noticing.

Also, a portion is used for file system metadata.. i.e: inode structures.
Reply With Quote
  #3   (View Single Post)  
Old 20th October 2008
mdh's Avatar
mdh mdh is offline
Real Name: Matt D. Harris
FreeBSD 2.2.6 User
 
Join Date: Oct 2008
Location: West Virginia
Posts: 139
Thanked 8 Times in 8 Posts
Default

By the way, you can change that with tunefs if you want. The space isn't gone, though, it's just reserved to root use only. If root uses it, you'll actually see the available space go into the negatives.
Reply With Quote
  #4   (View Single Post)  
Old 20th October 2008
Bruco Bruco is offline
Fdisk Soldier
 
Join Date: May 2008
Location: Kalamazoo, MI, USA
Posts: 61
Thanked 1 Time in 1 Post
Default

Ah, curses! I did read man pages, I swear! Just not the right one. I will now, though!

Anyway, thanks very much. I can sleep easy 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
Fixed "xinit" after _7 _8, "how" here in case anyones' "X" breaks... using "nvidia" jb_daefo Guides 0 5th October 2009 09:31 PM
sys.tar.gz missing from 3rd CD in 4.5? thirdm OpenBSD Installation and Upgrading 0 5th May 2009 03:25 PM
Disk space gone missing EricM FreeBSD General 0 26th February 2009 02:25 AM
Update from 6.3 to 7.0 (libs missing etc.) Calderon FreeBSD Installation and Upgrading 16 17th May 2008 09:03 PM


All times are GMT. The time now is 01:11 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick