|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
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:
so set a lower value.
__________________
-- Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more. |
|
#4
|
||||
|
||||
|
<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 ![]() |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > BSD Help > Freeing up some inodes? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|