Lost Pools After USB Reinstallion

Status
Not open for further replies.

robotmonkeys

Dabbler
Joined
Nov 9, 2013
Messages
13
So something happened and my FreeNAS box locked up and I did a hard reset after I couldn't connect to it. After that happened, the has got in a horrible state where the FreeBSD boot prompt just sat there outputting a stream of #s and doing nothing. (I could not find any documentation about what that means, and google just gave me more forum posts were people were asking the same question.) Without any better ideas, I decided to install the USB boot drive.

That fixed the boot problem, but of course it lost my configuration information. I didn't think this would be much of a problem since I could just reimport my pool. Unfortunately I can't seem to figure out how to do this. The webui throws up warnings about how I'm about wipe the disks. (I don't want to do that. I assume the data on them is fine.)

Using the root prompt from the webui, `zpool status` just says 'no pools available' and `zpool import -FX MyPool` says 'no such pool available'

Just to be clear. If I use Auto Import from the gui, the drop down is empty (probably because of the 'no pools available' message above). If I go to manually import the the volumes, I see the partitions, but i can't bring them in as ZFS.

Am I screwed? I don't think I should be.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
You shouldn't be.

First, go get a beer and relax! Your data is safe unless you installed over your pool drive or something else is VERY wrong.

Second, does your GUI show any disks if you go to the View Disks window? If it does, does it show the number of disks that you expect to be in the system?

Post your system specs and freenas version. :)
 

robotmonkeys

Dabbler
Joined
Nov 9, 2013
Messages
13
It does show all four disks ada0 through ada3.

MB: Asus H871-plus
FreeNas 9.1.1
Is there anything specific you're looking in the system specs? I really think this is just that I'm not using the software correctly.

The four drives were raided 1-0, but I have to admit that I don't remember what was paired with what. It was just the default that the gui picked out. I'm pretty sure not remembering the layout will screw me over, if the raid tries to rebuild.

The irony of course is that this all got screwed up during the first backup. :( Luckily, must of the data could be reassembled if necessary.
 

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630
naughty naughty naughty....not ECC RAM. :)

Anyway, I agree with CJ, the odds are good that unless you suffered a non-ECC-related catastrophe, you should be OK.
 

robotmonkeys

Dabbler
Joined
Nov 9, 2013
Messages
13
I'm still confused on how I'm supposed to proceed, since the most obvious approach says it will destroy the data. How am I supposed to create a pool without having it reinitialize all the disks in the pool. There should be a way to do it, but I'm not familiar with how to do it, and how to do it in a way that informs the gui.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Sorry I didn't respond back. Somehow I missed your reply posts. So far so good.

So you will need to follow the FreeNAS manual for importing a zpool(assuming you had a zpool). doc.freenas.org is the manual.

Can you post the output of zpool import and zpool status?
 

robotmonkeys

Dabbler
Joined
Nov 9, 2013
Messages
13
Sorry I didn't respond back. Somehow I missed your reply posts. So far so good.

So you will need to follow the FreeNAS manual for importing a zpool(assuming you had a zpool). doc.freenas.org is the manual.

Can you post the output of zpool import and zpool status?


Well that's kind of a problem.

`zpool import` prints nothing, and as I said above, `zpool status` says no pools found.
 

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630
robotmonkeys, you're making it very hard to help you.

Cyberjock wants to issue the command "zpool import" and "zpool status" on your command-line interface, and tell us what it says back to you.
 

robotmonkeys

Dabbler
Joined
Nov 9, 2013
Messages
13
robotmonkeys, you're making it very hard to help you.

Cyberjock wants to issue the command "zpool import" and "zpool status" on your command-line interface, and tell us what it says back to you.

Ysu0vqw

I did. Twice. http://imgur.com/Ysu0vqw
 

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630
weird, the line where you said it did nothing was not present when I viewed this thread before...

Sorry.

Well I assume CJ has some ideas...
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Umm... something is VERY wrong.

Post the output of:

camcontrol devlist
gpart status
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Are you running in a VM? Post your hardware specs too please.
 

robotmonkeys

Dabbler
Joined
Nov 9, 2013
Messages
13
1) This is not in a VM.

2) The hardware specs are in post 3 (after which DrKK flames me for not having ECC ram) Again, if there's something specific hardware-wise you want to know about, I'll post more but I think the MB info should be enough.

3) Here are the outputs of the commands

