Lost boot device, after new install, zfs pool gone

Status
Not open for further replies.

AndrewS

Cadet
Joined
Jan 6, 2016
Messages
3
I have the exact problem described here:
https://forums.freebsd.org/threads/need-help-to-recover-data-from-damaged-zfs-pool.49782/

Basically, I had my boot device fail, sadly it died during an upgrade to the latest stable update. I shut the machine off until I could secure a new boot device.

Once I got the new boot device, I did a fresh install of 9.3 (FreeNAS-9.3-STABLE-201512121950) and now it cannot see my old pool.

zdb -lll /dev/<disk> return this on all the disks and all the partitions on the disks:

Code:
[root@cloud] ~# zdb -lll /dev/ada0p2
--------------------------------------------
LABEL 0
--------------------------------------------
failed to unpack label 0
--------------------------------------------
LABEL 1
--------------------------------------------
failed to unpack label 1
--------------------------------------------
LABEL 2
--------------------------------------------
failed to unpack label 2
--------------------------------------------
LABEL 3
--------------------------------------------
failed to unpack label 3
[root@cloud] ~#



My partitions appear to be intact:
Code:
[root@cloud ~]# for i in 0 1 2 3;do gpart show /dev/ada$i;done
=>        34  1953525101  ada0  GPT  (931G)
          34          94        - free -  (47k)
         128     4194304     1  freebsd-swap  (2.0G)
     4194432  1949330703     2  freebsd-zfs  (929G)

=>        34  1953525101  ada1  GPT  (931G)
          34          94        - free -  (47k)
         128     4194304     1  freebsd-swap  (2.0G)
     4194432  1949330703     2  freebsd-zfs  (929G)

=>        34  1953525101  ada2  GPT  (931G)
          34          94        - free -  (47k)
         128     4194304     1  freebsd-swap  (2.0G)
     4194432  1949330696     2  freebsd-zfs  (929G)
  1953525128           7        - free -  (3.5k)

=>        34  1953525101  ada3  GPT  (931G)
          34          94        - free -  (47k)
         128     4194304     1  freebsd-swap  (2.0G)
     4194432  1949330703     2  freebsd-zfs  (929G)

[root@cloud ~]#


But a zpool import does nothing. zpool import with -D and -d options also does nothing.

Code:
[root@cloud] ~# zpool status
  pool: freenas-boot
 state: ONLINE
  scan: none requested
config:

        NAME                                          STATE     READ WRITE CKSUM
        freenas-boot                                  ONLINE       0     0     0
          gptid/45e4ca81-b4eb-11e5-8acb-d050997344a8  ONLINE       0     0     0

errors: No known data errors
[root@cloud] ~# zpool import -D
[root@cloud] ~# zpool status
  pool: freenas-boot
 state: ONLINE
  scan: none requested
config:

        NAME                                          STATE     READ WRITE CKSUM
        freenas-boot                                  ONLINE       0     0     0
          gptid/45e4ca81-b4eb-11e5-8acb-d050997344a8  ONLINE       0     0     0

errors: No known data errors
[root@cloud] ~#



My data drives are in good condition. The data is still on there. There has to be a way to recover this. Somehow. Is there a way to force ZFS to scan the whole drive and rebuild any metadata it needs?

The Data disks were in the system during the re-install. I've not attempted any operations that should have written to them, though.

Help!
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Can you post a debug file on your system? System -> Advanced -> Save Debug.
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Not helping you with your problem but you should start running smart tests for ada2. You seem to be missing that drive when testing. How are your drives attached to the motherboard? Just the normal sata ports?
 

AndrewS

Cadet
Joined
Jan 6, 2016
Messages
3
I'm only missing that drive because FreeNAS decided not to check it. Along with everything else it decided not to do, like run properly.

This thread is now redundant. I gave up and blew it all away. No more ZFS. No more FreeNAS. Too much trouble. Not reliable. Searching these forums pulled up dozens of people that simply had their stuff vanish.
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
I'm only missing that drive because FreeNAS decided not to check it. Along with everything else it decided not to do, like run properly.

This thread is now redundant. I gave up and blew it all away. No more ZFS. No more FreeNAS. Too much trouble. Not reliable. Searching these forums pulled up dozens of people that simply had their stuff vanish.
In sorry to hear that but for smart tests that is something you have to set up with the GUI. Freenas doesn't do that for you, if you want stuff done for you will have to pay for that.

For further information on how to do things you can read the docs.

http://doc.freenas.org/9.3/
 
Status
Not open for further replies.
Top