Pool won't import

Status
Not open for further replies.

Santo

Cadet
Joined
Nov 17, 2014
Messages
4
I have 2 pools, one a mirror (pool2) and the other a USB drive(pool1). I cannot get pool2 to mount, and I don't care about the contents of pool1. I'm unsure of what steps to take next. Output of 'zpool import':

[root@freenas ~]# zpool import
pool: POOL1
id: 7850556196942035608
state: UNAVAIL
status: One or more devices are missing from the system.
action: The pool cannot be imported. Attach the missing
devices and try again.
see: http://illumos.org/msg/ZFS-8000-3C
config:

POOL1 UNAVAIL insufficient replicas
13464720506008450327 UNAVAIL cannot open

pool: POOL2
id: 18428518001454820855
state: UNAVAIL
status: One or more devices are missing from the system.
action: The pool cannot be imported. Attach the missing
devices and try again.
see: http://illumos.org/msg/ZFS-8000-6X
config:

POOL2 UNAVAIL missing device
gptid/93262350-f0c1-11e2-a861-d43d7eb32519 ONLINE
gptid/93aa2a40-f0c1-11e2-a861-d43d7eb32519 ONLINE

Additional devices are known to be part of this pool, though their
exact configuration cannot be determined.​
 

Santo

Cadet
Joined
Nov 17, 2014
Messages
4
POOL2 is a simple 2 drive mirror. It's been a long time, but I think the POOL1 was setup as the cachefile for POOL2?

Would that dependency result in UNAVAIL? I don't really understand what POOL2 needs, or how to find out.
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
How do you think pool2 is set up? Your system thinks it's missing at least one device.
If I'm not mistaken, those disks are striped, too.
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
POOL2 is a simple 2 drive mirror. It's been a long time, but I think the POOL1 was setup as the cachefile for POOL2?

Would that dependency result in UNAVAIL? I don't really understand what POOL2 needs, or how to find out.

Such a setup is impossible. You clearly have no idea what you've done and I only have an inkling. I recommend you read Cyberjock's guide before proceeding, so that we're all on the same page.
 

rs225

Guru
Joined
Jun 28, 2014
Messages
878
Maybe you mean a log device, rather than a cache device? You can try zpool import -m pool2
 

Santo

Cadet
Joined
Nov 17, 2014
Messages
4
Yes all statements are true; I am far from an expert. I've read Cyberjock's guide, and spent much time reviewing the forum here. Neither of these things have informed me on what step I should take next. I still don't understand what device is unvail to POOL2 when they are both listed as 'online'. Could one of the drives be failing in some other way? I will replace both of them if it might mean I get the data off the volume.

@rs225 That might have been the case, but I attempted the command with the following result:
cannot import 'POOL2': one or more devices is currently unavailable​

Here is more information:
[root@freenas ~]# camcontrol devlist
<ST2000DM001-1CH164 CC26> at scbus1 target 0 lun 0 (ada0,pass0)
<ST2000DM001-1CH164 CC43> at scbus2 target 0 lun 0 (ada1,pass1)
<Generic USB SD Reader 1.00> at scbus7 target 0 lun 0 (da0,pass2)
<SanDisk U3 Titanium 3.27> at scbus8 target 0 lun 0 (da1,pass3)

[root@freenas ~]# gpart show
=> 34 3907029101 ada0 GPT (1.8T)
34 94 - free - (47k)
128 4194304 1 freebsd-swap (2.0G)
4194432 3902834696 2 freebsd-zfs (1.8T)
3907029128 7 - free - (3.5k)

=> 34 3907029101 ada1 GPT (1.8T)
34 94 - free - (47k)
128 4194304 1 freebsd-swap (2.0G)
4194432 3902834696 2 freebsd-zfs (1.8T)
3907029128 7 - free - (3.5k)

=> 63 15949761 da0 MBR (7.6G)
63 1930257 1 freebsd [active] (942M)
1930320 63 - free - (31k)
1930383 1930257 2 freebsd (942M)
3860640 3024 3 freebsd (1.5M)
3863664 41328 4 freebsd (20M)
3904992 12044832 - free - (5.8G)

=> 34 8027723 da1 GPT (3.8G)
34 94 - free - (47k)
128 4194304 1 freebsd-swap (2.0G)
4194432 3833325 2 freebsd-ufs (1.8G)

=> 0 1930257 da0s1 BSD (942M)
0 16 - free - (8.0k)
16 1930241 1 !0 (942M)

=> 0 1930257 da0s2 BSD (942M)
0 16 - free - (8.0k)
16 1930241 1 !0 (942M)
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
A pool will not be a device in another pool. Your USB drive may, at one time, have been a device in pool2 (and if that's the case, and you've since created pool1 on it, you're probably hosed), but pool1, as such, never was. I agree with @Ericloewe that pool2 appears to be striped, not mirrored, but the fact that your system doesn't seem to know what other devices are needed is puzzling.
 

Santo

Cadet
Joined
Nov 17, 2014
Messages
4
Thanks for the feedback. It is very much appreciated. What evince do you see that POOL2 was striped? Is there no command that I can run to interrogate what zpool expecting?

I wish I had more history on what was on USB POOL1. I think I just created as a convenient backup for freenas configs.

I'm going out now to buy new drives now, and then I will image them. I'm determined to get the data back. So any risky commands are welcome as well.
 

solarisguy

Guru
Joined
Apr 4, 2014
Messages
1,125
Let's go back in time...

Why suddenly your pool(s) need to be imported? What did you do ?

Did you keep intact the previous USB memory device, you had used when everything was running OK ?

Did you save your previous=working configuration to somewhere, so it can be read (using a database reader)?
 

solarisguy

Guru
Joined
Apr 4, 2014
Messages
1,125
[...] think I just created as a convenient backup for freenas configs. [...]
What did you exactly do?
[...] I'm going out now to buy new drives now, and then I will image them. I'm determined to get the data back. So any risky commands are welcome as well.
You may buy new hard drives, but that does not bring you any closer to the recovery and possibly introducing new hardware to your system makes it more difficult to recover.

Which part of the documentation did you follow, when creating the original pool(s) ?
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Two things:

You are missing at least one device. That's obvious from the message.

You are also running in a stripe, which is also obvious from the "zpool status".

Your options are pretty limited. The fact that you don't even know what your config is kind of tells me that doing recovery is far beyond your level of expertise.

At this point I'd say you have two options; destroy the pool and rebuild from backups (assuming you have any) or pay someone to look at your server more closely. But, I will tell you that if you can't find the missing device you can kiss the pool goodbye. Striping was a very bad idea, whether you made that choice on purpose or not.
 
Status
Not open for further replies.
Top