Recover data from hdd

Hello

I have an older version of truenas, I think v13. which was installed on a USB drive. I had 2 USB keys with the system for redundancy, but unfortunately both keys burned out… I installed truenas on new keys and restored it from a backup I found, although old, but nothing changed in the settings. The system settings were restored but the problem is that the system did not assign the disks to me. I see them but it is a problem to assign them, there is valuable data on them and therefore I want to figure out how to add them so that I do not lose data. Thank you all in advance for your help.

Welcome to the forum.

First: Have you installed Core or Scale on the new usb drives?
Installing Scale on USB is not recommended.

I think the system might’ve just crashed due to the corrupt USB drives before.

Run zpool import on CLI and post the output here.
Depending on the output, it might be possible and advisable to import the pool again with zpool import -f <poolname> .

Welcome to TrueNAS forums.

Please take a look at the link Joes Rules for just basic guidance on what kind of information we need in order to provide yo some good help.

I will get you started with a few questions I have:

  • What version of TrueNAS did you install on the new USB Flash drives?
  • How many hard drives do you have?

A few more technical questions:

  • Are you able to bootstrap TrueNAS and login to the GUI?
  • Can you login to the Console? (the attached monitor and keyboard)? If yes, what is the “entire” output of the command zpool status
  • Have you tried to import and existing pool? If so, what were the messages you received?

If your data is valuable, I recommend that you don’t just mash buttons, take your time and you are going to be asked some questions, provide the answers and we will provide guidance. If you are skeptical, ask about something you are going to try to do. There is no problem with asking for another opinion.

Please use the </> button to encapsulate any text output to preserve the formatting, which is very important for the zpool status output for example.

1 Like

I would not recommend using the -f switch yet. It means “force”. Drop the -f from the command until we know more.

You’re right I should have worded that more clearly. I meant:

Run zpool import on CLI and post the output here.
Depending on the output, it might be possible and advisable to import the pool again with zpool import -f <poolname> .

It’s zpool import, not zfs import.

2 Likes

You’re right as well of course. No idea what went wrong in my head when I wrote that first message :sweat_smile:

Edited it now, sorry.

Hi, i have installed Core. I can’t upload a screenshot here.

ZFS-8000-EY on illumos use these code

sorry, what do you mean by that?

I don’t know how but I managed to add the disks, but I still can’t get to the data. When I try to log in it says it’s not available or doesn’t exist on the network. Can I somehow access the data via root and the console, copy it and then I can set up the whole system again and then upload the data back?

You need to be more precise.
Are you trying to log into the webinterface? Are you trying to access shares via SMB or NFS?
Why would you want to recreate the pool at that point?

Also:

Please do as Joe said, read his rules and provide the requested information.

When I try to log in via another computer by mapping a drive - SMB. Via the webinterface as root, the drives are mapped.

Are your shares configured properly?

Again: read joes rules and provide the requested information please.

this error indicates that a ZFS pool cannot be imported because it was last accessed by another system, and the host IDs do not match.

Your problem is much more than not being able to access SMB, you cannot access the pool at all if the error is correct.

Even if you had a complete computer failure, using a TrueNAS configuration backup should have restored the pool.

Provide the data you can from Joes Rules for the Drive Failures section. Also provide the results from zpool import as I feel this may be the item we are facing.