Restored to default - All pools disappeared. How to restore pools?

Hamimi

Dabbler
Joined
Dec 22, 2021
Messages
21
Hi guys,

I have heard there is a very solid Truenas community here. Please help I am stressed.
I have restored my TrueNAS to defaults since I couldn't reach my console using the IP Address. Since then all my pools are gone. I have heard we can bring them back using "Export" through CLI and then import through GUI. I am a newbie so I don't know what these mean. Could someone explain how I can do this?

Thanks a lot
 

artlessknave

Wizard
Joined
Oct 29, 2016
Messages
1,506
you can't export the pools since you already erased the system that had them imported.
go to storage, pools, add, and import the pool. that's it. as you go through the steps, it will show you any pools that are available to import.
1646458967928.png
resetting the whole thing to defaults just because you cant reach the IP address is like swatting mosquitoes with a shotgun.

take some time to read up on the system you are trying to use. TrueNAS is very powerful but can be punishing of mistakes. my signature has a large number of good reading material.
 
Last edited:

artlessknave

Wizard
Joined
Oct 29, 2016
Messages
1,506
You can also
zpool import
to see a list of importable pools
 

Hamimi

Dabbler
Joined
Dec 22, 2021
Messages
21
you can't export the pools since you already erased the system that had them imported.
go to storage, pools, add, and import the pool. that's it. as you go through the steps, it will show you any pools that are available to import.
View attachment 53730
resetting the whole thing to defaults just because you cant reach the IP address is like swatting mosquitoes with a shotgun.

take some time to read up on the system you are trying to use. TrueNAS is very powerful but can be punishing of mistakes. my signature has a large number of good reading material.
Thanks a lot for your reply. I have imported them but they showed 'Degraded'. Then I started to Scrub the pool and it was a very lengthy process. I should go and check the status now again. Did I do the right thing (was late last night Eastern time)?
 

Hamimi

