From owner-freebsd-questions@FreeBSD.ORG Sat Jan 24 18:44:35 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E2824F14 for ; Sat, 24 Jan 2015 18:44:35 +0000 (UTC) Received: from cosmo.uchicago.edu (cosmo.uchicago.edu [128.135.52.97]) by mx1.freebsd.org (Postfix) with ESMTP id BD807C1 for ; Sat, 24 Jan 2015 18:44:35 +0000 (UTC) Received: by cosmo.uchicago.edu (Postfix, from userid 48) id 4EFD5CB8C9D; Sat, 24 Jan 2015 12:44:29 -0600 (CST) Received: from 128.135.70.2 (SquirrelMail authenticated user valeri) by cosmo.uchicago.edu with HTTP; Sat, 24 Jan 2015 12:44:29 -0600 (CST) Message-ID: <39795.128.135.70.2.1422125069.squirrel@cosmo.uchicago.edu> In-Reply-To: <54C3D0A0.1000500@webtent.org> References: <54C3D0A0.1000500@webtent.org> Date: Sat, 24 Jan 2015 12:44:29 -0600 (CST) Subject: Re: Root partition size too small for FreeBSD 10.1? From: "Valeri Galtsev" To: "FreeBSD" Reply-To: galtsev@kicp.uchicago.edu User-Agent: SquirrelMail/1.4.8-5.el5.centos.7 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jan 2015 18:44:36 -0000 On Sat, January 24, 2015 11:04 am, Robert Fitzpatrick wrote: > I have a server I tried to upgrade to 10.1-RELEASE and it gave me out of > disk space errors when it came time at the end to making changes to > /boot/kernel. I reverted the snapshot taken on this VPS back to 8.4 for > now. The root partition is 85% used of a 500MB, and since more than half > the used space is in /boot/kernel, I think its the new kernel size that > is the issue and the root partition will have to grow? If that is the > case, I would have to make some room.... > > root@www:/usr/local/etc # df -h > Filesystem Size Used Avail Capacity Mounted on > /dev/da0s1a 484M 378M 67M 85% / > devfs 1.0k 1.0k 0B 100% /dev > /dev/da0s1d 9.5G 1.6G 7.1G 18% /usr > /dev/da0s1e 9.2G 2.7G 5.7G 32% /var > /dev/da1s1 19G 4.0G 13G 23% /www > > Looking at the handbook, perhaps I could use the swap to extend the root > partition and resize /var to add swap back in single user mode? And > would that be enough space, still less than 1GB. > > root@www:/usr/local/etc # gpart show da0 > => 63 41942977 da0 MBR (20G) > 63 41929587 1 freebsd [active] (20G) > 41929650 13390 - free - (6.6M) > > root@www:/usr/local/etc # gpart show da0s1 > => 0 41929587 da0s1 BSD (20G) > 0 1024000 1 freebsd-ufs (500M) > 1024000 524288 2 freebsd-swap (256M) > 1548288 20480000 4 freebsd-ufs (9.8G) > 22028288 19901299 5 freebsd-ufs (9.5G) > > Thanks for any help or pointers...? > One thing I have learned over the time is: all systems from release to release demand more and more disk space (some want slightly more, others, like MS Windows or latest Linux releases, almost twice as much). FreeBSD is on decent side here, still, if you originally planned your / partition somewhere around FreeBSD 6, and were just upgrading system in place, at the level of FreeBSD 10 you will have / too small in size, and even if you succeed upgrading it in place, your / partition is too small to allow you to maintain FreeBSD 10 hassle free in a long run. My take would be: either mirror current system on new drive with larger partitions, then upgrade that, or build FreeBSD 10 fresh, then migrate all from older system to it. When I was building my workstation I used 2 GB /, others may give better advises on most suitable partition sizes. Valeri ++++++++++++++++++++++++++++++++++++++++ Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247 ++++++++++++++++++++++++++++++++++++++++