Code:
[root@freenas ~]# camcontrol devlist                                           
<ST3000DM001-1CH166 CC24>          at scbus0 target 0 lun 0 (ada0,pass0)       
<ST3000DM001-1CH166 CC24>          at scbus1 target 0 lun 0 (ada1,pass1)       
<ST3000DM001-1CH166 CC24>          at scbus2 target 0 lun 0 (ada2,pass2)       
<ST3000DM001-1CH166 CC24>          at scbus3 target 0 lun 0 (ada3,pass3)       
< USB DISK 2.0 PMAP>              at scbus4 target 0 lun 0 (pass4,da0)       
[root@freenas ~]# gpart status                                                 
  Name  Status  Components                                                     
ada0p1      OK  ada0                                                           
ada0p2      OK  ada0                                                           
ada1p1      OK  ada1                                                           
ada1p2      OK  ada1                                                           
ada2p1      OK  ada2                                                           
ada2p2      OK  ada2                                                           
ada3p1      OK  ada3                                                           
ada3p2      OK  ada3                                                           
da0s1      OK  da0                                                           
da0s2      OK  da0                                                           
da0s3      OK  da0                                                           
da0s4      OK  da0                                                           
da0s1a      OK  da0s1          


This is the correct number of HDDs, and the partitions don't look wrong. Each one is a 2GB swap, followed by a 2.7TB zfs partition
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
How much RAM do you have installed? Are you using the x86 or x64 version(please check.. some people install the wrong version and don't realize it).
 

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630
Sir, your threshold for considering yourself "flamed" seems quite low. :)
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Post the output of gpart list too.

Something fishy is going on here. Normally if zpool import doesn't work that means you are in SERIOUS trouble. Normally this would also be a time to see you have no disk partitions. But since your disk partitions are there and look healthy, it's a little confusing.
 

robotmonkeys

Dabbler
Joined
Nov 9, 2013
Messages
13
Post the output of gpart list too.

Something fishy is going on here. Normally if zpool import doesn't work that means you are in SERIOUS trouble. Normally this would also be a time to see you have no disk partitions. But since your disk partitions are there and look healthy, it's a little confusing.


It is very odd. That's why I'm here.

It's running FreeNAS-9.1.1-RELEASE-x64 (a752d35)

16GB ram
Code:
Geom name: ada0                                                               
modified: false                                                               
state: OK                                                                     
fwheads: 16                                                                   
fwsectors: 63                                                                 
last: 5860533134                                                               
first: 34                                                                     
entries: 128                                                                   
scheme: GPT                                                                   
Providers:                                                                     
1. Name: ada0p1                                                               
  Mediasize: 2147483648 (2.0G)                                               
  Sectorsize: 512                                                             
  Stripesize: 4096                                                           
  Stripeoffset: 0                                                             
  Mode: r1w1e1                                                               
  rawuuid: f65fb0dd-49b2-11e3-a673-ac220b4dc13d                               
  rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b                               
  label: (null)                                                               
  length: 2147483648                                                         
  offset: 65536                                                               
  type: freebsd-swap                                                         
  index: 1                                                                   
  end: 4194431                     
  start: 128                                                                 
2. Name: ada0p2                                                               
  Mediasize: 2998445412352 (2.7T)                                             
  Sectorsize: 512                                                             
  Stripesize: 4096                                                           
  Stripeoffset: 0                                                             
  Mode: r0w0e0                                                               
  rawuuid: f678441a-49b2-11e3-a673-ac220b4dc13d                               
  rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b                               
  label: (null)                                                               
  length: 2998445412352                                                       
  offset: 2147549184                                                         
  type: freebsd-zfs                                                           
  index: 2                                                                   
  end: 5860533127                                                             
  start: 4194432                                                             
Consumers:                                                                     
1. Name: ada0                                                                 
  Mediasize: 3000592982016 (2.7T)                                             
  Sectorsize: 512                                                             
  Stripesize: 4096                                                           
  Stripeoffset: 0                                                             
  Mode: r1w1e2                               
Geom name: ada1                                                               
modified: false                                                               
state: OK                                                                     
fwheads: 16                                                                   
fwsectors: 63                                                                 
last: 5860533134                                                               
first: 34                                                                     
entries: 128                                                                   
scheme: GPT                                                                   
Providers:                                                                     
1. Name: ada1p1                                                               
  Mediasize: 2147483648 (2.0G)                                               
  Sectorsize: 512                                                             
  Stripesize: 4096                                                           
  Stripeoffset: 0                                                             
  Mode: r1w1e1                                                               
  rawuuid: fb00bdbf-49b2-11e3-a673-ac220b4dc13d                               
  rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b                               
  label: (null)                                                               
  length: 2147483648                                                         
  offset: 65536                                                               
  type: freebsd-swap                                                         
  index: 1                                                                   
  end: 4194431                         
  start: 128                                                                 
