Importing existing zpool

Status
Not open for further replies.

hatzman29

Cadet
Joined
Jun 5, 2013
Messages
6
Hi all,

Hoping for a bit of help, not sure how to go forward.

nas4Free version - 9.1.0.1.724
nas4Free installation type - installed onto USB (embedded)
zpool version - v28
other details - no zil or l2arc

I boot up the server and boot into nas4free.
Running zpool import I can see my zpool, and all is fine (except the "The pool was last accessed by another system" but that is ok).

Code:
[root@nas4free ~]# zpool import
   pool: media
     id: 4245609015872555187
  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://illumos.org/msg/ZFS-8000-EY
 config:

        media       ONLINE
          raidz1-0  ONLINE
            ada1    ONLINE
            ada2    ONLINE
            ada3    ONLINE
            ada0    ONLINE


Running zpool import -f media successfully imports my zpool, which is great.

The problems/lack of understanding I am having are,
1) If I now go into the Web GUI and go into Disks->Management or ZFS, it doesnt see the disks or the pool. Under Management there is an option to import disks or import software raid disks. Should I be using these, perhaps instead of importing via command line,
2) After doing the zpool import -f media, if I reboot the server the zpool is no longer imported, and i have to run the zpool import command again. Is this expected? I never experienced this in the old FreeNas. I assume that there needs to be some sort of "export on shutdown" and "reimport on startup" added somewhere, but Im not quite sure.

For completeness, other information that might be needed,
camcontrol devlist
Code:
[root@nas4free ~]# camcontrol devlist
<_NEC DVD_RW ND-3520A 1.04>        at scbus1 target 0 lun 0 (pass0,cd0)
<WDC WD20EADS-00R6B0 01.00A01>     at scbus2 target 0 lun 0 (ada0,pass1)
<WDC WD20EARX-00PASB0 51.0AB51>    at scbus3 target 0 lun 0 (ada1,pass2)
<WDC WD20EARX-00PASB0 51.0AB51>    at scbus4 target 0 lun 0 (ada2,pass3)
<WDC WD20EARX-00PASB0 51.0AB51>    at scbus5 target 0 lun 0 (ada3,pass4)
<Generic Flash Disk 8.07>          at scbus7 target 0 lun 0 (pass5,da0)


gpart show
Code:
[root@nas4free ~]# gpart show
=>       0  16384000  da0  BSD  (7.8G)
         0    225792    1  freebsd-ufs  (110M)
    225792  16158208       - free -  (7.7G)

=>        34  3907029101  ada0  GPT  (1.8T) [CORRUPT]
          34      262144     1  ms-reserved  (128M)
      262178        2014        - free -  (1M)
      264192  3906764800     2  linux-data  (1.8T)
  3907028992         143        - free -  (71k)



glabel status
Code:
[root@nas4free ~]# glabel status
                                      Name  Status  Components
          gpt/Microsoft reserved partition     N/A  ada0p1
gptid/6cf9e064-52dc-4d9d-b537-9d080d59369c     N/A  ada0p1
                  gpt/Basic data partition     N/A  ada0p2
gptid/c28ec39d-8789-452e-9355-8b67f86dd5fd     N/A  ada0p2
                    ufsid/519bf0c2b243fb0d     N/A  da0a


I appreciate any help :D

Thanks!
 

hatzman29

Cadet
Joined
Jun 5, 2013
Messages
6
I gave it a try and got it working.

In the disk management area of the web gui I had to add all the disks. Then I had to create a virtual device with the disks. Both steps as if I were creating a new pool.
Then I did zpool import media at the command line, and the pool showed up in the list :)

I was a tad worried I was going to wipe the disks, but all good.

Hope that helps anyone out one day.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
This isn't the NAS4Free forums.. not sure why you posted here but you should be posting in the NAS4Free forums.
 
Status
Not open for further replies.
Top