Lost pool config

Status
Not open for further replies.

BenHD

Cadet
Joined
Dec 4, 2014
Messages
3
Hi FreeNAS Forum,

I used to run FreeNAS on a HP NL54 with a USB Stick and two 4TB SATA Drives for around 6 months. Everything worked like charm until the USB Stick failed.

So I go myself a SSD for the OS and reinstalled FreeNAS 9.2.1.9 hoping to find a easy way to recover RAID1 on the two SATA drives.
Code:
[root@freenas] ~# zpool create storage /dev/ada0p2
invalid vdev specification
use '-f' to override the following errors:
/dev/ada0p2 is part of potentially active pool 'main'

So it seems that I used to have a pool called "main".

Here is a list of
Code:
camcontrol devlist
<WDC WD40EZRX-00SPEB0 80.00A80>    at scbus0 target 0 lun 0 (pass0,ada0)
<WDC WD40EZRX-00SPEB0 80.00A80>    at scbus1 target 0 lun 0 (pass1,ada1)
<INTEL SSDSA2CT040G3 4PC10362>     at scbus4 target 1 lun 0 (pass2,ada2)

Code:
[root@freenas] /# gpart show
=>        34  7814037101  ada0  GPT  (3.7T)
          34          94        - free -  (47k)
         128     4194304     1  freebsd-swap  (2.0G)
     4194432  7809842696     2  freebsd-zfs  (3.7T)
  7814037128           7        - free -  (3.5k)

=>        34  7814037101  ada1  GPT  (3.7T)
          34          94        - free -  (47k)
         128     4194304     1  freebsd-swap  (2.0G)
     4194432  7809842696     2  freebsd-zfs  (3.7T)
  7814037128           7        - free -  (3.5k)

=>      63  78165297  ada2  MBR  (37G)
        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  74260368        - free -  (35G)

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

Code:
[root@freenas] /# glabel status
                                      Name  Status  Components
gptid/7ecb901a-e691-11e3-88d1-9cb654045407     N/A  ada1p2
                             ufs/FreeNASs3     N/A  ada2s3
                             ufs/FreeNASs4     N/A  ada2s4
                            ufs/FreeNASs1a     N/A  ada2s1a
gptid/7dc3ac3e-e691-11e3-88d1-9cb654045407     N/A  ada0p2


How do I move forward from here? Is there a easy way to reassamble the RAID without loosing data? If not is there a way to mount the data so that I can backup to another NAS/USB Drive?

Thanks a lot,
Ben
 
Last edited:

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,455
Restore your config file and do an auto-import from the GUI, and you should be set. If not, do zpool import and zpool status from the CLI, and post the results.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
And don't go trying to create pools from the CLI! That's how you lose pools later!
 

BenHD

Cadet
Joined
Dec 4, 2014
Messages
3
Hi,

thanks for you help.
Unfortunately I never bothered to to save the config file.

Here is the output
Code:
[root@avalon] ~# zpool import
   pool: main
     id: 8248162094320889574
  state: ONLINE
 action: The pool can be imported using its name or numeric identifier.
 config:

    main                                            ONLINE
     mirror-0                                      ONLINE
       gptid/7dc3ac3e-e691-11e3-88d1-9cb654045407  ONLINE
       gptid/7ecb901a-e691-11e3-88d1-9cb654045407  ONLINE
[root@avalon] ~# zpool status
no pools available


So I tried to import the pool with "zpool import main". That's still running for 20 Minutes.
Is there anything I can do besides wait on "zpool import main" to return?

Thanks,
Ben
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Yes.. you can not use the zpool import main command because the manual *never* tells you to do that. You should be using the WebGUI.
 
Status
Not open for further replies.
Top