brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: import a ZFS pool from another system with File System set to Auto

Unraid
~/tips/tip-unraid-import-zfs-pool-auto

click the pool name > File System: Auto

Bring an existing ZFS pool into Unraid without copying the data off first.

Moving from another NAS or a plain Linux box to Unraid doesn’t mean copying every byte off your ZFS pool first. Unraid can import an existing pool, as long as you hand it every single drive.

The steps from the ZFS docs:

Stop the array
Add Pool
  Number of Data Slots: total number of drives in the ZFS pool
  assign every drive to a slot (order doesn't matter)
click the pool name > File System: Auto
Done > start the array

Unraid then detects and imports the pool by itself. Support vdevs such as log, cache (L2ARC), special or dedup drives show up under Subpools, and you don’t have to add them separately. The docs give the example of a pool with a 4-drive mirrored vdev plus a 2-drive L2ARC vdev: you set 6 slots and assign all six drives.

That “all” is where it can go wrong. If you forget a drive from a special or dedup vdev, the pool won’t import or will be unusable, because those hold metadata or deduplication tables. A missing log drive only costs sync write speed, and a missing L2ARC drive only costs the read cache. So I’d write down the full zpool status layout on the old system before the disks come out, and count them twice.

After the import, run a scrub: click the pool name, look under Pool Status and press Scrub. The docs call this highly recommended to verify the data made the trip intact.

The caveat is that Unraid doesn’t support spare vdevs (as of 7.1.2, per the docs). If your old pool had a hot spare, that drive won’t do anything useful in Unraid.

Further reading: Unraid docs: ZFS storage

Going deeper: Guide: your Unraid cache is full and Docker stopped, how to find out why and fix it

More Unraid tips Change the RAID profile of a Unraid BTRFS pool with Balance Replace a disk in a redundant Unraid pool from the Main tab Test every Unraid drive with the DiskSpeed container See the XML behind a VM with the inline XML view in Unraid 7 Choose where a new VM's disk image is created with Unraid's storage override All Unraid tips (77) All topics

Link