From owner-freebsd-current@FreeBSD.ORG Mon Dec 5 17:32:15 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A05D51065740 for ; Mon, 5 Dec 2011 17:32:15 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from argol.doit.wisc.edu (argol.doit.wisc.edu [144.92.197.212]) by mx1.freebsd.org (Postfix) with ESMTP id 7428E8FC1D for ; Mon, 5 Dec 2011 17:32:15 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from avs-daemon.smtpauth3.wiscmail.wisc.edu by smtpauth3.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) id <0LVQ00F00RDQEA00@smtpauth3.wiscmail.wisc.edu> for freebsd-current@freebsd.org; Mon, 05 Dec 2011 11:32:14 -0600 (CST) Received: from wanderer.tachypleus.net (i3-user-nat.icecube.wisc.edu [128.104.255.12]) by smtpauth3.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) with ESMTPSA id <0LVQ004DYRDP3840@smtpauth3.wiscmail.wisc.edu>; Mon, 05 Dec 2011 11:32:13 -0600 (CST) Date: Mon, 05 Dec 2011 11:32:13 -0600 From: Nathan Whitehorn In-reply-to: <57041.1323103673@critter.freebsd.dk> To: Poul-Henning Kamp Message-id: <4EDD001D.1030702@freebsd.org> X-Spam-Report: AuthenticatedSender=yes, SenderIP=128.104.255.12 X-Spam-PmxInfo: Server=avs-11, Version=5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2011.12.5.172116, SenderIP=128.104.255.12 X-Enigmail-Version: 1.0.1 References: <57041.1323103673@critter.freebsd.dk> User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:7.0) Gecko/20110928 Thunderbird/7.0 Cc: Mark Martinec , freebsd-current@freebsd.org Subject: Re: bsdinstall guided partitioning should 4k-align swap and ufs partitions X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2011 17:32:15 -0000 On 12/05/11 10:47, Poul-Henning Kamp wrote: > In message <201112051743.13483.Mark.Martinec+freebsd@ijs.si>, Mark Martinec wri > tes: >> Using a guided partitioning install of 9.0-RC2 on a 64GB (virtual) disk >> (from a 9.0-RC2 ISO image) results in the following GPT partitioning: >> >> # gpart show /dev/ada0 >> => 34 134217661 ada0 GPT (64G) >> 34 128 1 freebsd-boot (64k) >> 162 125828992 2 freebsd-ufs (60G) >> 125829154 6709248 3 freebsd-swap (3.2G) >> 132538402 1679293 - free - (820M) >> >> This is most unfortunate for installations using 4kB sectored disks >> or SSD disks, [...] > > This is not a new problem, you face the same issue with RAID5 devices. > > > GEOM defines two provider properties for handling all these cases > correctly: stripesize + stripeoffset. > > If the disk-driver has a 4k drive, or suspects it has a 4k drive ( > these properties are advisory only), it should announce that with > the stripe* properties on its GEOM provider. > > GEOM classes are responsible for passing these properties up with > whatever adjustments are necessary (for instance modifying the > stripeoffset for partitions). > > The partitioning tools, (All of them!) should examine these two > properties and prod the user towards not doing something silly. > The installer will align all partitions to the GEOM stripesize/offset. We could make it do min(4KB, stripesize), but in general I think this is better done at the GEOM level. -Nathan