[Freenas] - My usb stick died, need help restoring my volumes

Hello everyone

So my freenas usb died on me and now i have had to install freenas on another usb to see if i can recover my data.

I have imported the zfs pool via the shell and it said that it was good and that my pool was imported. But how to i get my volumes and by extension my data to appear? I am quite a noob at Freenas and am just learning. If anyone of you could help me i would be extremly gratefull

It should be said that my problem occurs when i go into the web gui and try to use the "Import voulme" option. Here nothing shows up, even though i have imported my zfs pool

open the console and follow:

http://docs.oracle.com/cd/E36784_01/html/E36835/gazuf.html

here's a quick cheatsheet if you get stuck:

http://www.datadisk.co.uk/html_docs/sun/sun_zfs_cs.htm

I'd start with the

zfs list command to see if the pool actually imported and what kind of status flags show up

i used the "zfs list" command and my pools seem to be imported(I can see them in a list). and freenas seems to say that the pool has been imported, i have gotten as far as

zpool import -f Vault (My pool is called Vault)

But i don't really know where to go from here, and sorry if i am being stupid but i can't really see what the guide you linked(Thanks) wants me to do

Try

zpool status Vault

and paste the output here.

Here is an image if the output

is the volume encrypted?

are you using the same version of freenas?

Pretty sure its not encrytpted, dont remember encrypting it when i set it up

second question is more important

I think that the install is a few small updates behind, but nothing major to my knowledge

Edit: I can quickly run the updates on the new installation if you think that will help

Sounds like they just need to be mounted.
Easiest way might be to reboot?
Or from the shell mount each dataset individually.
If the don't automagically mount, check the mountpoint and canmount settings of the pools, and if necessary create the required directories to mount to?

Ok sounds like a mounting issue

see what

zfs get mountpoint pool/filesystem

returns

don't mess with the system configuration yet.

I have already tried to reboot the system and it did not make the volumes visable or allowed me to import it via the web GUI.

Not sure how to mount each dataset through the shell, if you can tell me how i will try

Give me 2 sec and i will tell you

Edit:
It returns
"cannot open 'pool/filesystem' : dataset does not exist

You'd use Vault as the pool name, and whatever dataset as the file system name

sorry, should have specified that "pool/filesystem" needs to be replaced with your pool and your filesystem.

just try running

zfs mount -a

1 Like

This...

Tried running the command, returned nothing

zfs mount -a only returns output on an error.

now run
zfs mount

to see if your volumes are mounted.

[ignore me, @tkoham had the right command. I originally thought of: after the zfs mount -a didn't throw an error, I'd check with "Df" in case it silently worked but it's redundant now]