[SOLVED] Truenas refuse to boot after power shortage

onufle

Cadet
Joined
Jan 5, 2022
Messages
4
Hi All,

After a power shortage, my Truenas refuse to boot.

Initial FreeNAS boot screen is showing, then I get this screen :

1641394892062.png


List valid disk boot :

1641394983912.png


I'm stuck at this point and I don't want to make more damage, so what is the next step to troubleshot this situation ?

Truenas was installed with usb stick with the latest version in june 2021
The boot fs is a nvme 100 go,
The storage pool is a zfs array with 3 * 4Tb
This nas already faced some power shortage before without issue.

thanks !
 

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,947
1. Buy a UPS. Once bitten twice shy.
2. Look slike your boot OS is stuffed. Simply rebuild TN onto the boot media and import the config file, either from your emergency copy or from the system dataset (which hopefully wasn't on your boot pool)
 
Joined
Oct 22, 2019
Messages
3,641
You can re-install TrueNAS to the boot device, and then load your config file to get back on track.

If you never backed up a recent copy of your config file, then you'll have to re-import your pool and redo all of your settings again.

To play it safe, perhaps force a scrub on the boot-pool and your data pool before running any tasks/jails or using the shares to read/write/copy files.
 

onufle

Cadet
Joined
Jan 5, 2022
Messages
4
Thanks for you answers,
I'm an absolute beginner with FreeBSD, so not familiar with its boot loader.
Based on my experience with Grub, I searched for Kernel options : bingo !
Last kernel is 12.0-U7 but I was able to select 12.0-U6 which works fine.
I think if I've got to reboot the NAS 12.0-U7 will be default choice and will fail again.
So next step is : what to do with my dysfunctional 12.0-U7 ?
Restart update job within TrueNAS WebGui ?
 

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,947
set U6 as default, delete U7 and reupgrade
 

onufle

Cadet
Joined
Jan 5, 2022
Messages
4
@NugentS If the whole principle looks clear to me,
would you please explain how do I set U6 as default kernel ? I had a look at /boot/kernel dir thinking I would find something like various versions and a symlink for default but all I can see is /boot/kernel/kernel actual file.
And more important : how do I properly delete U7 ?
thanks,
BR
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
Boot environments are managed under System -> Boot.

You can set the older boot environment as your default, delete the newer one, and then try again.

I had a look at /boot/kernel dir thinking I would find something like various versions and a symlink for default but all I can see is /boot/kernel/kernel actual file.

You are not supposed to be tinkering around inside the OS, though. FreeNAS/TrueNAS are appliance operating systems, meaning that your interactions are supposed to be managed through the GUI, especially for operations like this.
 

onufle

Cadet
Joined
Jan 5, 2022
Messages
4
Hi @jgreco
thanks for your answer,
my question was where do i set/fix default kernel - in this case the previous one, U6.
I searched for kernel selection in the gui but with no luck, so I went to update part of the gui, made the U7 update again and after the reboot, the nas behaves like expected.
 

Redcoat

MVP
Joined
Feb 18, 2014
Messages
2,925
my question was where do i set/fix default kernel - in this case the previous one, U6.
@jgreco gave it to you: " Boot environments are managed under System -> Boot:.

Select the three dots (whatever they are called...) next to the one you want to use on the next bootup and click on "Activate"

1642362610901.png
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
where do i set/fix default kernel - in this case the previous one, U6.

And my answer was -- YOU DON'T.

You do not get to pick what kernel you want to run. The system is to be considered a monolithic appliance. You are not supposed to add, remove, update, modify, bend, fold, spindle, or mutilate bits.

You have to roll back to a previous release.
 
Top