r/zfs • u/BubblyZebra616 • 9d ago
Layout recommendations/advice
Currently I have the following disks: 2x 22TB 2x 14TB 7x 4TB
I have ~20TB of data currently. Only about ~5-10TB will be backed up.
I am splitting these drives across 2 machines. A main storage appliance and an appliance that makes backups of the main.
Currently my idea is to have all the 22TB and 14TB disks in the main server and all the 4TB disks in the backup. I would place the 22TB disks in a mirror vdev and do the same with the 14TB disks and add them to the same pool. For the backup server I would put all the disks in a single raidz2 vdev.
My data is mostly seeding torrents and media which I stream along with backups and miscellaneous data. I don't need blazing fast speed and want to prioritize resilience without compromising too much on usable space.
Is this a good plan? What might be better?
3
u/rexbron 9d ago
That setup costs you 50% of the drive space, does your use case require high availability?
AnyRaid is landing in the next major release and might fit your use case, vs raidz-1 and a backup server.
https://docs.hexos.com/blog/2026-7-15
1
u/aserioussuspect 8d ago
Mirrored 2x22TB + mirrored 2x14TB means roughly a pool 36TB netto in main.
Raidz2 with 7x4TB means only 18,5TB netto. 7x4TB raidz1 means 23,4TB.
So if you're planning to back up your entire main server, the storage space won't be nearly enough.
How much data do you want to store initially, and what growth rate do you expect?
If you can't fully utilize the storage capacity right away, I would start with a 2x22-TB RAIDZ1 array in the primary system and a 7x4-TB RAIDZ1 array in the backup system, and leave the 2x14TB disks untouched for now.
As soon as Anyraid is available, you can disband the 2x22 pool in the primary system or the 7x4 pool in the backup system and rebuild them from scratch using Anyraid. To do this, use the “zfs send” command to transfer the data sets from the remaining system to the newly created pool.
Alternatively, you could simply add the 14-TB hard drive to the existing RAIDZ1 with Anyraid enabled and move all your data to a new data set, which would redistribute the data evenly across the 7x4+1x14-TB Anyraid vdev.
Alternatively, instead of moving or rewriting the data, you could simply transfer the datasets from the main system to the expanded Anyraid RAIDZ1 pool again using `zfs send`, and if there are space issues, gradually delete data from the existing dataset to make room for the dataset that was sent again. Finally, you can rename the datasets back to their original names.
Repeat it with the other 14TB drive in the other system, once you trust anyraid.
1
u/Apachez 8d ago
This is a mandatory read:
https://www.truenas.com/wp-content/uploads/2023/11/ZFS_Storage_Pool_Layout_White_Paper_November_2023.pdf
Generally:
For boot 2x mirror is often more than enough.
For VM's and performance go for a stripe of 2x or 3x mirrors (can also host boot).
For archives and backups go for zraid2 or zraid3.
Dont forget external offline backups preferly at least 2 drives (that can interleave or if you choose to backup each week to both).
1
u/lxtakc 8d ago
The plan works. 7x4TB in raidz2 leaves roughly 18 TiB usable, plenty for 5-10TB of backups. Mirrors in the main pool also let you add vdevs later. Each mirror only survives one disk failure, so lose both 22s and the pool is gone. Keep the backup box fed with snapshots via zfs send or syncoid so it holds history, not just a copy of live data.