From owner-freebsd-stable@freebsd.org Mon Jan 30 03:41:34 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 D78C6CC65F5 for ; Mon, 30 Jan 2017 03:41:34 +0000 (UTC) (envelope-from prvs=0203e18048=ari@ish.com.au) Received: from fish.ish.com.au (202-161-115-54.static.tpgi.com.au [202.161.115.54]) (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 997C01ED3 for ; Mon, 30 Jan 2017 03:41:33 +0000 (UTC) (envelope-from prvs=0203e18048=ari@ish.com.au) Received: from ip-136.ish.com.au ([203.29.62.136]:52695) by fish.ish.com.au with esmtpsa (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.82_1-5b7a7c0-XX) (envelope-from ) id 1cY2qF-0005wU-2F; Mon, 30 Jan 2017 14:41:19 +1100 Subject: Re: Boot partition size To: Freddie Cash , Gary Palmer References: <20170129141244.GA63867@in-addr.com> Cc: FreeBSD Stable From: Aristedes Maniatis Message-ID: <851efa44-0607-231f-0905-8f9c96a36237@ish.com.au> Date: Mon, 30 Jan 2017 14:41:16 +1100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="iQeOmGAst09KKmExv35b7JxurdkcFCpi8" 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: Mon, 30 Jan 2017 03:41:34 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --iQeOmGAst09KKmExv35b7JxurdkcFCpi8 Content-Type: multipart/mixed; boundary="eK9rjVJGwHIeWmbAwp6b3s3k8LUjvigcM"; protected-headers="v1" From: Aristedes Maniatis To: Freddie Cash , Gary Palmer Cc: FreeBSD Stable Message-ID: <851efa44-0607-231f-0905-8f9c96a36237@ish.com.au> Subject: Re: Boot partition size References: <20170129141244.GA63867@in-addr.com> In-Reply-To: --eK9rjVJGwHIeWmbAwp6b3s3k8LUjvigcM Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 30/1/17 2:20pm, Freddie Cash wrote: > And, you may be able to do that on the existing disks, as ZFS now leave= s 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 da= ys. >=20 > 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 ma= ny of these pages: https://wiki.freebsd.org/RootOnZFS/ Ari --=20 --------------------------> Aristedes Maniatis CEO, ish https://www.ish.com.au GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A --eK9rjVJGwHIeWmbAwp6b3s3k8LUjvigcM-- --iQeOmGAst09KKmExv35b7JxurdkcFCpi8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iEYEARECAAYFAliOtdwACgkQ72p9Lj5JECpT4gCdE8D8Ih2TBi/pnhAR1uxhHAOn ODcAnjdcfRGdVAxQLvBiTxUue93w2EbS =ICch -----END PGP SIGNATURE----- --iQeOmGAst09KKmExv35b7JxurdkcFCpi8--