From owner-freebsd-questions Wed Apr 12 07:03:21 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id HAA13893 for questions-outgoing; Wed, 12 Apr 1995 07:03:21 -0700 Received: from halon.sybase.com (halon.sybase.com [192.138.151.33]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id HAA13887 for ; Wed, 12 Apr 1995 07:03:18 -0700 Received: from sybase.com (sybgate.sybase.com) by halon.sybase.com (5.0/SMI-SVR4/SybFW4.0) id AA26052; Wed, 12 Apr 1995 07:07:28 -0700 Received: from red_oak.sybgate.sybase.com by sybase.com (4.1/SMI-4.1/SybH3.4) id AA04575; Wed, 12 Apr 95 07:01:54 PDT Received: by red_oak.sybgate.sybase.com (4.1/SMI-4.1/SybEC3.2) id AA19906; Wed, 12 Apr 95 10:01:53 EDT Date: Wed, 12 Apr 95 10:01:53 EDT From: jeffa@sybase.com (Jeff Anuszczyk) Message-Id: <9504121401.AA19906@red_oak.sybgate.sybase.com> To: tanel@juku.li.ttu.ee Subject: Re: out of inodes Cc: questions@FreeBSD.org, jeffa@sybase.com content-length: 932 Sender: questions-owner@FreeBSD.org Precedence: bulk > I have such a problem: I'm using /var filesystem for spooling news and mail > But now the filesystem ran out of inodes, although there is still 50 megs > of free space. What can I do? Alas, the only solution to this is to backup the disk and re-newfs it. The problem is that the newfs command allocates one i-node per 2K of disk blocks. This is normally quite nice. However, news is a pathelogical case in that most files are very small (well under 2K in size). As such you need to tell newfs to allocate i-nodes based upon a size less than 2K. To do this you use (I think) the "-i" option on newfs. Something like: newfs -i 1024 /dev/rsd?? This will cause the initialization of the filesystem to be done allocating one inode per 1K of disk space. Essentially it will double the number of inodes that you have available (and hence double the number of files that you can have). After that, restore and enjoy. - Jeff