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: a ZFS disk inside the Unraid array makes a parity-protected backup target

Unraid
~/tips/tip-unraid-zfs-disk-in-array-backup-target

click an empty slot under Array Devices, select the disk

Use one ZFS-formatted array disk as a snapshot and replication target under parity.

Unraid lets you do something most ZFS people find a little odd: format one array disk as ZFS. It looks pointless at first, since you lose the pool features, but it fits one job very well.

The setup is the same as any array disk, only with another file system:

Main > stop the array
click an empty slot under Array Devices, select the disk
File system: zfs (or zfs-encrypted)
Apply > start the array, format if asked

What you get, according to the ZFS docs: the disk is protected by normal Unraid parity, ZFS checksums detect corruption on it, and you can use ZFS snapshots and replication. Their example is to replicate a fast SSD ZFS pool to a ZFS disk in the array, using zfs send/receive or a tool like Syncoid. That’s the use I like. An appdata pool on SSD is where containers like Home Assistant and Nextcloud live, and a ZFS array disk can receive its snapshots without needing a second pool of drives.

Be clear on what this disk isn’t. A single ZFS disk can detect bit rot but it can’t heal it, because there’s no second copy. The docs say you then restore from backup before silent data loss sets in. You also don’t get the combined speed, redundancy or self-healing of a real multi-disk pool, and they say plainly that it is no replacement for a full ZFS pool.

The caveat is that this is for a backup target and specific datasets. Formatting a disk that already holds data wipes it, so start with an empty disk or one you’ve emptied first.

Further reading: Unraid docs: ZFS storage

Going deeper: Get the most out of Unraid: the settings worth changing, from shares to backups

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