*New 11.3 series Release:
2019-10-19: XigmaNAS 11.3.0.4.7014 - released

*New 12.0 series Release:
2019-10-05: XigmaNAS 12.0.0.4.6928 - released!

*New 11.2 series Release:
2019-09-23: XigmaNAS 11.2.0.4.6881 - 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

RootOnZFS Changes and Fixes

General information about XigmaNAS
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
User avatar
JoseMR
Hardware & Software Guru
Hardware & Software Guru
Posts: 1153
Joined: 16 Apr 2014 04:15
Location: PR
Contact:
Status: Offline

RootOnZFS Changes and Fixes

#1

Post by JoseMR » 05 Jun 2019 00:00

Hello, as part of the RootOnZFS improvement continuation, some changes has been made to the Platform by adding additional features such as RAID10 Install option, full disk(s) GELI encryption, legacy MBR install option, bug fixes etc., on top of that lots of changes that has been made to FreeBSD, and the notorious Lua scripting langauge addition to the boot loader and such.

As we already know, some base changes do requires for a reinstall(recommended) then import back config to avoid warning messages, errors or simply for the sake of ease, but I also understand that some advanced Full Platform users have lots of changes/packages and making manual "*etc" backup/restore and reinstalling apps may take awhile thus causing downtime.

So In order to overcome the aforementioned inconvenience, I will provide here quick steps with details(mostly copy/paste on SSH)
to prevent the user from doing a full reinstall, but instead executing a simple command to patch required files if needed.

As many already know, RootOnZFS Platform is highly dependent on the "rc.firmware" file which is in charge of the Boot Environment creation and files extraction, but sometimes it may happens that new files are added to the system especially "libs" that may cause the extraction command to fail due files chflags/permissions thus making the firmware upgrade to fail unexpectedly(hopefully fixed as of rev. 6741 ).

Tip: It is worth mentioning that you can always turn on Firmware Upgrade console debugging for realtime informational view, since late releases sems to ship with this option turned off by default, just go to "System > Advanced > syslog.conf" and enable the "console debug" item.

--------------------------------------
Q: XigmaNAS RootOnZFS Firmware upgrade keeps failing, what should I do?
A: This is mostly caused by an older rc.firmware file lacking new code to deal with new features and/or bug fixes, shown below are the commands than need to be executed one-time on the shell before the upgrade, just make sure the server has internet connection and to select the proper command based on your XigmaNAS version:

Latest rc.firmware file for XigmaNAS 12.x:

Code: Select all

fetch --no-verify-peer -o /etc/rc.firmware "https://sourceforge.net/p/xigmanas/code/HEAD/tree/trunk/etc/rc.firmware?format=raw"
Latest rc.firmware file for XigmaNAS 11.2:

Code: Select all

fetch --no-verify-peer -o /etc/rc.firmware "https://sourceforge.net/p/xigmanas/code/HEAD/tree/branches/11.2.0.4/etc/rc.firmware?format=raw"
--------------------------------------


--------------------------------------
Additional Notes for RootOnZFS/MBR users

FreeBSD ZFS/MBR is still a little buggy and some users(including me) are still experiencing that the zpool "bootpool" which is required for the MBR to work correctly is not being imported after boot, causing unexpected issues and upgrade failures, however as a workaround adding a PostInit command under "System > Advanced > Command Scripts" to import "bootpool" if not detected may help prevent this issue, below is the command needed as PostInit:

Code: Select all

if ! zpool status | grep -qw bootpool; then zpool import -f bootpool; fi
Sample screenshot:
ZFS_MBR_PostInit_CMD.png
References about bootpool:
FreeBSD reference #1
FreeBSD reference #2
FreeBSD bug report

Regards
You do not have the required permissions to view the files attached to this post.
System: FreeBSD 12 RootOnZFS, MB: Supermicro X8SI6-F, Xeon X3450, 16GB DDR3 ECC RDIMMs.
Addons at GitHub
JoseMRPubServ
Boot Environments Intro

nasrocks
Starter
Starter
Posts: 61
Joined: 05 Nov 2014 03:39
Status: Offline

Re: RootOnZFS Changes Notice

#2

Post by nasrocks » 05 Jun 2019 03:12

Spoon is Xigmanas going to go to onlyto RootOnZFS or is it going to remain as an option?

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

Re: RootOnZFS Changes Notice

#3

Post by JoseMR » 05 Jun 2019 03:34

nasrocks wrote:
05 Jun 2019 03:12
Spoon is Xigmanas going to go to onlyto RootOnZFS or is it going to remain as an option?
Hi nasrocks, the RootOnZFS platform will remain as an advanced install option targeted for advanced users and developers only, the traditional Embedded and Full UFS platforms will be left intact as always.

Regards
System: FreeBSD 12 RootOnZFS, MB: Supermicro X8SI6-F, Xeon X3450, 16GB DDR3 ECC RDIMMs.
Addons at GitHub
JoseMRPubServ
Boot Environments Intro

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

Re: RootOnZFS Changes Notice

#4

Post by JoseMR » 05 Jun 2019 06:21

Root partition check has been disabled for RootOnZFS Platforms since this is not required as for revision 6720.

So "Boot partition is too small" error will be no longer a problem upon drive changes/shifting.
System: FreeBSD 12 RootOnZFS, MB: Supermicro X8SI6-F, Xeon X3450, 16GB DDR3 ECC RDIMMs.
Addons at GitHub
JoseMRPubServ
Boot Environments Intro

wsmith
NewUser
NewUser
Posts: 4
Joined: 10 Aug 2018 19:21
Status: Offline

Re: RootOnZFS Changes and Fixes

#5

Post by wsmith » 20 Jun 2019 14:03

the above fixed my issue with the upgrade hanging the gui and not completing. thx.

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

Re: RootOnZFS Changes and Fixes

#6

Post by JoseMR » 22 Jun 2019 02:38

wsmith wrote:
20 Jun 2019 14:03
the above fixed my issue with the upgrade hanging the gui and not completing. thx.

Hi wsmith, this hopefully has been already fixed with chflags backup/restore functions as of r.6741.

Just happen that newly added content into base may cause the tar command exiting with errors during files extraction, notoriously for some protected libs.

Sorry for any inconvenience.

Regards
System: FreeBSD 12 RootOnZFS, MB: Supermicro X8SI6-F, Xeon X3450, 16GB DDR3 ECC RDIMMs.
Addons at GitHub
JoseMRPubServ
Boot Environments Intro

Post Reply

Return to “GENERAL INFORMATION”