Default inode number too low in FFS nowadays?

Tom Evans tevans.uk at googlemail.com
Thu Nov 3 12:50:12 UTC 2011


On Thu, Nov 3, 2011 at 12:43 PM, Ivan Voras <ivoras at freebsd.org> wrote:
> On 02/11/2011 12:57, Borja Marcos wrote:
>>
>> Hi
>>
>> Today I´ve come across an issue long ago forgotten :) Running out of i-nodes.
>
> Actually, nowadays I mostly *reduce* the number of inodes rather than
> increasing it, since I often have large files and want to reduce fsck
> time (but that's a corner case).
>
>> Looking at the number of i-nodes per /usr subdirectory, I have noticed that, wow! /usr/ports consumes A LOT of them.
>>
>> freebsd9-borja#       find . -print | wc -l
>>   405481
>
> Did you forget to do "make clean" after "make install" on several large
> ports?
>
> But yes, the ports tree is getting a bit unwieldy. On the other hand,
> did you fsck the file system lately?
>

If building directly, you can put all this in one line:

make all install clean

or if reinstalling:

make all deinstall reinstall clean

Or you can just use portupgrade/portmaster - portupgrade certainly
always cleans the work directories, I'm sure portmaster does as well.

Cheers

Tom


More information about the freebsd-fs mailing list