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.

ZFS Pool Import

Featured Replies

Hi all

 

Version 7. B2..

 

Looking to import a ZFS Pool that was created only on a single disk...and is separate from my main array (XFS) / cache (ZFS)

 

Unassigned Devices shows FS as 'ZFS Member' and 'Partition'.

 

I was expecting to be able to 'ZFS Import' but no pools are found.  Do I need to off-line my array in some way?

 

ZFS Master and Unassigned Devices + Unassigned Devices + installed.

 

Thank you so much.

 

Mo

Solved by JorgeB

  • Community Expert
43 minutes ago, M0CRT said:

Do I need to off-line my array in some way?

No, post the output from

blkid
zpool import

and

zpool status

 

  • Author

JorgeB...you are a star.

 

root@server:~# blkid
/dev/sda1: LABEL_FATBOOT="UNRAID" LABEL="UNRAID" UUID="2732-64F5" BLOCK_SIZE="512" TYPE="vfat"
/dev/md1p1: UUID="51354d8b-de02-4b42-affd-6135b2c3c012" BLOCK_SIZE="512" TYPE="xfs"
/dev/md2p1: UUID="d780ea51-40b4-4fb8-8f8d-d43e75e8b8be" BLOCK_SIZE="512" TYPE="xfs"
/dev/md3p1: UUID="6ff58b58-4324-4f1f-9b39-36c69ca5498f" BLOCK_SIZE="512" TYPE="xfs"
/dev/md4p1: UUID="79f41d3e-1b61-4c6c-a4c5-44f58b7c9f8f" BLOCK_SIZE="512" TYPE="xfs"
/dev/loop1: BLOCK_SIZE="131072" TYPE="squashfs"
/dev/nvme0n1p1: LABEL="SSD2" BLOCK_SIZE="512" UUID="129E4F7A9E4F557F" TYPE="ntfs" PARTUUID="e5c144bb-01"
/dev/sdi: TYPE="zfs_member" PTTYPE="PMBR"
/dev/nvme2n1p3: BLOCK_SIZE="512" UUID="9E16D8BC16D8969D" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="a61fa55f-f6ae-47c1-bab6-0205eca42e87"
/dev/nvme2n1p1: UUID="34CC-A658" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="3215fab5-ac51-4177-ab85-ae023dec5eca"
/dev/loop2: UUID="06090d70-8413-416b-a356-b1de5400af34" UUID_SUB="0ce29b88-ec2c-4181-a625-22bef20a7291" BLOCK_SIZE="4096" TYPE="btrfs"
/dev/sdg1: LABEL="cache" UUID="11731246308525138860" UUID_SUB="5631085809690507914" BLOCK_SIZE="4096" TYPE="zfs_member" PARTUUID="5cecabc3-01"
/dev/loop0: BLOCK_SIZE="131072" TYPE="squashfs"
/dev/nvme1n1p2: LABEL="SSD2" BLOCK_SIZE="512" UUID="9EFAE9F3FAE9C81B" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="4be98a8a-fd5e-4270-bbb8-a8daaf16d183"
/dev/loop3: UUID="000ee9d6-418c-4ffb-a250-19b192adfb04" UUID_SUB="f3543e23-3229-4f00-98e2-a64649b9d2c4" BLOCK_SIZE="4096" TYPE="btrfs"
/dev/sdh1: LABEL="cache" UUID="11731246308525138860" UUID_SUB="15774442455614836752" BLOCK_SIZE="4096" TYPE="zfs_member" PARTUUID="5cecabc1-01"
/dev/nvme2n1p2: PARTLABEL="Microsoft reserved partition" PARTUUID="d6062404-96f5-417f-a41c-c9c3b46bc4d7"
/dev/nvme1n1p1: PARTLABEL="Microsoft reserved partition" PARTUUID="226bc947-3397-452d-83e3-8ba10168d07c"
root@server:~# zpool import
no pools available to import
root@server:~# zpool status
  pool: cache
 state: ONLINE
status: Some supported and requested features are not enabled on the pool.
    The pool can still be used, but some features are unavailable.
action: Enable all features using 'zpool upgrade'. Once this is done,
    the pool may no longer be accessible by software that does not support
    the features. See zpool-features(7) for details.
  scan: scrub repaired 0B in 00:03:58 with 0 errors on Sun Sep 29 01:03:59 2024
config:

    NAME        STATE     READ WRITE CKSUM
    cache       ONLINE       0     0     0
      mirror-0  ONLINE       0     0     0
        sdg1    ONLINE       0     0     0
        sdh1    ONLINE       0     0     0

errors: No known data errors

 

 

 

 

 

  • Author

/dev/sdi: TYPE="zfs_member" PTTYPE="PMBR". is the disk...obviously. :-)

 

  • Community Expert

Looks like the pool is using the whole device, where was it created?

 

Try:

zpool import -f -d /dev/sdi

 

  • Author

'No available pools to import' when attempted.

 

It was created on the Unraid array around 3 months ago...prior to 7 upgrade.

  • Community Expert

Do you mean with the GUI? Unraid never uses the whole disk, it creates a partition.

 

Post the output from

fdisk -l /dev/sdi

 

  • Author

Hi Jorge...Sorry for the delay in responding.

 

root@server:~# fdisk -l /dev/sdi
Disk /dev/sdi: 2.73 TiB, 3000592982016 bytes, 732566646 sectors
Disk model: 001-1ER166
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 33550336 bytes
Disklabel type: dos
Disk identifier: 0x4226f2f1

Device     Boot Start        End    Sectors Size Id Type
/dev/sdi1           1 4294967295 4294967295  16T ee GPT

  • Community Expert

That's not an Unraid partition, something/someone overwrote it, can you confirm the pool was create using the GUI?

  • Author

Hi Jorge. I think I may have created on command line..   Apologies for not replying sooner...How strange.  Would I be able to recover files with a recovery tool?  

  • Community Expert

It may be recoverable, but ideally would need to know how the pool was created, to know he partition layout used.

  • Author

Fair enough.  I wonder also if attempting to access the drive via a USB dock when I created it on an internal SATA port is going to cause issues.

 

Thanks for your response and all your amazing support you provide for everyone.

 

Mo

  • Community Expert
  • Solution
2 hours ago, M0CRT said:

I wonder also if attempting to access the drive via a USB dock when I created it on an internal SATA port is going to cause issues.

It could, some USB bridges are not transparent.

 

You can try creating the OpenZFS standard partition, if the pool was created using the CLI it should work, and not much to lose at this point, it won't make any more damage.

 

First wipe the device to delete that partition, since that's not a valid layout for sure:

 

wipefs -a /dev/sdX

 

Replace X with the correct letter, then type

sfdisk /dev/sdX

Now type 2048 and it enter, post the results from that, doing just this won't write a new layout, just to see if there's a zfs signature in that sector.

 

 

  • Author

Jorge...Working.

 

Note to self, do not expect the disk to be presented in exactly the same way via a cra*py USB3 dock > SATA interface.

 

As soon as I returned the disk to a direct SATA3 interface on the M/B...it returned as a 'ZFS' partition rather than a 'member ZFS' partition and it imported / mounted with a blink of an eye. 

 

Sure useful to note for all.  Get the basics right.

 

Thanks again and apologies.

 

Mo

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.