*BSD News Article 25783


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!metro!seagoon.newcastle.edu.au!wabbit.cc.uow.edu.au!picasso.cssc-syd.tansu.com.au!orca1.vic.design.telecom.com.au!netbsd08.dn.itg.telecom.com.au!not-for-mail
From: tdwyer@netbsd08.dn.itg.telecom.com.au (Terry Dwyer 619 491 5161)
Newsgroups: comp.os.386bsd.questions
Subject: Re: out of inodes! - HELP!
Date: 9 Jan 1994 01:44:57 +0800
Organization: Telecom Australia
Lines: 67
Message-ID: <2gmrf7$3ik@netbsd08.dn.itg.telecom.com.au>
References: <2gk70i$8t@twitch.ns.doe.gov> <2gjv52$gol@homer.cs.mcgill.ca>
NNTP-Posting-Host: netbsd08.dn.itg.telecom.com.au
X-Newsreader: TIN [version 1.2 PL2]




To: storm@cs.mcgill.ca (Marc WANDSCHNEIDER)
Subject: Re: out of inodes! - HELP!
Newsgroups: comp.os.386bsd.questions
Organization: Telecom Australia

In article <2gjv52$gol@homer.cs.mcgill.ca> you wrote:
: In article <2gk70i$8t@twitch.ns.doe.gov>,
: James Martin <martinj@havoc.ns.doe.gov> wrote:
: >
: >twitch /netbsd: uid101 on /var/spool/news: out of inodes
: >
: >I assume inodes are the things that keep info about a
: >file or someting equally unplesant, and I've run out of
: >the miserable things... Can this be solved by a simply
: >kernel rebuild, or am I looking at reformating the
: >disk, or something even worse?


: 	unfortunately, the number of allowed inodes is part of the
: 	fiesystem construction when you run newfs.

: 	what you want to do is recreate the file system with the

: 	-i 1024, which creates an inode for every 1024 bytes instead
: 	of every 2048 bytes of disk space.


: 						marc'em.

First, by experiment, I found that the standard filesystem (NetBSD-0.8
anyway) uses 4096 bytes/inode.  This is the reason you run out of
inodes in a news spool dir.

I found -1 3072 to be very satisfactory for my news spool.

Filesystem   kbytes    used   avail capacity iused   ifree  %iused  Mounted on
/dev/sd2a    281039  211281   69758    75%   66717   25441    72%   /v

It is important not to have too many inodes created in the data space, or you
lose a considerable amount of disk space.  As you can see by the percentage
figures above -i 3072 has a very close correspondence with data space used.

Another thing you might consider, if you are low on disk space, is to
reduce the space usable only by root.  This defaults to 10%  I've set 
mine to 2% with no apparent ill effects.  When you increase the number
of inodes you will lose disk space, so I found this was necessary for
my tiny little news spool drive.  This is also done using newfs:

newfs -i 3072 -m 2 /dev/sd2a 

should do it for you.  PS you must unmount the drive first.

Now all you have to work out is where to put your news spool while you
newfs the disk. ;-(
--
   _-_|\    Terry Dwyer 	  E-Mail: tdwyer@netbsd08.dn.itg.telecom.com.au
  /     \   System Administrator  Phone: +61 9 491 5161     Fax: +61 9 221 2631
  *_.^\_/   Telecom Australia     Telstra Corporation       MIME capable mailer
       v    Perth  WA                 ( I do not speak for Telstra or Telecom )
-- 
   _-_|\    Terry Dwyer 	  E-Mail: tdwyer@netbsd08.dn.itg.telecom.com.au
  /     \   System Administrator  Phone: +61 9 491 5161     Fax: +61 9 221 2631
  *_.^\_/   Telecom Australia     Telstra Corporation       MIME capable mailer
       v    Perth  WA                 ( I do not speak for Telstra or Telecom )