Re: upgrade stable/12 -> stable/13 zfs + boot partition Mediasize 64K

From: Bakul Shah <bakul_at_iitbombay.org>
Date: Thu, 11 Feb 2021 20:34:18 -0800
On Feb 11, 2021, at 7:13 PM, Russell L. Carter <rcarter_at_pinyon.org> wrote:
> 
> root_at_terpsichore> gpart show
> =>       34  625142381  da0  GPT  (298G)
>         34        128    1  freebsd-boot  (64K)
>        162    8388608    2  freebsd-swap  (4.0G)
>    8388770  616753645    3  freebsd-zfs  (294G)

You can do something like

gpart delete -i 2 da0
gpart resize -s 512k -i 1 da0
gpart add -t freebsd-swap da0
gpart bootcode -p /boot/gptzfsboot -i 1 da0

gpart list da0
will show the swap partition last but it will still be /dev/da0p2

Practice on a md0 device if you want to test this.

truncate -s 20G file
mdconfig -a -t vnode -f file
gpart create -s GPT md0
etc.
Received on Fri Feb 12 2021 - 03:34:24 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:27 UTC