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 28th July 2008
michaelrmgreen's Avatar
michaelrmgreen michaelrmgreen is offline
Fdisk Soldier
 
Join Date: May 2008
Posts: 49
Default File system at more than 100%

df -h gives this:

Filesystem Size Used Avail Capacity Mounted on
/dev/ad0s2a 496M 481M -25M 105% /
devfs 1.0K 1.0K 0B 100% /dev
/dev/ad0s2e 496M 120M 336M 26% /tmp
/dev/ad0s2f 60G 2.6G 53G 5% /usr
/dev/ad0s2d 1.2G 36M 1.1G 3% /var


I remember reading somwhere about the explanation for the ability to go beyond 100%, but can't now find it. Can someone refresh my failing memory and more importantly advise how I got in this mess and what to do about it? TIA
Reply With Quote
  #2   (View Single Post)  
Old 28th July 2008
michaelrmgreen's Avatar
michaelrmgreen michaelrmgreen is offline
Fdisk Soldier
 
Join Date: May 2008
Posts: 49
Default

Oops, the tabs/spaces for the table seem to have gone awol. Sorry.
Reply With Quote
  #3   (View Single Post)  
Old 28th July 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin Tournoij
Tcpdump Spy
 
Join Date: Apr 2008
Location: Ireland
Posts: 2,245
Default

If you want tabs/spaces to be preserved, you need to use:

[code]
... stuff ...
[/code]


Anyway,

From the FreeBSD FAQ

Quote:
9.27. How is it possible for a partition to be more than 100% full?

A portion of each UFS partition (8%, by default) is reserved for use by the operating system and the root user. df(1) does not count that space when calculating the Capacity column, so it can exceed 100%. Also, you will notice that the Blocks column is always greater than the sum of the Used and Avail columns, usually by a factor of 8%.

For more details, look up the -m option in tunefs(8).
You may want to remove some stuff on your / partition, to see where all teh space is going you can use something like:
# du -hxd1 /
Reply With Quote
  #4   (View Single Post)  
Old 28th July 2008
michaelrmgreen's Avatar
michaelrmgreen michaelrmgreen is offline
Fdisk Soldier
 
Join Date: May 2008
Posts: 49
Default

On the cycle ride between one of my places of work and another I have had the time and freedom from interruptions to think about this problem.

The origins of the problem go back to a time when I used a separate partition (data) for the system data. This setup proved impossible to recreate using sysinstall after 4.x (something to do with GEOM as I recall) so I created a directory called 'data' in root. Clearly the default size for root is 500Mb or thereabouts and it just filled up.

The simplest solution seems to be to move the data files from /data to /usr/data and adjust the paths in the applications to suit.

I've been calling myself some very rude names since I realised what I did. Anyway thanks to all, and let that be a lesson in the need for considering the implications of what seems like a minor system change!
Reply With Quote
  #5   (View Single Post)  
Old 28th July 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin Tournoij
Tcpdump Spy
 
Join Date: Apr 2008
Location: Ireland
Posts: 2,245
Default

You can also just symlink /data to /usr/data.
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
File system not properly dismounted rex FreeBSD General 6 12th September 2008 02:45 PM
Unexpected Change of owner:group in file system Dotiroygsbre Other BSD and UNIX/UNIX-like 0 15th August 2008 04:09 PM
Which file system use to share data on Bsd system? aleunix Other BSD and UNIX/UNIX-like 2 1st June 2008 04:14 PM
File system UFS2 gjournal support aleunix Other BSD and UNIX/UNIX-like 7 30th May 2008 05:13 AM
What is good support to the file system ext3? aleunix Solaris 3 29th May 2008 03:50 PM


All times are GMT. The time now is 03:08 AM.


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