Return to Level1Techs.com

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

freenas
#1

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

0 Likes

#2

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

0 Likes

#3

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

0 Likes

#4

Try

zpool status Vault

and paste the output here.

0 Likes

#5

Here is an image if the output

0 Likes

#6

is the volume encrypted?

are you using the same version of freenas?

0 Likes

#7

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

0 Likes

#8

second question is more important

0 Likes

#9

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

0 Likes

#10

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?

0 Likes

#11

Ok sounds like a mounting issue

see what

zfs get mountpoint pool/filesystem

returns

don't mess with the system configuration yet.

0 Likes

#12

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

0 Likes

#13

Give me 2 sec and i will tell you

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

0 Likes

#14

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

0 Likes

#15

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

#16

This...

0 Likes

#17

Tried running the command, returned nothing

0 Likes

#18

zfs mount -a only returns output on an error.

now run
zfs mount

to see if your volumes are mounted.

0 Likes

#19

0 Likes

#20

[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]

0 Likes