2. Name: ada1p2                                                               
  Mediasize: 2998445412352 (2.7T)                                             
  Sectorsize: 512                                                             
  Stripesize: 4096                                                           
  Stripeoffset: 0                                                             
  Mode: r0w0e0                                                               
  rawuuid: fb19f90e-49b2-11e3-a673-ac220b4dc13d                               
  rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b                               
  label: (null)                                                               
  length: 2998445412352                                                       
  offset: 2147549184                                                         
  type: freebsd-zfs                                                           
  index: 2                                                                   
  end: 5860533127                                                             
  start: 4194432                                                             
Consumers:                                                                     
1. Name: ada1                                                                 
  Mediasize: 3000592982016 (2.7T)                                             
  Sectorsize: 512                                                             
  Stripesize: 4096                                                           
  Stripeoffset: 0                                                             
  Mode: r1w1e2                                 
Geom name: ada2                                                               
modified: false                                                               
state: OK                                                                     
fwheads: 16                                                                   
fwsectors: 63                                                                 
last: 5860533134                                                               
first: 34                                                                     
entries: 128                                                                   
scheme: GPT                                                                   
Providers:                                                                     
1. Name: ada2p1                                                               
  Mediasize: 2147483648 (2.0G)                                               
  Sectorsize: 512                                                             
  Stripesize: 4096                                                           
  Stripeoffset: 0                                                             
  Mode: r1w1e1                                                               
  rawuuid: ffcc9abf-49b2-11e3-a673-ac220b4dc13d                               
  rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b                               
  label: (null)                                                               
  length: 2147483648                                                         
  offset: 65536                                                               
  type: freebsd-swap                                                         
  index: 1                                                                   
  end: 4194431                       
  start: 128                                                                 
2. Name: ada2p2                                                               
  Mediasize: 2998445412352 (2.7T)                                             
  Sectorsize: 512                                                             
  Stripesize: 4096                                                           
  Stripeoffset: 0                                                             
  Mode: r0w0e0                                                               
  rawuuid: ffe52834-49b2-11e3-a673-ac220b4dc13d                               
  rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b                               
  label: (null)                                                               
  length: 2998445412352                                                       
  offset: 2147549184                                                         
  type: freebsd-zfs                                                           
  index: 2                                                                   
  end: 5860533127                                                             
  start: 4194432                                                             
Consumers:                                                                     
1. Name: ada2                                                                 
  Mediasize: 3000592982016 (2.7T)                                             
  Sectorsize: 512                                                             
  Stripesize: 4096                                                           
  Stripeoffset: 0                                                             
  Mode: r1w1e2               
Geom name: ada3                                                               
modified: false                                                               
state: OK                                                                     
fwheads: 16                                                                   
fwsectors: 63                                                                 
last: 5860533134                                                               
first: 34                                                                     
entries: 128                                                                   
scheme: GPT                                                                   
Providers:                                                                     
1. Name: ada3p1                                                               
  Mediasize: 2147483648 (2.0G)                                               
  Sectorsize: 512                                                             
  Stripesize: 4096                                                           
  Stripeoffset: 0                                                             
  Mode: r1w1e1                                                               
  rawuuid: 04781754-49b3-11e3-a673-ac220b4dc13d                               
  rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b                               
  label: (null)                                                               
  length: 2147483648                                                         
  offset: 65536                                                               
  type: freebsd-swap                                                         
  index: 1                                                                   
  end: 4194431                 
  start: 128                                                                 
2. Name: ada3p2                                                               
  Mediasize: 2998445412352 (2.7T)                                             
  Sectorsize: 512                                                             
  Stripesize: 4096                                                           
  Stripeoffset: 0                                                             
  Mode: r0w0e0                                                               
  rawuuid: 04910c09-49b3-11e3-a673-ac220b4dc13d                               
  rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b                               
  label: (null)                                                               
  length: 2998445412352                                                       
  offset: 2147549184                                                         
  type: freebsd-zfs                                                           
  index: 2                                                                   
  end: 5860533127                                                             
  start: 4194432                                                             
Consumers:                                                                     
1. Name: ada3                                                                 
  Mediasize: 3000592982016 (2.7T)                                             
  Sectorsize: 512                                                             
  Stripesize: 4096                                                           
  Stripeoffset: 0                                                             
  Mode: r1w1e2                     
