zpools do not import automatically, buy stay offline. Import via CLI works?

vaderaardbei

Cadet
Joined
May 31, 2022
Messages
3
I'm running TrueNAS-SCALE-22.02.1
I've had some power outages and 2 pools fail to import at boot. However running zpool import <ID> does import them flawlessly.
zpool status does not list the pools ony the available ones:

./zpool status pool: boot-pool state: ONLINE status: Some supported and requested features are not enabled on the pool. The pool can still be used, but some features are unavailable. action: Enable all features using 'zpool upgrade'. Once this is done, the pool may no longer be accessible by software that does not support the features. See zpool-features(7) for details. scan: scrub repaired 0B in 00:00:33 with 0 errors on Wed May 25 03:45:34 2022 config: NAME STATE READ WRITE CKSUM boot-pool ONLINE 0 0 0 sda3 ONLINE 0 0 0 errors: No known data errors pool: pool state: ONLINE scan: scrub repaired 0B in 06:08:15 with 0 errors on Sun May 22 06:08:22 2022 config: NAME STATE READ WRITE CKSUM pool ONLINE 0 0 0 raidz1-0 ONLINE 0 0 0 ba0faddd-3f8d-4fd9-86cc-017af653a6bd ONLINE 0 0 0 5cb3b860-a2c2-41ff-a886-e11102fb2b0d ONLINE 0 0 0 7e40aba3-92ed-4222-aa8b-8df5f6919ad5 ONLINE 0 0 0 logs 23519f0b-f608-46f7-ad5b-b4d9a374f882 ONLINE 0 0 0

zpool import
root@truenas[/sbin]# ./zpool import pool: vpool id: 7567855823430550315 state: ONLINE action: The pool can be imported using its name or numeric identifier. config: vpool ONLINE b32e3682-432f-42d4-a5e4-2130d3d7c3ab ONLINE pool: vpool2 id: 14650810130880312133 state: ONLINE action: The pool can be imported using its name or numeric identifier. config: vpool2 ONLINE 1f6b39fb-8a2b-41df-854b-d6f7385b8ff2 ONLINE root@truenas[/sbin]# ./zpool import 7567855823430550315 root@truenas[/sbin]# ./zpool import 14650810130880312133

pool: pool
state: ONLINE


After importing the pools are listed without any errors. they are also online in the GUI:

root@truenas[/sbin]# ./zpool status pool: boot-pool state: ONLINE status: Some supported and requested features are not enabled on the pool. The pool can still be used, but some features are unavailable. action: Enable all features using 'zpool upgrade'. Once this is done, the pool may no longer be accessible by software that does not support the features. See zpool-features(7) for details. scan: scrub repaired 0B in 00:00:33 with 0 errors on Wed May 25 03:45:34 2022 config: NAME STATE READ WRITE CKSUM boot-pool ONLINE 0 0 0 sda3 ONLINE 0 0 0 errors: No known data errors pool: pool state: ONLINE scan: scrub repaired 0B in 06:08:15 with 0 errors on Sun May 22 06:08:22 2022 config: NAME STATE READ WRITE CKSUM pool ONLINE 0 0 0 raidz1-0 ONLINE 0 0 0 ba0faddd-3f8d-4fd9-86cc-017af653a6bd ONLINE 0 0 0 5cb3b860-a2c2-41ff-a886-e11102fb2b0d ONLINE 0 0 0 7e40aba3-92ed-4222-aa8b-8df5f6919ad5 ONLINE 0 0 0 logs 23519f0b-f608-46f7-ad5b-b4d9a374f882 ONLINE 0 0 0 errors: No known data errors pool: vpool state: ONLINE config: NAME STATE READ WRITE CKSUM vpool ONLINE 0 0 0 b32e3682-432f-42d4-a5e4-2130d3d7c3ab ONLINE 0 0 0 errors: No known data errors pool: vpool2 state: ONLINE config: NAME STATE READ WRITE CKSUM vpool2 ONLINE 0 0 0 1f6b39fb-8a2b-41df-854b-d6f7385b8ff2 ONLINE 0 0 0 errors: No known data errors root@truenas[/sbin]#

The boot pool import process also keeps running. And it seems that that is a middleware process which does not have the right references to the pools. How can i fix this? my apps are on vpool and they fail to run unless i start restart app container processes manually? But ive never tried that.
 

vaderaardbei

Cadet
Joined
May 31, 2022
Messages
3
I have exported and imported the pools both via command line and the GUI multiple times. after reboot the pools where missing again. I have updated my controller asmedia 601X to make sure this was not the problem.

The last export via commandline and disconnect / import via the GUI was succesfull. My apps are live again but i have not rebooted the server yet. I'll do that soon and post an update
 

vaderaardbei

Cadet
Joined
May 31, 2022
Messages
3
I have exported and imported the pools both via command line and the GUI multiple times. after reboot the pools where missing again. I have updated my controller asmedia 601X to make sure this was not the problem.

The last export via commandline and disconnect / import via the GUI was succesfull. My apps are live again but i have not rebooted the server yet. I'll do that soon and post an update

OK it it working again. middlewared is able to import all pools on boot again. I cannot give you an exact solution but it is both export zpool by commandline and disconnect via GUI. possible a reboot in between. after that the GUI should not have a reference to these zpools.

I can you can import them 'cleanly' in the GUI it should be fixed and the import_on_boot is working again.

Still i think that a CLI command for middlewared to remove zpools manually from configuration should be possible.
 
Top