Boot partition size

Aristedes Maniatis ari at ish.com.au
Mon Jan 30 03:41:34 UTC 2017


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 163 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20170130/07d692b7/attachment.sig>


More information about the freebsd-stable mailing list