Auto Import Volume not Working

Status
Not open for further replies.

Bob Cooper

Dabbler
Joined
May 29, 2012
Messages
12
Hi, I'm a bit of a noob with freenas but here goes:

I had an error with a mirrored zfs drive on one freenas server that was preventing the server from starting up so I removed the offending drives (2 x 4tb drives).

I'm now trying to auto import the failed drives into a new freenas server running 8.0.4 but I get the following error message:

Error: [MiddlewareError: The volume "Theatre1_4TB" failed to import, for further details check pool status]

So my question is, how do I check the pool status?

Thanks,

Bob
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
Go to the shell from the web GUI, or ssh into the server, and type "zpool status" (without the quotes). For good measure, do "zpool import" as well. Paste that output here.
 

Bob Cooper

Dabbler
Joined
May 29, 2012
Messages
12
I can't find a shell option in the web GUI (see screenshot) do i need to enable this option somehow?

Screen Shot 2014-11-20 at 12.32.57.png
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
Sorry, I missed in your OP that you're running an ancient version of FreeNAS. In that case, you'll have to ssh in. Make sure the ssh service is enabled.
 

Bob Cooper

Dabbler
Joined
May 29, 2012
Messages
12
Yeah, I really need to upgrade it but don't feel confident enough to try that yet! I've enabled ssh in the services section, does this mean I can enter commands from the terminal on my mac or do I need to configure things more?

Sorry if these are basic questions, I really want to learn freenas more but am finding the learning curve rather steep!

Thanks,
Bob
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
So, with ssh enabled, and "allow password login" and "login as root with password" checked (use the wrench icon to the right of the switch for the ssh service), you'd then fire up the terminal on your mac and do

$ ssh root@ip.of.your.server
Enter your root password, and you'll be logged in to the freenas server. Then you can run the zpool status and zpool import commands and see where you are.
 

Bob Cooper

Dabbler
Joined
May 29, 2012
Messages
12
Great, thanks for that. So here is the results:

DanceNAS1# zpool status

pool: Dance1

state: ONLINE

scrub: none requested

config:



NAME STATE READ WRITE CKSUM

Dance1 ONLINE 0 0 0

mirror ONLINE 0 0 0

ada8p2 ONLINE 0 0 0

ada11p2 ONLINE 0 0 0



errors: No known data errors



pool: Dance2

state: ONLINE

status: One or more devices has experienced an error resulting in data

corruption. Applications may be affected.

action: Restore the file in question if possible. Otherwise restore the

entire pool from backup.

see: http://www.sun.com/msg/ZFS-8000-8A

scrub: none requested

config:



NAME STATE READ WRITE CKSUM

Dance2 ONLINE 0 0 0

mirror ONLINE 0 0 0

ada16p2 ONLINE 0 0 0

ada12p2 ONLINE 0 0 0



errors: 1 data errors, use '-v' for a list



pool: Opera1

state: ONLINE

scrub: none requested

config:



NAME STATE READ WRITE CKSUM

Opera1 ONLINE 0 0 0

mirror ONLINE 0 0 0

ada9p2 ONLINE 0 0 0

ada10p2 ONLINE 0 0 0



errors: No known data errors



pool: Opera2

state: ONLINE

scrub: none requested

config:



NAME STATE READ WRITE CKSUM

Opera2 ONLINE 0 0 0

mirror ONLINE 0 0 0

ada15p2 ONLINE 0 0 0

ada13p2 ONLINE 0 0 0



errors: No known data errors



pool: RBS1_4TB

state: ONLINE

scrub: none requested

config:



NAME STATE READ WRITE CKSUM

RBS1_4TB ONLINE 0 0 0

mirror ONLINE 0 0 0

da3p2 ONLINE 0 0 0

da1p2 ONLINE 0 0 0



errors: No known data errors



pool: RBS3

state: ONLINE

scrub: none requested

config:



NAME STATE READ WRITE CKSUM

RBS3 ONLINE 0 0 0

mirror ONLINE 0 0 0

ada3p2 ONLINE 0 0 0

ada0p2 ONLINE 0 0 0



errors: No known data errors



pool: RoyalBallet1

state: ONLINE

scrub: none requested

config:



NAME STATE READ WRITE CKSUM

RoyalBallet1 ONLINE 0 0 0

mirror ONLINE 0 0 0

da2p2 ONLINE 0 0 0

da0p2 ONLINE 0 0 0



errors: No known data errors



pool: RoyalBallet2

state: ONLINE

scrub: none requested

config:



NAME STATE READ WRITE CKSUM

RoyalBallet2 ONLINE 0 0 0

mirror ONLINE 0 0 0

da6p2 ONLINE 0 0 0

da4p2 ONLINE 0 0 0



errors: No known data errors



pool: RoyalBallet3

state: ONLINE

scrub: none requested

config:



NAME STATE READ WRITE CKSUM

RoyalBallet3 ONLINE 0 0 0

mirror ONLINE 0 0 0

ada1p2 ONLINE 0 0 0

ada2p2 ONLINE 0 0 0



errors: No known data errors



pool: RoyalBallet4

state: ONLINE

scrub: none requested

config:



NAME STATE READ WRITE CKSUM

RoyalBallet4 ONLINE 0 0 0

mirror ONLINE 0 0 0

ada5p2 ONLINE 0 0 0

ada6p2 ONLINE 0 0 0



errors: No known data errors



pool: RoyalBallet5

state: ONLINE

scrub: none requested

config:



NAME STATE READ WRITE CKSUM

RoyalBallet5 ONLINE 0 0 0

mirror ONLINE 0 0 0

ada7p2 ONLINE 0 0 0

ada4p2 ONLINE 0 0 0



errors: No known data errors

DanceNAS1# zpool import

pool: Theatre1_4TB

id: 16512441835988383694

state: ONLINE

status: The pool was last accessed by another system.

action: The pool can be imported using its name or numeric identifier and

the '-f' flag.

see: http://www.sun.com/msg/ZFS-8000-EY

config:



Theatre1_4TB ONLINE

mirror ONLINE

da7p2 ONLINE

da5p2 ONLINE

DanceNAS1#

The one I'm trying to import is Theatre1_4TB

Thanks,

Bob
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
OK, it looks like the pool wasn't properly exported from the last system you used it on (see http://illumos.org/msg/ZFS-8000-EY for the same error text the message is trying to direct you to). Was that also a FreeNAS 8.0.x system? If so, you should be fine to do

# zpool import -f Theatre1_4TB

If that succeeds without errors, then do

# zpool export Theatre1_4TB

and try the auto import again.

ETA: ZFS is really designed to work best with all your storage in a single pool, which you can then carve up into datasets as needed/desired. In this way, you can allocate storage dynamically, rather than being stuck with the disk size available in each volume. What you're doing isn't wrong as such, but it really isn't the way ZFS was designed to be used.
 

Bob Cooper

Dabbler
Joined
May 29, 2012
Messages
12
Yes, I had to remove it from the other system as it was stopping the server from starting up.
I tried # zpool import -f Theatre1_4TB
but get the following error:

cannot import 'Theatre1_4TB': no such pool available

Thanks,

Bob
 

Bob Cooper

Dabbler
Joined
May 29, 2012
Messages
12
Ah, I figured it out, thanks so much for your help, knowing how to run commands feels like a big step to understanding freenas better.

Bob
 

mcolinp

Explorer
Joined
Jan 30, 2013
Messages
84
I as well am dealing with a similar situation. Did you get it working simply because you mistyped a command in earlier attempts; or did you do something else entirely?
 
Status
Not open for further replies.
Top