*New 12.1 series Release:
2020-03-24: XigmaNAS 12.1.0.4.7389 - released

*New 11.3 series Release:
2020-03-24: XigmaNAS 11.3.0.4.7383 - released!


We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

ZFS bootcode upgrade

For "upgrading" from FreeNAS/NAS4Free Legacy to XigmaNAS and upgrading XigmaNAS to newer builds.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
nasser
Starter
Starter
Posts: 47
Joined: 01 May 2017 21:00
Status: Offline

ZFS bootcode upgrade

#1

Post by nasser »

Hello!

do I need update the bootcode on partition 1 (efiboot) or 2 (sysboot0) or is it no problem just update both?

Code: Select all

gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada3

=>    40 234441568 ada3 GPT (112G)
      40    409600 1 efiboot0 (200M)
  409640      1024 2 sysboot0 (512K)
  410664      7128 - free - (3.5M)
  417792  12582912 3 swap0 (6.0G)
13000704  25165824 4 sysdisk0 (12G)
38166528  16777216 5 ssdlog0 (8.0G)
54943744 179497864 6 ssdcache0 (86G)
...and how to remove the bootcode from a partition, because I wrote it on both?

Thank you for advice

nasser
Starter
Starter
Posts: 47
Joined: 01 May 2017 21:00
Status: Offline

Re: ZFS bootcode upgrade

#2

Post by nasser »

hello again!
how can I go further with this...

i don't dare to restart the machine :)

User avatar
JoseMR
Hardware & Software Guru
Hardware & Software Guru
Posts: 1045
Joined: 16 Apr 2014 04:15
Location: PR
Contact:
Status: Offline

Re: ZFS bootcode upgrade

#3

Post by JoseMR »

nasser wrote:
25 Mar 2020 19:39
hello again!
how can I go further with this...

i don't dare to restart the maschine :)
Hello, sorry for my previous ignorant post about not to update the boot code, just since I'm constantly reinstalling/upgrading the systems, either VM's and Hardware I've never faced that requirement here yet.

But indeed as per THIS and THIS it is indeed recommended to update the bootcode in ZFS setups.

In such case, the following commands will update the bootcode:

For an UEFI+BIOS BOOT:

Code: Select all

gpart bootcode -p /boot/boot1.efifat -i 1 ${DISK}
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 2 ${DISK}
For an BIOS BOOT only:

Code: Select all

gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ${DISK}
Where "${DISK}" may be the disk in question, e.g: adaX, daX etc.

WARNING: Please be careful not to kill your system boot, nor to nuke an unrelated disk, perhaps this could be a nice addition for the great ZFS Tools XigmaNAS section.

Regards
System: FreeBSD 12 RootOnZFS Mirror, MB: Supermicro X8SI6-F, Xeon X3450, 16GB DDR3 ECC RDIMMs.
XigmaNAS RootOnZFS
Addons at GitHub
BastilleBSD
Boot Environments Intro
Resources Home Page

Post Reply

Return to “Upgrade XigmaNAS”