From owner-freebsd-questions@FreeBSD.ORG Wed Feb 6 21:33:51 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A383557D for ; Wed, 6 Feb 2013 21:33:51 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 3C582B47 for ; Wed, 6 Feb 2013 21:33:51 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.6/8.14.6) with ESMTP id r16LXjMA036440; Wed, 6 Feb 2013 14:33:45 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.6/8.14.6/Submit) with ESMTP id r16LXjWT036437; Wed, 6 Feb 2013 14:33:45 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Wed, 6 Feb 2013 14:33:45 -0700 (MST) From: Warren Block To: Polytropon Subject: Re: How to add unused space to an existing install In-Reply-To: <20130206191024.e556d840.freebsd@edvax.de> Message-ID: References: <47D0E9AD1EEAC6058A534838@utd71538.campus.ad.utdallas.edu> <20130206191024.e556d840.freebsd@edvax.de> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Wed, 06 Feb 2013 14:33:45 -0700 (MST) Cc: Paul Schmehl , FreeBSD Questions List X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Feb 2013 21:33:51 -0000 On Wed, 6 Feb 2013, Polytropon wrote: > On Wed, 06 Feb 2013 11:58:56 -0600, Paul Schmehl wrote: >> When I try to create a new slice using fdisk, it doesn't seem to work. If >> I move to the label editor, I get this: >> >> FreeBSD Disklabel Editor >> >> Disk: mfid0 Partition name: mfid0s1 Free: 0 blocks (0MB) >> >> Part Mount Size Newfs Part Mount Size Newfs >> ---- ----- ---- ----- ---- ----- ---- ----- >> mfid0s1a 2000MB * >> mfid0s1d 65536MB * >> mfid0s1e 4096MB * >> mfid0s1b swap 65536MB SWAP >> mfid0s1f 10240MB * >> mfid0s1g 601GB * >> >> As you can see mfid0s1g is 601GB, and according to fstab that's /var. >> >> Yet df -h shows: >> >> # df -h >> Filesystem Size Used Avail Capacity Mounted on >> /dev/mfid0s1a 1.9G 726M 1.0G 41% / >> devfs 1.0k 1.0k 0B 100% /dev >> /dev/mfid0s1e 3.9G 38M 3.5G 1% /home >> /dev/mfid0s1d 62G 6.6M 57G 0% /tmp >> /dev/mfid0s1f 9.7G 7.5G 1.4G 84% /usr >> /dev/mfid0s1g 582G 39G 496G 7% /var >> >> So apparently I'm not creating this new slice? It should be /dev/mfid0s1h, >> correct? > > If you're creating a new slice, that would be mfid0s2, because > mfid0s1 is the 1st slice ("DOS primary partition") carrying the > partitions a, swap, d, e, f, g. If I remember correctly, h is > the last partition letter that can be assigned, so this one > should be available. > > Problem: The 1st slice mfid0s1 is already of fixed size, so > you cannot add a new partition here without growint that > slice first. Attention, that step isn't free of danger and > should be done with a backup at hand, just in case, and > because you _always_ need a backup. :-) > > This problem is not a problem if you create a 2nd slice > mfid0s2 to use it separately. > > If you can _really_ create mfid0s2 as a slice, you only need > to format it, e. g. "newfs -U /dev/mfid0s2" which creates > mfid0s2c which in turn is called mfid0s2). You can then assign > that new partition (the one covering the whole slice) to > a new mountpoint, e. g. /data, /stuff or whatever you want. Yes, but creating FreeBSD partitions inside that slice allows them to be aligned. That may not be a problem on these 1T drives, some 1T drives have 512-byte blocks. Or the slow misaligned speed might be disguised by the slow RAID5 speed... fdisk and bsdlabel always align to fictional CHS values. gpart can align FreeBSD partitions.