Date: Tue, 29 Oct 2019 10:48:28 -0400 From: mike tancsa <mike@sentex.net> To: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: replacing zfs disk (freebsd-boot vs freebsd-efi) Message-ID: <00c936e7-d9f2-91f7-62ab-87cf77bfe813@sentex.net> In-Reply-To: <5bf91c8b-a101-a174-a08b-cda42a43a0b5@sentex.net> References: <5bf91c8b-a101-a174-a08b-cda42a43a0b5@sentex.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 10/29/2019 10:17 AM, mike tancsa wrote: > If I replace ada0, what do I need to do in order to full restore boot > functionality to the disk ? > > gpart bootcode -b /boot/pmbr -p /boot/boot1.efifat -i 1 ada0 > gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 2 ada0 > > vs > gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0 > > ? > I am guessing this message should probably be updated with the caveat that if you have an efi partition, it should be different ? zpool replace zroot 9333639541642063400 /dev/ada0p4 Make sure to wait until resilver is done before rebooting. If you boot from pool 'zroot-nfs2', you may need to update boot code on newly attached disk '/dev/ada0p4'. Assuming you use GPT partitioning and 'da0' is your new boot disk you may use the following command: gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da0
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00c936e7-d9f2-91f7-62ab-87cf77bfe813>