SOLVED Zpools Online but Not On UI

f1reW1re

Cadet
Joined
Dec 1, 2021
Messages
2
Hello everyone,

I was hoping someone could shed some light on an issue that I am having on my TrueNAS appliance. Recently, one of our zpools was degraded due to a fault in a drive that had the logs. I went to the UI of my TrueNAS > Storage and Detached the volume. I then rebooted the system and imported the pool without the use of logs and everything seems online. This is the command I ran to import the pool:

zpool import -o cachefile=none -m -R /mnt -f tank2

My question is how do we get the volume back on TrueNAS > Storage? I thought that when I ran the command above it would have showed up as the volume.

Any help?
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
That would've worked in FreeNAS 11. In TrueNAS 12, you'll need to export the pool, and then re-import it via the API call midclt call pool.import_pool '{"name": "tank2"}'.
 

Longfellow75

Dabbler
Joined
Aug 24, 2022
Messages
12
That would've worked in FreeNAS 11. In TrueNAS 12, you'll need to export the pool, and then re-import it via the API call midclt call pool.import_pool '{"name": "tank2"}'.
Hi I have a similar problem. By API call do you mean using the GUI or command from shell?
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
This is a shell command.
 
Top