Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

TrueNAS zfs import to 6.12.8 with zfs on partition 2

Featured Replies

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

Solved by JorgeB

  • Community Expert

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.

  • Author
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...

 

  • Community Expert
  • 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

 

 

 

 

  • Author

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! 

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.