From owner-freebsd-questions@FreeBSD.ORG Mon Nov 23 10:47:10 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D21B910656A4 for ; Mon, 23 Nov 2009 10:47:10 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 676348FC27 for ; Mon, 23 Nov 2009 10:47:10 +0000 (UTC) Received: from significant-gravitas-shortfall.thebunker.net (gateway.ash.thebunker.net [213.129.64.4]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.3/8.14.3) with ESMTP id nANAkkc6066095 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 23 Nov 2009 10:47:04 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk nANAkkc6066095 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1258973224; bh=Dyg8udFF9DCLumk4ZSUthngA+Nz1eyp9GAW15duwfMQ=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4B0A6810.6020600@infracaninophile.co.uk>|Date:=20M on,=2023=20Nov=202009=2010:46:40=20+0000|From:=20Matthew=20Seaman= 20|Organization:=20Infracaninophi le|User-Agent:=20Thunderbird=202.0.0.23=20(X11/20090824)|MIME-Vers ion:=201.0|To:=20n=20dhert=20|CC:=20freebsd-ques tions@freebsd.org|Subject:=20Re:=20nr=20or=20inodes=20in=20use/max |References:=20<8021a2660911230212h255ae19dmf06e3cd8f49f345c@mail. gmail.com>|In-Reply-To:=20<8021a2660911230212h255ae19dmf06e3cd8f49 f345c@mail.gmail.com>|X-Enigmail-Version:=200.95.7|OpenPGP:=20id=3 D60AE908C|Content-Type:=20multipart/signed=3B=20micalg=3Dpgp-sha1= 3B=0D=0A=20protocol=3D"application/pgp-signature"=3B=0D=0A=20bound ary=3D"------------enig8DE9540A072540F93CFBEA99"; b=QCxJoK8vWMEaeLnhyyU7mON6qr4D2XKwrsP+Oz3Za4Iq0Y4Tqt3t/9rQGvI3qXktC b92Zt2OLrm9yWLMBFsOEVGC3mU0PF536IFWG8o/JiqanuYhcCtAUMMOX/GzGf9A51v wkR0mPtemXFH6gcaT5M4EYARdTXOpqmLNQkJllzM= X-Authentication-Warning: happy-idiot-talk.infracaninophile.co.uk: Host gateway.ash.thebunker.net [213.129.64.4] claimed to be significant-gravitas-shortfall.thebunker.net Message-ID: <4B0A6810.6020600@infracaninophile.co.uk> Date: Mon, 23 Nov 2009 10:46:40 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.23 (X11/20090824) MIME-Version: 1.0 To: n dhert References: <8021a2660911230212h255ae19dmf06e3cd8f49f345c@mail.gmail.com> In-Reply-To: <8021a2660911230212h255ae19dmf06e3cd8f49f345c@mail.gmail.com> X-Enigmail-Version: 0.95.7 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig8DE9540A072540F93CFBEA99" X-Virus-Scanned: clamav-milter 0.95.3 at happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,SPF_FAIL autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org Subject: Re: nr or inodes in use/max 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: Mon, 23 Nov 2009 10:47:10 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig8DE9540A072540F93CFBEA99 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable n dhert wrote: > How can I see, in a running FreeBSD7.2 for each filsystem how many inod= es > are in use and what is the maximum? df -i > How can one raise the max number if inodes? You'ld have to backup your data and then blow away the filesystem on that= partition and recreate it using different parameters to newfs(8).=20 However, it would be exceedingly unlikely for that to be necessary: you'l= d have to have a very large number of exceedingly small files to run out of= inodes before filling up your disk. =46rom newfs(8): -i bytes Specify the density of inodes in the file system. The defau= lt is to create an inode for every (4 * frag-size) bytes of data s= pace. If fewer inodes are desired, a larger number should be used;= to create more inodes a smaller number should be given. One in= ode is required for each distinct file, so this value effectivel= y specifies the average file size on the file system. Given that the default frag-size is 2048 bytes, this implies that the sys= tem will not run out of inodes before filling the partition unless the averag= e file size is less than 8KiB. That would be pretty unusual. Cheers, Matthew =20 --=20 Dr Matthew J Seaman MA, D.Phil. Flat 3 7 Priory Courtyard PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW, UK --------------enig8DE9540A072540F93CFBEA99 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAksKaBYACgkQ3jDkPpsZ+VbVUACfQml/1nEl0jap6xBgrzMJojg8 1pIAoKkayFQ8hfZSSV6xgrHtf1dHsZvd =FxcF -----END PGP SIGNATURE----- --------------enig8DE9540A072540F93CFBEA99--