Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Jun 1999 14:05:54 +0930
From:      Greg Lehey <grog@lemis.com>
To:        admin@halenet.com.au
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Error Message " cannot create symlink  no inodes free"
Message-ID:  <19990626140554.F427@freebie.lemis.com>
In-Reply-To: <199906260432.OAA06959@joe.halenet.com.au>; from HaleNET on Sat, Jun 26, 1999 at 02:26:03PM %2B1000
References:  <199906260432.OAA06959@joe.halenet.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
[Format recovered--see http://www.lemis.com/email/email-format.html]

On Saturday, 26 June 1999 at 14:26:03 +1000, HaleNET wrote:
> Hi
>
> Has anyone come across this message in your travels?
>
> I am trying to install apache onto a test box and it keeps telling me that
> I cannot create the symlink due to there being no inodes free.   When a do
> a df it produces the following result
>
> Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
> /dev/da0s1a     29751    19014     8357    69%    /
> /dev/da0s1f    297663   171054   102796    62%    /usr
> /dev/da0s1e     39647     1725    34751     5%    /var
> procfs              4        4        0   100%    /proc
>
> However when I do a df -ik it tells me
>
> Filesystem  1K-blocks     Used    Avail Capacity iused   ifree  %iused
> Mounted
> on
>
> /dev/da0s1a     29751    19014     8357    69%     972    6514    13%   /
> /dev/da0s1f    297663   171054   102796    62%   74878       0   100%   /usr
> /dev/da0s1e     39647     1723    34753     5%      87   10023     1%   /var
> procfs              4        4        0   100%      17     515     3%   /proc
>
> HAs anyone got any thoughts on how I can increase the number of inodes and
> or any documentation on how to remedy the situation

Inodes store information about each file, so they're really what
describes the file; the name is just a pointer to an inode.  UFS
stores inodes separately from file data, so you can run out of inodes
and still have space for data blocks.

Your output above shows that you have 75,000 inodes in use and 171054
data blocks--an average of 1 kB per inode.  This is a very low value,
and it suggests to me that you have been using too many symlinks, each
of which uses an inode.  Probably real links would do just as well, if
not better; they don't use inodes.  If you find that you really do
need to use that many inodes, you'll have to rebuild the file system
with newfs.  Use the -i flag to specify how many bytes you want per
inode; I'd suggest about 800 based on the information above.  While
you're at it, you can probably benefit by merging /usr and /var;
otherwise you're bound to run out of one or the other.

Greg 
--
When replying to this message, please copy the original recipients.
For more information, see http://www.lemis.com/questions.html
See complete headers for address, home page and phone numbers
finger grog@lemis.com for PGP public key


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990626140554.F427>