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: pick RAIDZ1 for a two-drive ZFS pool if you want to add disks one at a time

Unraid
~/tips/tip-unraid-zfs-two-drives-raidz1-expansion

Main > Pool Devices: add a slot, assign the new drive

Build a two-drive ZFS pool on Unraid that can still grow one disk at a time.

Two SSDs, a new ZFS pool, and Unraid suggests a mirror. That’s a good default for a fast appdata pool. It becomes an annoying default a year later, when you buy a third drive and find out a mirror doesn’t grow that way.

The cache pools docs are clear about which ZFS pools can grow one drive at a time: only single-vdev RAIDZ1, RAIDZ2 or RAIDZ3 pools, starting with Unraid 7.2. A mirror grows by adding another complete mirror pair, and pools with several vdevs only grow by complete vdevs. So their advice for a new two-device pool is to choose RAIDZ1 during setup instead of the default mirror if you plan to add drives later. If you don’t, they recommend staying on the mirror for its simplicity and performance.

Expanding such a pool later goes like this:

Main > Pool Devices > click the pool name
  Pool Status: click Upgrade Pool if that button is there
Stop the array
Main > Pool Devices: add a slot, assign the new drive
Start the array

The new drive must be at least as large as the smallest drive already in the pool. If you get an “invalid expansion” warning, you skipped the Upgrade Pool step.

My take: for appdata on two NVMe drives I’d still use the mirror, because that pool rarely needs to grow. For a pool that is going to collect photos and backups, I’d start with RAIDZ1 and buy disks as I go.

The caveat sits in that upgrade button. The docs say upgrading the pool limits your ability to downgrade to earlier releases of Unraid, so do it when you’re happy on 7.2 or later.

Further reading: Unraid docs: Cache pools, 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