From owner-freebsd-stable@FreeBSD.ORG Fri Oct 10 20:15:57 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 24BAE1DB for ; Fri, 10 Oct 2014 20:15:57 +0000 (UTC) Received: from new1-smtp.messagingengine.com (new1-smtp.messagingengine.com [66.111.4.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EB2A6D10 for ; Fri, 10 Oct 2014 20:15:56 +0000 (UTC) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by gateway2.nyi.internal (Postfix) with ESMTP id DC70A2175 for ; Fri, 10 Oct 2014 16:15:55 -0400 (EDT) Received: from web6 ([10.202.2.216]) by compute5.internal (MEProxy); Fri, 10 Oct 2014 16:15:55 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:x-sasl-enc:from:to :mime-version:content-transfer-encoding:content-type:subject :date:in-reply-to:references; s=smtpout; bh=E7JX0APGYbbOx+LwVv5h HU4K6mw=; b=sQJX+y/9Aw9i9FygBNHQKf6Eokbq0vFY7AFg6GBqIUh+jySD+caQ vJGDB7pSAgYY4Jn0Kt9gpu/+DJWvBpsSetQG7kyx6eaMERD8L5ONnc4Y+Q6ixSMd 0TZM52vY8VWBjZKLudtZsxvrjpn1UhbRarkZjGwVk3nRvpsj0nCpPMs= Received: by web6.nyi.internal (Postfix, from userid 99) id 9C31B5C1DFB; Fri, 10 Oct 2014 16:15:55 -0400 (EDT) Message-Id: <1412972155.2402830.177608133.7B9238D9@webmail.messagingengine.com> X-Sasl-Enc: R1C90XafzHLF0G5tjjPsKolyISQmkRPAlP5dIu5r3Q7j 1412972155 From: Mark Felder To: freebsd-stable@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-7434a20c Subject: Re: GPT partitions not 4k aligned by 10.1-RC1 installer Date: Fri, 10 Oct 2014 15:15:55 -0500 In-Reply-To: <54373F37.9030304@ijs.si> References: <54373F37.9030304@ijs.si> X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Oct 2014 20:15:57 -0000 On Thu, Oct 9, 2014, at 21:06, Mark Martinec wrote: > Today I did a quick install of a 10.1-RC1 from an installation > ISO DVD. Apart from choosing a ZFS filesystem, other options were > left to their default. In particular, the align-to-4k ZFS options > was left enabled. > > Guess what, the ZFS really ended up with ashift 12, > but neither the swap nor the zfs partition is 4k aligned: > > # gpart show /dev/ada0 > => 34 625142381 ada0 GPT (298G) > 34 1024 1 freebsd-boot (512K) > 1058 8388608 2 freebsd-swap (4.0G) > 8389666 616752749 3 freebsd-zfs (294G) > > I find this unacceptable and surprising, > regardless of what the underlying media is. > > Now that even Windows is aligning partitions to 1 MiB, > and SSD erase block is often cited as 1 MiB ... > > Worried about space waste of half of one JPG photo? > Thanks for the report. The installer should be using gpart -a to create the partition aligned, but your result shows that did not happen.