From owner-freebsd-questions@FreeBSD.ORG Wed Sep 20 20:18:45 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3E2E016A4A7 for ; Wed, 20 Sep 2006 20:18:45 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F68043D69 for ; Wed, 20 Sep 2006 20:18:40 +0000 (GMT) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id k8KKHbPa024241; Wed, 20 Sep 2006 16:17:37 -0400 (EDT) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id k8KKHaBD024240; Wed, 20 Sep 2006 16:17:36 -0400 (EDT) (envelope-from jerrymc) Date: Wed, 20 Sep 2006 16:17:36 -0400 From: Jerry McAllister To: Alex Franks Message-ID: <20060920201736.GA24140@gizmo.acns.msu.edu> References: <40BF70F735DE5643AF18FA29A17C253C07E627FE@core.soletechnology.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40BF70F735DE5643AF18FA29A17C253C07E627FE@core.soletechnology.com> User-Agent: Mutt/1.4.2.2i Cc: Philip Radford , freebsd-questions@freebsd.org Subject: Re: FreeBSD 5.4 no inodes left X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Sep 2006 20:18:45 -0000 On Wed, Sep 20, 2006 at 11:14:38AM -0700, Alex Franks wrote: > > > -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Philip Radford > Sent: Wednesday, September 20, 2006 7:55 AM > To: freebsd-questions@freebsd.org > Subject: FreeBSD 5.4 no inodes left > > Hi All, > > I am running FreeBSD 5.4 and have recently received the following > message on our box for the /var partiton. > No inodes left. > > I have checked the statistics and there was an apache httpd log which > was maxing out the usable space. I have since removed this file and the > available space has dropped to over 50%. However I still get the 'no > inodes left' message even though I have freed the space. > > Does anyone know how I can get the inodes to be freed up on the /var > partition. Yes. Delete some files. Then, when you have it cleared up temporarily (deleting files is only a brief temporary fix), back the file system up somewhere and remake it. In the newfs command, use bytes, block-size and frag-size arguments to force it to create more inodes in the filesystem and then restore the backup. Possibly just setting bytes=2 will be enough to cover it, but you may also need to set block-size=8192 and frag-size=1024 (which is kind of small). If you run out of inodes, it tends to mean you are creating a lot of small files. This can happen with some utilities that create a new file for each piece of data. But, the default values for bytes, block-size and frag-size usually provide plenty of inodes for most things. So, maybe some job you are running is overdoing creating small files for some reason or you have a database designed less efficiently or something. By using a smaller block and fragment size, you get more inodes, but you make reading and writing large files less efficient. Of course, if you have a hoard of small files, that isn't important. In fact, if the file system if full of small files, then it is less efficient to have large block and fragment sizes. ////jerry > > Thanks in advance. > > Regards > Phil. >