Dabbler
Joined
Dec 22, 2021
Messages
21
Here is my situation. Hope you experts can help :-(
 

Attachments

  • Capture.PNG
    Capture.PNG
    25.1 KB · Views: 678

Kris Moore

SVP of Engineering
Administrator
Moderator
iXsystems
Joined
Nov 12, 2015
Messages
1,471
This means you may have a disk that is bad. Click the configure button (Gear) and click status. Do any of your drives show errors?
 

Hamimi

Dabbler
Joined
Dec 22, 2021
Messages
21
Thanks Kris, here is the status screenshot...
 

Attachments

  • Capture1.PNG
    Capture1.PNG
    16.8 KB · Views: 429

Kris Moore

SVP of Engineering
Administrator
Moderator
iXsystems
Joined
Nov 12, 2015
Messages
1,471
Interesting, no errors displayed there. Check out put of "zpool status Hamimi" from the CLI. Anything amiss there? If not, you can try running "zpool clear Hamimi" to clear the error counters. But I'd keep an eye on it for a while to be sure.
 

Hamimi

Dabbler
Joined
Dec 22, 2021
Messages
21
I have no idea about how to do it on CLI. Sorry I am really begginer here, how should I do it?
Thanks
 

Hamimi

Dabbler
Joined
Dec 22, 2021
Messages
21
Also, Kris, I think in the screenshot I sent earlier there are 11 errors indicated.
 

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,947
@Hamimi I note that you have one disk on da0 and one on ada1 implying you have some sort of expansion card
How are you attaching the disks

In fact - can you please details your hardware as per forum rules
 

Hamimi

Dabbler
Joined
Dec 22, 2021
Messages
21
Yes sure, I have on external hard disk drive and one internal hard disk drive inside my laptop. The external is 14TB and internal is 640gb
 

artlessknave

Wizard
Joined
Oct 29, 2016
Messages
1,506
that is not your hardware. have a look in both of our signatures for examples of what is being asked for.

and you can get to the shell either in the GUI (literally "shell") or with ssh (enable the service, and then connect to the server, usually with Putty).
 
Last edited:

Hamimi

Dabbler
Joined
Dec 22, 2021
Messages
21
Interesting, no errors displayed there. Check out put of "zpool status Hamimi" from the CLI. Anything amiss there? If not, you can try running "zpool clear Hamimi" to clear the error counters. But I'd keep an eye on it for a while to be sure.
Here is the Zpool status for Hamimi. Seems like there are too many errors. I did Scrum the pool but still no luck., Guys, do I have any chance to recover my data?
 

Attachments

  • Capture2.PNG
    Capture2.PNG
    26 KB · Views: 407

Hamimi

Dabbler
Joined
Dec 22, 2021
Messages
21
@Hamimi I note that you have one disk on da0 and one on ada1 implying you have some sort of expansion card
How are you attaching the disks

In fact - can you please details your hardware as per forum rules
My machine is a Asus laptop N61JQ:

Motherboard: Asus
CPU: Intel core i7 1st gen
RAM: 16gig Corsair
Hard drives: Main SSD: Windows is installed on it; USB External HDD where Linux Truenas is installed for storage; USB external WD 14TB; WD 640GB used in DVD ROM Drive used for storage
Network drive: Not sure
Hard disk controller: Not sure.

Should I provide any other info?
 

Hamimi

Dabbler
Joined
Dec 22, 2021
Messages
21
Here is the status after Scrub the Disk is completed.
 

Attachments

  • Capture3.PNG
    Capture3.PNG
    57.2 KB · Views: 676

artlessknave

Wizard
Joined
Oct 29, 2016
Messages
1,506
if I read this correctly, you appear to have a pure stripe pool. any disk being unavailable makes the pool inaccessible. if so, you built this pool with zero redundancy, there is nothing to recover from.
Main SSD: Windows is installed on it; USB External HDD where Linux Truenas is installed for storage;
this only makes sense to me if you tried to virtualize TrueNAS in windows, which is not a good idea. virtualization adds many extra points of failure, and, while it can be done, MUST be a done in a few very specific ways, none of which I see here.

not only is your hardware not recommended, much of this setup is specifically highly discouraged, for reasons like what you are experiencing first-hand.
ZFS does not work well on USB drives.

the best option you have to get anything of this back is to shut it all off and send it to professional recovery services, and pay much $$$ for it.

from what I see here, you would have been far better off just storing this data on NTFS usb drives.

if you are able to get it imported and read any kind of data, IMMEDIATELY COPY ANYTHING YOU WANT TO KEEP TO A SAFER LOCATION.
do not wait to try and recover the original pool, because at this point it's on it's deathbed and you need to plan to replace it, or, better yet, just use USB drives with windows.
also, probably stop trying to scrub it, that will just put more stress on an unhealthy pool.
 
Last edited:

Hamimi

Dabbler
Joined
Dec 22, 2021
Messages
21
if I read this correctly, you appear to have a pure stripe pool. any disk being unavailable makes the pool inaccessible. if so, you built this pool with zero redundancy, there is nothing to recover from.

this only makes sense to me if you tried to virtualize TrueNAS in windows, which is not a good idea. virtualization adds many extra points of failure, and, while it can be done, MUST be a done in a few very specific ways, none of which I see here.

not only is your hardware not recommended, much of this setup is specifically highly discouraged, for reasons like what you are experiencing first-hand.
ZFS does not work well on USB drives.

the best option you have to get anything of this back is to shut it all off and send it to professional recovery services, and pay much $$$ for it.

from what I see here, you would have been far better off just storing this data on NTFS usb drives.

if you are able to get it imported and read any kind of data, IMMEDIATELY COPY ANYTHING YOU WANT TO KEEP TO A SAFER LOCATION.
do not wait to try and recover the original pool, because at this point it's on it's deathbed and you need to plan to replace it, or, better yet, just use USB drives with windows.
also, probably stop trying to scrub it, that will just put more stress on an unhealthy pool.
I didn't install TrueNAS on windows virtually. I just installed it on an external HDD connected to the USB. Oh that is pretty sad. There is no way I can get a bit of this pool back, right? :-(
 

Hamimi

Dabbler
Joined
Dec 22, 2021
Messages
21
I have heard on a different forum page that somebody was in the same situation and they resolved it through : "Exporting the pool through CLI" and then "Importing it through GUI:. Not sure how to do it though.

Thanks for sharing your expert view.
 
Top