From owner-freebsd-questions Fri Jun 25 21:36:21 1999 Delivered-To: freebsd-questions@freebsd.org Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (Postfix) with ESMTP id 6B65715348 for ; Fri, 25 Jun 1999 21:36:03 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id OAA07701; Sat, 26 Jun 1999 14:05:55 +0930 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id OAA16044; Sat, 26 Jun 1999 14:05:54 +0930 (CST) Date: Sat, 26 Jun 1999 14:05:54 +0930 From: Greg Lehey 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> References: <199906260432.OAA06959@joe.halenet.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mutt 0.95.4i In-Reply-To: <199906260432.OAA06959@joe.halenet.com.au>; from HaleNET on Sat, Jun 26, 1999 at 02:26:03PM +1000 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [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