From owner-freebsd-stable@freebsd.org Tue Jan 31 12:03:33 2017 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 15FC7CC9520 for ; Tue, 31 Jan 2017 12:03:33 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: from mail-qk0-x22c.google.com (mail-qk0-x22c.google.com [IPv6:2607:f8b0:400d:c09::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CE558FB2; Tue, 31 Jan 2017 12:03:32 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: by mail-qk0-x22c.google.com with SMTP id l126so28176322qkc.1; Tue, 31 Jan 2017 04:03:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=hPcxOwt3XvRHnco45CzG4oflR2Biw/0THD3eTlJf/DQ=; b=QCTAT0WR3xTsdJ2Ybtj9MWKWg0xhtTXZH8nUrqRBxyNxKNv/5c1TxEGiQbfevuTYPw c6RpapxlEOMRAnannV7WBNyAQecKnmZrStcKwqco8pcEaxvcII2KlqcZGSxEZhgMtnhi afUGUaXPryEv/6HeRf3ezPvTaGvQdbEUp9MtxDABZqGDHakSklZMgS3U36HSPRB2hj9o q7X85nyDldKwmL/3zNM+riIWNzOzbk1FTTPmxa5In2em7d2/x78jLAUcxl7Bqq7qkc+o /3e1QU6WmUC3AEiuw30YmjEq/vYx2uIOEIu7hSuHPECyLOMGBAdJzRcLnmqFG5fLGQ/j CehA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=hPcxOwt3XvRHnco45CzG4oflR2Biw/0THD3eTlJf/DQ=; b=h7K6l6V1bxwr1EnSegz061S3sciNfTMLim3UY5zTvChVyZGeSyOTtzs2lfDnT34gW1 0JqQ3wK7x03P4qni/zFBYXax9yDR3vYafxzmnZ92RBOSPaTP7JnYx4j/q8EuJneTOLWR HqD1DVK2/ucLG9BwDxYBF8rR5/4r4P+6SoxJrKn9tMLBNiEYecg4pwhVZELiV9AA6EQ0 qwBg0fmD8eB7484y2W0ZZIoI+GWfU1MgUbga3J5I3aNMIhN6aNp6obSPfvTUUgwWTUIM kAXxJ19FIgMkJuhjKfG4+pDE6a2O7Ttaa428/ozAKzMUw4+jVbGRPY2nFn6te9Ruw/Sk Hfww== X-Gm-Message-State: AIkVDXIPhIg3kE/LYqzbZ3+rPy9u+ydPeXz/HiAp4jHMzqUkPvDpFfDzLLSN0H5VDe/FA1jIvX76FL4h92ROIA== X-Received: by 10.55.137.69 with SMTP id l66mr28153926qkd.133.1485864211980; Tue, 31 Jan 2017 04:03:31 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.173.40 with HTTP; Tue, 31 Jan 2017 04:03:31 -0800 (PST) In-Reply-To: <851efa44-0607-231f-0905-8f9c96a36237@ish.com.au> References: <20170129141244.GA63867@in-addr.com> <851efa44-0607-231f-0905-8f9c96a36237@ish.com.au> From: krad Date: Tue, 31 Jan 2017 12:03:31 +0000 Message-ID: Subject: Re: Boot partition size To: Aristedes Maniatis Cc: Freddie Cash , Gary Palmer , FreeBSD Stable Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2017 12:03:33 -0000 Its worth noting you should also go for GPT layout and have a 100meg or so partition provisioned as well so you can do a uefi boot. Even if you arent going to use it right now. On 30 January 2017 at 03:41, Aristedes Maniatis wrote: > On 30/1/17 2:20pm, Freddie Cash wrote: > > And, you may be able to do that on the existing disks, as ZFS now leaves > a MB or two of "slack space" at the end of the device used in the vdev. > This allows for using drives/partitions that are the same size in MB but > have different numbers of sectors. This was an issue on the early ZFS days. > > > > So, you may be able to resize the freebsd-zfs partition by a handful of > KB without actually changing the size of the vdev. > > > Brilliant, thank you. That worked a treat with a new boot size of 256k. > > > Note that this page: https://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/Mirror > needs to be adjusted. This line: > > gpart add -b 34 -s 128k -t freebsd-boot ad0 > > needs to instead be > > gpart add -a 4k -s 512k -t freebsd-boot ad0 > > > I don't have edit rights. Probably someone needs to clean up and merge > many of these pages: https://wiki.freebsd.org/RootOnZFS/ > > > Ari > > > > -- > --------------------------> > Aristedes Maniatis > CEO, ish > https://www.ish.com.au > GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A > >