Geom name: da0                                                                 
modified: false                                                               
state: OK                                                                     
fwheads: 255                                                                   
fwsectors: 63                                                                 
last: 15248831                                                                 
first: 63                                                                     
entries: 4                                                                     
scheme: MBR                                                                   
Providers:                                                                     
1. Name: da0s1                                                                 
  Mediasize: 988291584 (942M)                                                 
  Sectorsize: 512                                                             
  Stripesize: 0                                                               
  Stripeoffset: 32256                                                         
  Mode: r1w0e1                                                               
  attrib: active                                                             
  rawtype: 165                                                               
  length: 988291584                                                           
  offset: 32256                                                               
  type: freebsd                                                               
  index: 1                                                                   
  end: 1930319                                                               
  start: 63 
2. Name: da0s2                                                                 
  Mediasize: 988291584 (942M)                                                 
  Sectorsize: 512                                                             
  Stripesize: 0                                                               
  Stripeoffset: 988356096                                                     
  Mode: r0w0e0                                                               
  rawtype: 165                                                               
  length: 988291584                                                           
  offset: 988356096                                                           
  type: freebsd                                                               
  index: 2                                                                   
  end: 3860639                                                               
  start: 1930383                                                             
3. Name: da0s3                                                                 
  Mediasize: 1548288 (1.5M)                                                   
  Sectorsize: 512                                                             
  Stripesize: 0                                                               
  Stripeoffset: 1976647680                                                   
  Mode: r0w0e0                                                               
  rawtype: 165                                                               
  length: 1548288                                                             
  offset: 1976647680                                                         
  type: freebsd                                                               
  index: 3                         
  end: 3863663                                                               
  start: 3860640                                                             
4. Name: da0s4                                                                 
  Mediasize: 21159936 (20M)                                                   
  Sectorsize: 512                                                             
  Stripesize: 0                                                               
  Stripeoffset: 1978195968                                                   
  Mode: r1w1e2                                                               
  rawtype: 165                                                               
  length: 21159936                                                           
  offset: 1978195968                                                         
  type: freebsd                                                               
  index: 4                                                                   
  end: 3904991                                                               
  start: 3863664                                                             
Consumers:                                                                     
1. Name: da0                                                                   
  Mediasize: 7807401984 (7.3G)                                               
  Sectorsize: 512                                                             
  Mode: r2w1e4                                                               
                                                                               
Geom name: da0s1                                                               
modified: false                                                               
state: OK                 
fwheads: 255                                                                   
fwsectors: 63                                                                 
last: 1930256                                                                 
first: 0                                                                       
entries: 8                                                                     
scheme: BSD                                                                   
Providers:                                                                     
1. Name: da0s1a                                                               
  Mediasize: 988283392 (942M)                                                 
  Sectorsize: 512                                                             
  Stripesize: 0                                                               
  Stripeoffset: 40448                                                         
  Mode: r1w0e1                                                               
  rawtype: 0                                                                 
  length: 988283392                                                           
  offset: 8192                                                               
  type: !0                                                                   
  index: 1                                                                   
  end: 1930256                                                               
  start: 16                                                                   
Consumers:                                                                     
1. Name: da0s1                                                                 
  Mediasize: 988291584 (942M)                                                 
  Sectorsize: 512                 
entries: 8                                                                     
scheme: BSD                                                                   
Providers:                                                                     
1. Name: da0s1a                                                               
  Mediasize: 988283392 (942M)                                                 
  Sectorsize: 512                                                             
  Stripesize: 0                                                               
  Stripeoffset: 40448                                                         
  Mode: r1w0e1                                                               
  rawtype: 0                                                                 
  length: 988283392                                                           
  offset: 8192                                                               
  type: !0                                                                   
  index: 1                                                                   
  end: 1930256                                                               
  start: 16                                                                   
Consumers:                                                                     
1. Name: da0s1                                                                 
  Mediasize: 988291584 (942M)                                                 
  Sectorsize: 512                                                             
  Stripesize: 0                                                               
  Stripeoffset: 32256                                                         
  Mode: r1w0e1                                                               
                              
 

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630
OK, well, "flamed", in a forum setting, implies the use of considerable vitriol and effort in deconstructing your intelligence and value as a human being. I was merely clicking my tongue. Doesn't even rise to the level of "chastise" much less "flame". But OK. :)
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Try these commands...

sysctl vfs.zfs.vdev.larger_ashift_disable=1
zpool import -D -R /mnt yourpoolname

If that doesn't import do:

zpool import
zpool export yourpoolname

Edit: zpool import -D -R /mnt yourpoolname might throw an error, then you'll have to add -f
 
Status
Not open for further replies.
Top