BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsBSD Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 19th, 2002, 04:37 PM
SiS SiS is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Location: Denmark
Posts: 66 SiS User rank is Corporal (100 - 500 Reputation Level)SiS User rank is Corporal (100 - 500 Reputation Level)SiS User rank is Corporal (100 - 500 Reputation Level)SiS User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 5 h 58 m 27 sec
Reputation Power: 12
Send a message via ICQ to SiS
Freeing up some inodes?

So after some time, wiht loads and loads of errors, I found out that I have no more inodes on /var
This sucks prety much!!

Now I would like to know is there is any way to free up some inodes, and how to prevent this from happening again!

I run FreeBSD 4.5-RELESE

Thanks in advance

Simon
__________________
I always wanted to be somebody, guess I should have been more specific

Reply With Quote
  #2  
Old November 22nd, 2002, 01:54 PM
etm117 etm117 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Baltimore, MD, USA
Posts: 5 etm117 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Don't take me on my word here...

but if I recall, when the filesystem is created, it is by default made with many, many more inodes than necessary.
So if you have used them all, that should mean you have a bunch of bad inodes that just need to be released.
If that is the case, I would run fsck (e2fsck or something in BSD) and let it correct the errors which will free up inodes that were pointing to nothing.

Reply With Quote
  #3  
Old November 26th, 2002, 11:43 AM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
close... but not 100%.
and it IS fsck, e2fsck is linux SiS, try this first.

you require one inode for each directory entry. so if you have many many small files, you can run out of inodes if you are on a filesystem with a fixed number of them.
(check: "df -i" for the number)

to free up space, you probably need to relocate some data (the small files) to another partition.

if you can backup the whole system and take it down for some hours, do it. re-format the filesystem with more i-nodes and then restore the backup.
from "man newfs":
Quote:
-i number of bytes per inode
Specify the density of inodes in the file system. The default is
to create an inode for every (4 * frag-size) bytes of data space.
If fewer inodes are desired, a larger number should be used; to
create more inodes a smaller number should be given. One inode
is required for each distinct file, so this value effectively
specifies the average file size on the file system.

so set a lower value.
__________________
--
Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more.

Reply With Quote
  #4  
Old December 1st, 2002, 10:43 AM
OB_redemption's Avatar
OB_redemption OB_redemption is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2002
Posts: 32 OB_redemption User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
<being pedantic>e2fsck is an ext2fs utility actually, not just Linux -- though Linux installs the ext2 filesystem by default so it's almost the same.</being pedantic>

But I didn't know you can run out of inodes heh... so much for that OS module I took - in one ear, out the other

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > Freeing up some inodes?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway