From nobody@FreeBSD.org  Fri Nov 18 10:21:34 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id A819A10656A3
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 18 Nov 2011 10:21:34 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 971B88FC1F
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 18 Nov 2011 10:21:34 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id pAIALYHt031782
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 18 Nov 2011 10:21:34 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id pAIALYJA031781;
	Fri, 18 Nov 2011 10:21:34 GMT
	(envelope-from nobody)
Message-Id: <201111181021.pAIALYJA031781@red.freebsd.org>
Date: Fri, 18 Nov 2011 10:21:34 GMT
From: Olivier Cochard-Labbe <olivier@cochard.me>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Can't install FreeBSD-amd64-9.0-RC2 on disk less than 6Go (/mnt: out of inodes)
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         162659
>Category:       bin
>Synopsis:       Can't install FreeBSD-amd64-9.0-RC2 on disk less than 6Go (/mnt: out of inodes)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    mckusick
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 18 10:30:13 UTC 2011
>Closed-Date:    Fri Jan 13 07:32:16 UTC 2012
>Last-Modified:  Fri Jan 13 07:32:16 UTC 2012
>Originator:     Olivier Cochard-Labbe
>Release:        9.0-RC2
>Organization:
BSD Router Project
>Environment:
FreeBSD vm 9.0-RC2 FreeBSD 9.0-RC2 #0: Sat Nov 12 18:35:25 UTC 2011 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
Installing FreeBSD-9.0-RC2-amd64-dvd1.iso on a VM with an hard drive less than 6 Go failed.
Tested and reproductible on a VM configured with a 4Go or 5Go hard drive as example.

During install process I choose these distribution sets: ports and src only.
And I'm using guided partitioning / Entire Disk / All Auto

The installer failed during archive extraction of ports.txz (at about 88% progress of this file extraction) with this kind of message:

Error while extracting ports.txz:
Can't create
'usr/ports/XX/YY'

And on the background there is this message:
..on /mnt: out of inodes

Because these distribution sets (ports and src only) consume only 2.7Go of disk space, it should be possible to install it on a 3Go hard drive.
>How-To-Repeat:
Installing distribution set ports and src on a VM with less than 6Go hard drive.
>Fix:
Using a minimum of 6Go hard drive fix the problem.

>Release-Note:
>Audit-Trail:

From: =?ISO-8859-1?Q?Olivier_Cochard=2DLabb=E9?= <olivier@cochard.me>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: bin/162659: Can&#39;t install FreeBSD-amd64-9.0-RC2 on disk less
 than 6Go (/mnt: out of inodes)
Date: Tue, 13 Dec 2011 11:23:32 +0100

 Hi,
 
 I've did some tests: The number of inode after a fresh install of
 9.0-RC2 is half the number of inode after the fresh install of a 8.2.
 I've install a 6Gio hard drive, MBR, no swap partition and all in /
 (under VirtualBox).
 
 After a fresh install of 8.2 (=ABuser=BB insall):
 
 [root@vm]~#df -i
 Filesystem  1K-blocks    Used   Avail Capacity iused ifree %iused  Mounted =
 on
 /dev/ad0s1a   6090038 451176 5151660    8%  12509    788257  1%   /
 devfs               1       1       0   100%       0     0  100%   /dev
 
 number of inode =3D iused + ifree =3D 800766
 
 
 After a fresh install of 9.0: (base,kernel,games,lib32)
 
 [root@vm]~#df -i
 Filesystem  1K-blocks    Used   Avail Capacity iused ifree %iused  Mounted =
 on
 /dev/ada0s1a   6184164 684012 5005420    12%  13409    412829  3%   /
 devfs               1       1       0   100%       0     0  100%   /dev
 
 number of inode =3D iused + ifree =3D 426238
 
 This is a big problem: It prevent to extract or update the port tree=85
 
 Thanks,
 
 Olivier
State-Changed-From-To: open->patched 
State-Changed-By: mckusick 
State-Changed-When: Wed Dec 21 23:13:13 UTC 2011 
State-Changed-Why:  
Suggested patch has been applied. 


Responsible-Changed-From-To: freebsd-bugs->mckusick 
Responsible-Changed-By: mckusick 
Responsible-Changed-When: Wed Dec 21 23:13:13 UTC 2011 
Responsible-Changed-Why:  
I will take responsibility. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=162659 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/162659: commit references a PR
Date: Fri, 13 Jan 2012 07:19:17 +0000 (UTC)

 Author: mckusick
 Date: Fri Jan 13 07:19:02 2012
 New Revision: 230049
 URL: http://svn.freebsd.org/changeset/base/230049
 
 Log:
   MFC: 228794
   
   Reduce NFPI by half to keep the default number of inodes the same with
   the now default 32K/4K filesystem the same as the number of inodes in
   the previously default 16K/2K filesystem.
   
   PR:          bin/162659
   Reported by: Olivier Cochard-Labbe <olivier@cochard.me>
 
 Modified:
   stable/9/sbin/newfs/newfs.h
 Directory Properties:
   stable/9/sbin/newfs/   (props changed)
 
 Modified: stable/9/sbin/newfs/newfs.h
 ==============================================================================
 --- stable/9/sbin/newfs/newfs.h	Fri Jan 13 07:10:52 2012	(r230048)
 +++ stable/9/sbin/newfs/newfs.h	Fri Jan 13 07:19:02 2012	(r230049)
 @@ -70,7 +70,7 @@
   * We allocate one inode slot per NFPI fragments, expecting this
   * to be far more than we will ever need.
   */
 -#define	NFPI		4
 +#define	NFPI		2
  
  /*
   * variables set up by front end.
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: mckusick 
State-Changed-When: Fri Jan 13 07:30:23 UTC 2012 
State-Changed-Why:  
The fix has been verified in head. 
The fix has been MFC'ed to 9. 
The fix is not applicable to release 8 or earlier. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=162659 
>Unformatted:
