From owner-freebsd-bugs@FreeBSD.ORG Wed Nov 19 19:08:05 2014 Return-Path: Delivered-To: freebsd-bugs@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 7030B9B8 for ; Wed, 19 Nov 2014 19:08:05 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 3EFE0344 for ; Wed, 19 Nov 2014 19:08:05 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id sAJJ85jl018849 for ; Wed, 19 Nov 2014 19:08:05 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 195174] New: bsdinstall(8) does not align partitions at 4k (or more) Date: Wed, 19 Nov 2014 19:08:05 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 10.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: Mark.Martinec@ijs.si X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Nov 2014 19:08:05 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195174 Bug ID: 195174 Summary: bsdinstall(8) does not align partitions at 4k (or more) Product: Base System Version: 10.1-RELEASE Hardware: Any OS: Any Status: Needs Triage Severity: Affects Some People Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: Mark.Martinec@ijs.si Mark Martinec wrote (2014-10-10): https://lists.freebsd.org/pipermail/freebsd-stable/2014-October/080509.html An install of a 10.1 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. 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. Patrick M. Hausen wrote (2014-11-19): https://lists.freebsd.org/pipermail/freebsd-stable/2014-November/081080.html I just installed a new machine with 10.1-RELEASE using the memstick installer and chosing ZFS mirror root as the disk layout. I did check the "4k" option, watched the installer do the necessary gnop dance and the pool seems to be OK: [...] But this puzzles me a bit: None of the start sector numbers is a multiple of 8, neither are the end sectors a multiple of 8 minus 1. So the pool uses a 4k block size but it starts on an odd multiple of 2k on the platter - do I see this correctly? [...] In summary: - the bsdinstall should align GPT partition as a bare minimum at a 4k boundaries regardless of the underlying media; - in my opinion the first (freebsd-boot) partition should be aligned at 512kB with a size of 512kB, and all following GPS partitions should be aligned at 1 MB by default. -- You are receiving this mail because: You are the assignee for the bug.