From kelly@geeba.net  Sat Dec  9 07:47:58 2000
Return-Path: <kelly@geeba.net>
Received: from geeba.net (unknown [63.170.231.16])
	by hub.freebsd.org (Postfix) with ESMTP id 42A6237B400
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  9 Dec 2000 07:47:58 -0800 (PST)
Received: (from kelly@localhost)
	by geeba.net (8.11.1/8.11.1) id eB9Fm1c63958;
	Sat, 9 Dec 2000 07:48:01 -0800 (PST)
	(envelope-from kelly)
Message-Id: <200012091548.eB9Fm1c63958@geeba.net>
Date: Sat, 9 Dec 2000 07:48:01 -0800 (PST)
From: Sean Kelly <kelly@geeba.net>
Reply-To: kelly@geeba.net
To: FreeBSD-gnats-submit@freebsd.org
Subject: sysinstall upgrade ought to check partition sizes
X-Send-Pr-Version: 3.2

>Number:         23402
>Category:       bin
>Synopsis:       sysinstall(8): upgrade ought to check partition sizes
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-sysinstall
>State:          analyzed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 09 07:50:01 PST 2000
>Closed-Date:    
>Last-Modified:  Sun Jan 23 21:17:12 UTC 2011
>Originator:     Sean Kelly
>Release:        FreeBSD 4.2-RELEASE i386
>Organization:
Hardly any
>Environment:

        Running sysinstall upgrade on a 3.1-RELEASE system with
        a / parition with 32MB in size.

>Description:

        Back in my SunOS 3.5 and 4.1 days, I partitioned systems with
        a small root.  I've done the same with FreeBSD.  Back in the
        2.0 days, 32MB was more than generous.  I could give 64MB to
        /var and have plenty of space for logs and email.  192MB for
        /usr, which was mounted read-only, was sufficient.  /usr/local
        and /home would be where all the action took place.

        32MB under / was generous.  But now it barely fits the kernel
        and the loadable modules.

        It'd sure be nice if sysinstall could check your partition
        sizes against your chosen distributions and say "Your /usr
        partition isn't large enough to hold the selected packages" or
        "Your root partition needs to be at least 58MB".

>How-To-Repeat:

        Make a FreeBSD 3.1 system with a 32MB root partition.
        Run the 4.2 sysinstall and choose upgrade.  Read the scary
        stuff, proceed with the upgrade.  Mark the mountpoints for the
        previous filesystems.  Choose distributions.  Proceed.  Wait
        for the File System Full messages to appear.

        This has happened before, too, when my /usr was too small.  I
        now have a /usr of 300MB, and a 4.2 system with man, catman,
        info, and doc is 94% full.

>Fix:

        Realize that things are only going to get bigger and
        repartition before you upgrade.  Blow away /sbin/mount_* for
        unsupported/buggy filesystems.  Move /stand to /usr and
        symlink it.  Remove loadable modules you won't need.  Drop
        kernel.GENERIC.  Config a small kernel.  Scratch and scrape
        for every last bit of space and hope there's enough room for
        kernel.old in case the new one doesn't work.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->analyzed 
State-Changed-By: murray 
State-Changed-When: Wed Mar 27 04:50:11 PST 2002 
State-Changed-Why:  
The defaults have been bumped up generously, but sysinstall still does 
not intelligently warn users about disk space requirements. 



Responsible-Changed-From-To: freebsd-bugs->freebsd-qa 
Responsible-Changed-By: murray 
Responsible-Changed-When: Wed Mar 27 04:50:11 PST 2002 
Responsible-Changed-Why:  
The defaults have been bumped up generously, but sysinstall still does 
not intelligently warn users about disk space requirements. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=23402 
Responsible-Changed-From-To: freebsd-bugs->brucec  
Responsible-Changed-By: brucec 
Responsible-Changed-When: Sun Apr 25 11:38:11 UTC 2010 
Responsible-Changed-Why:  
Take. 

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

From: Garrett Cooper <yanefbsd@gmail.com>
To: bug-followup@FreeBSD.org, kelly@geeba.net
Cc:  
Subject: Re: bin/23402: sysinstall(8): upgrade ought to check partition sizes
Date: Sun, 25 Apr 2010 17:01:34 -0700

     This is (IMO) an impossible requirement to chase (as-is) as this
 amount can change varying upon how packages are distributed; you would
 need to `taste' the contents in the packages to determine the unpacked
 size and calculate whether or not the user should or should not be
 warned about having too small or two large a partition size. That kind
 of data isn't really available today [in pkg_install] as they're just
 dumb compressed tarballs with a little bit of extra data. The
 enhancement would have to be first made to pkg_install, then
 sysinstall would need to `taste' that information to ensure that the
 calculated sizes were less than the proposed partition amounts. That
 introduces a potentially large amount of complexity though because
 sysinstall would need to copy the data to a temporary location to
 avoid downloading packages twice (tmpfs, etc... which might not have
 enough space), then sysinstall would need to track where ALL of the
 files are being installed to and thus determine whether or not the
 user was doing the right thing or was being a foolish and the install
 would fail, etc.
     I think that the issue that really needs to be resolved is to make
 the installation revertable so that if the user does make a mistake
 with the sizes he/she specifies for partitions and slices, they can go
 back and fix their issues before they get too locked down with system
 configuration, etc after install.
 Thanks,
 -Garrett
Responsible-Changed-From-To: brucec->freebsd-sysinstall 
Responsible-Changed-By: brucec 
Responsible-Changed-When: Sun Jan 23 21:16:56 UTC 2011 
Responsible-Changed-Why:  
Back to the pool. 

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