I have filled up with inodes on /usr, can I change inode withour reinstall?

I have filled up with inodes on /usr, can I change inode withour reinstall?

Post by kolse » Thu, 27 Jun 2002 22:08:07



I have FreeBSD 4.5, a recent install. When trying to install Pine, and a couple of small apps, I
ran into inode trouble.
I am full of inodes in /usr and have searched everywhere for information about it.
The best so far is http://www.freebsddiary.org/inodes.php
However, I do not know if it is possible to change inode on /usr without corrupting what's there
already? Is it, and if so how?
Furthermore, if it isn't possible, how do I change the inode during sysinstall? I don't think I
have seen it anywhere.

Another inode question. when using the pc, will the inodes slowly increase until I have filled it
again?
I am concerned that after xx months of use, I decide to install another application, and i run
into the same problem again.
If I delete an application, will the inodes connected with that app. disappear, and will it be
available for the next app?

So many questions and hopefully so many answers.
Please cc: me if replying.
Thanks in advance for all help.

kolsen
a fresh, and interested new FreeBSD user

 
 
 

I have filled up with inodes on /usr, can I change inode withour reinstall?

Post by Edward Ned Harve » Thu, 27 Jun 2002 22:39:56


You can't change the number of inodes, except with newfs.  This does not,
however, require you to reinstall if you have some extra hard disk space.  

Just create another partition or slice, newfs it, use dump/restore to copy
all the information (or for /usr, tar with the "p" option will suffice),
change fstab, and reboot..


> I have FreeBSD 4.5, a recent install. When trying to install Pine, and a
> couple of small apps, I ran into inode trouble.
> I am full of inodes in /usr and have searched everywhere for information
> about it. The best so far is http://www.freebsddiary.org/inodes.php
> However, I do not know if it is possible to change inode on /usr without
> corrupting what's there already? Is it, and if so how?
> Furthermore, if it isn't possible, how do I change the inode during
> sysinstall? I don't think I have seen it anywhere.

> Another inode question. when using the pc, will the inodes slowly increase
> until I have filled it again?
> I am concerned that after xx months of use, I decide to install another
> application, and i run into the same problem again.
> If I delete an application, will the inodes connected with that app.
> disappear, and will it be available for the next app?

> So many questions and hopefully so many answers.
> Please cc: me if replying.
> Thanks in advance for all help.

> kolsen
> a fresh, and interested new FreeBSD user


 
 
 

I have filled up with inodes on /usr, can I change inode withour reinstall?

Post by Jens Schweikhard » Thu, 27 Jun 2002 23:44:55


Posted and mailed.



#
# I have FreeBSD 4.5, a recent install. When trying to install Pine, and a couple
# of small apps, I
# ran into inode trouble.
# I am full of inodes in /usr and have searched everywhere for information about i
# t.
# The best so far is http://www.freebsddiary.org/inodes.php
# However, I do not know if it is possible to change inode on /usr without corrupt
# ing what's there
# already?

No, the number of inodes for a file system is fixed and determined at
file system creation time, i.e. when you or sysinstall does a newfs
command.

# Furthermore, if it isn't possible, how do I change the inode during sysinstall?
# I don't think I have seen it anywhere.

Yes there is a way. When sysinstall pops you in the disklabel editor,
it allows you to change the file system options by pressing N.
You can add '-i 4096' to the other options. From newfs(8):

     -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.

I suspect you have /usr/ports on your /usr partition. If so this is the
main reason for you running out of inodes and you can gain a lot of
inodes by removing unneeded parts like
/usr/ports/{chinese,vietnamese,french,german,russian,japanese,...}

Regards,

        Jens
--
Jens Schweikhardt  http://www.schweikhardt.net/
SIGSIG -- signature too long (core dumped)

 
 
 

1. grow inodes: inode-max limit reached error.

I run a small shell service and now after about a week and always after cron
jobs by my users, I'm getting this error (which pretty much makes the
machine not usable): "grow inodes: inode-max limit reached". It looks like a
person's crontab job is opening up WAY too many files or soemthing over the
course of time. How do I prevent this from happening?

Debian 2.2 unstable - 2.2.14+lids+ow2

Thanks

-reid

2. IP Masquerading - Help with X

3. Bad blocks, inodes and .badblocks -> Make root inode 2

4. Page Quota

5. Question about deleting inode / drop inode

6. Netscape cannot resolve DNS names on Solaris 2.5.1

7. directory inode from file inode?

8. Gnome MIME types

9. grow-inodes: inode-max limit reached

10. BSD inodes vs. SYSV inodes?

11. how to access inode structure based on inode number ?

12. fs/inode.c sync fix and fs/ext2/inode.c tidy

13. Why is Veritas Netbackup changing inode change time?