how to upgrade from command line?

ikke

Contributor
Joined
Apr 22, 2012
Messages
124
Hi,

GUI crashed and I'd like to upgrade as I need to reboot anyway. How to upgrade over ssh?

I noticed there was freenas-update command, which listed the stuff to update:
Code:
# /usr/local/bin/freenas-update check
Upgrade package base-os 11.2-RELEASE-63e5b1280ef0b8d882194a8a85d19665->11.2-RELEASE-U1-ecf80b60107771baacc6dce10bfe9ab6
Upgrade package freebsd-pkgdb 11.2-RELEASE-63e5b1280ef0b8d882194a8a85d19665->11.2-RELEASE-U1-ecf80b60107771baacc6dce10bfe9ab6
Upgrade package freenas-pkg-tools 11.2-RELEASE-63e5b1280ef0b8d882194a8a85d19665->11.2-RELEASE-U1-ecf80b60107771baacc6dce10bfe9ab6
Upgrade package FreeNASUI 11.2-RELEASE-63e5b1280ef0b8d882194a8a85d19665->11.2-RELEASE-U1-ecf80b60107771baacc6dce10bfe9ab6
Reboot is (conditionally) required
Sequence 63e5b1280ef0b8d882194a8a85d19665 -> ecf80b60107771baacc6dce10bfe9ab6


but the update option for it only updated the GUI part:

Code:
# /usr/local/bin/freenas-update update
Status: Installing FreeNASUI
Total Progress: [########################################] 100.00%


How to upgrade the rest of it? The command didn't seem to have man page.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504

ikke

Contributor
Joined
Apr 22, 2012
Messages
124
No I was not. It ended up in misery and tears. :) I rebooted the box, from which it never recovered. The USB image format for 11.2 is non compliant with old BIOS, which won't recognise it as boot device.

So I downgraded into 11.1. I now need to think of my options. Unless someone figures out what's wrong with the 11.2 USB bootloader format, I can't upgrade. So I either need to go away from Freenas, perhaps Linux with ZFS, or buy new HW.

I'd like to stay with Freenas, which has been brilliant over the years, but I don't feel like burning money because of such misfeature. Hopefully someone comes up with a missing option for the bootloader installer.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
/usr/local/bin/freenas-update -T FreeNAS-11.2-STABLE update

-T option picks the train to upgrade to.
Good find.

I don't think this will solve the OP's problem as I'm guessing the switch to the FreeBSD bootloader is where it's stuck and that will happen in any case.

Best offer of a way out would be to switch to an SSD for boot.
 

DarthMaul

Cadet
Joined
Jan 10, 2023
Messages
1
first time dealing with free or true NAS. I created acct just to say TY
thank you!

the -T is exactly what I needed on the fly
saved my butt
 
Top