TrueNAS zfs import to 6.12.8 with zfs on partition 2


Go to solution Solved by JorgeB,

Recommended Posts

Hi!

 

I've been doing a ton of reading over the past few days and was able to import my TrueNAS created zfs pool on 6.12.8 just fine via the command line.  All of my data is viewable from command line under /naspool ... but unfortunately I'm a "zfs on partition 2" guy and I haven't had the nerve yet to go and edit my partition tables with fdisk.  

 

My question is -- any way to actually use this pool?  It's definitely mounted / healthy and data all there, but there's no trace of it in the WebUI.  

 

I've tried creating a pool in the WebUI with the same name, assigning the devices, choosing "auto" for the filesystem, but it always just gives me the unsupported errors - certainly due to the partitioning.  

 

Is there some way to use it without repartitioning - since it does seem to be mounted and accessible... I just can't figure out how to actually create any shares from it, etc.  

 

Thanks!

Screenshot 2024-03-17 at 10.03.54 AM.png

Edited by xmgx01
Added image
Link to comment
7 minutes ago, Kilrah said:

Supposedly the ability to import those will come in a future version but AFAIK for now there's no option but to wipe and recreate from scratch.

 

There is this, but I haven't had the nerve to try it yet...

 

Link to comment
  • Solution
1 hour ago, xmgx01 said:

but I haven't had the nerve to try it yet...

Should be perfectly safe, if you follow the steps correctly, I did it with my TrueNAS CORE pool, just for testing, since I want to keep TrueNAS on this server, booted with an Unraid flash drive, pool before the changes:

   pool: tank
     id: 11986576849467638030
  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: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-EY
 config:

        tank        ONLINE
          raidz3-0  ONLINE
            sdk2    ONLINE
            sdg2    ONLINE
            sdc2    ONLINE
            sdd2    ONLINE
            sdf2    ONLINE
            sdi2    ONLINE
            sde2    ONLINE
            sdh2    ONLINE
            sdm2    ONLINE
            sdj2    ONLINE
            sdl2    ONLINE

 

After running fdisk on each device to delete parttion1 and make partition2 > partition1:

   pool: tank
     id: 11986576849467638030
  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: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-EY
 config:

        tank        ONLINE
          raidz3-0  ONLINE
            sdk1    ONLINE
            sdg1    ONLINE
            sdc1    ONLINE
            sdd1    ONLINE
            sdf1    ONLINE
            sdi1    ONLINE
            sde1    ONLINE
            sdh1    ONLINE
            sdm1    ONLINE
            sdj1    ONLINE
            sdl1    ONLINE


After doing this, the pool imported normally with Unraid 6.12.8:

Import TrueNAS pool test.JPG

 

Rebooted the server and booted TrueNAS, pool imported as if nothing changed:

image.png

 

 

 

 

Link to comment

OK - I did this.  It worked perfectly, no issues.  zpool imported fine in GUI, datasets showed up as shares automatically, etc.  Just had to export and assign r/w permissions and it was working in no time.  Thanks! 

  • Like 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.