RE: [squid-users] Running out of inode

From: Winston Gutkowski <[email protected]>
Date: Wed, 21 Nov 2001 11:35:28 -0800

I don't know what version of Unix you are running, but mkfs/newfs has
options which allow you to control the number of inodes set up for a
filesystem. Both the Linux and Solaris versions allow you to specify the
number of bytes to allow for each inode, thus
mkfs -i 1024 ....
will create twice as many inodes as
mkfs -i 2048 ....
for the same filesystem.
The main thing you have to watch out for is that the number of bytes you
specify is at least as large as the filesystem blocksize, otherwise you will
create unnecessary inodes. In Linux you can also specify the blocksize with
mkfs, but you need to be careful here too as small block sizes can slow down
file access. It may be better to specify a filesystem that is too large so
that you can specify a sensible number of inodes with a sensible block size.

In Linux mkfs, you can also specify the number of inodes to create by
mkfs -N 10000 ... (this will create a filesystem with 10000 inodes)
but I wouldn't recommend it as you can often inadvertantly create the same
problems as above.

Good luck

Winston

-----Original Message-----
From: Mohsin Khan [mailto:aaghaz00@yahoo.com]
Sent: Tuesday, November 20, 2001 22:31
To: Henrik Nordstrom
Cc: squid-users@squid-cache.org
Subject: Re: [squid-users] Running out of inode

a-o-a

    umm... sorry but how could I make my cache file
system with more inodes, you mean by fdisk ???? or
newfs ??? any helps???

--- Henrik Nordstrom <hno@squid-cache.org> wrote:
> Remake your cache filesystems with more inodes, or
> shrink the size of
> your cache.
>
> Regards
> Henrik Nordstrvm
> Squid Hacker
>
>
> Mohsin Khan wrote:
> >
> > a-o-a
> >
> > Every thing is fine but just I usually
> run
> > out inodes, after a month or two.....:) Any help
> ???
> >
> > =====
> > Regards,
> > Mohsin Khan
> >
> > >>>Happy is the who can smile<<<
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Find the one for you at Yahoo! Personals
> > http://personals.yahoo.com

=====
Regards,
Mohsin Khan

>>>Happy is the who can smile<<<

__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1
Received on Wed Nov 21 2001 - 12:35:10 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:04:24 MST