Pros and cons of using mirrored VDEVs?

I’m currently using 16 drives as two 8-wide VDEVs in RAIDz3 on a 9300-16i controller.

If I were to double the number of VDEVs and use them as a mirror of what I have now, I imagine I’d gain more redundancy and resilience against data loss.

My plan would be to add a 9300-16e controller to my current tower (connected directly to the mirrored drives using meter-length cables) in a separate tower with its own power supply.

But if a controller card or PSU failed, would the mirrored data in the other tower’s VDEV’s stay intact?

Also, are there any other downsides to using mirrored VDEVs?

Please note that there are cable length limits, even with SAS controllers, IF you use SATA disks. It’s complicated.

If the external disk enclosure has a SAS Expander, then 1 meter cables will be fine. Even with SATA disks. This is due to the SAS Expander encapsulating SATA protocol in SAS disk packets. And maintaining SAS voltage & signalling on the external cable.

However, if the external disk enclosure has no SAS Expander, then you are limited to LESS than 1 meter. In fact, the shorter the better. This is because you will have at least 3, possibly 4 data connections:

  • SAS Controller card to external cable
  • External cable to external disk enclosure
  • Enclosure cable entrance to back plane
  • Back plane to disk, (may not have this if no back plane)

Those connections reduce the SATA voltage and signalling, along with the external and internal cable lengths. Thus, shorter is better unless using a SAS Expander.

Yes. The pool would be offline and stay that way until you can restore the disks.

Well, the obvious one is that with RAID-Z2 or -Z3, you can loose 2 or 3 drives before data loss. You would have to use 3 way or 4 way Mirrors to get similar redundancy. Now, while it may be rare to loose both disks in a 2 way Mirror vDev, it can happen. In some small servers with just 4 disk slots, choosing RAID-Z2 helps overcome that problem. Same amount of redundancy, but any 2 disks can fail, unlike a 2 x 2 way Mirror vDevs.

Next, RAID-Zx stripes file data blocks across as many columns as it can. In an 8 wide RAID-Z3, that is up to 5 data disks / columns. While ZFS will stripe data across multiple Mirror vDevs, it writes each vDev as their own file data block. Then based on how much is free in the Mirrored vDevs, the next write target is selected.

That basically means their is no certainty that ZFS will evenly stripe file data blocks across all the Mirrored vDevs. The file data blocks might be here, there, and not in the user’s idea of perfect.

There are upsides of using Mirrored vDevs, but you asked about downsides.

You cannot add 2 more raidz3 vdevs and have them “mirror” the ones you have now.

All vdevs in a pool are striped. You lose a vdev, you lose the pool.

“Mirror” is a trype of vdev on its own (= RAID 1).
You can not mirror a parity array (raidz) on another vdev.
You may, however, have another pool and replicate to it to have a backup.

Hmmm, I missed the original poster’s train of thought.

I’d assumed the user wanted to create a second pool of Mirrors and copy the data over…

So, if it’s not possible to have two sets of vDEVs “mirror” each other, is there another way to have two pools (each hosted on a separate set of vDEVs) appear as a single network share and automatically stay in sync?

Do you have performance problems with your current pool setup of Raid-Z3 with two VDEVs each 8 drives wide?
Are you just trying to make a backup in case of the first pool fails and you want the second pool quickly available?

Backups between pools and/or systems is usually with ZFS Replication and snapshots

Inquire what a TrueNAS Enterprise license could do you with repect to High Availability…

Without breaking the bank, you can replicate to a backup pool almost as insanely often as you want, but you’ll have a bit of manual work, and a little downtime, to turn the backup into a the new primary if the primary fails.

My current setup is working as expected, but yes I’d like my backups to have a backup.

I’ll look into the definitions of replication and snapshots, perhaps the answer I seek is in there.

Then you need a separate system. VDEVs / Raid, what ever, are not a backup, or is this system your “backup” system of other data?

if so are you following the minimum 3-2-1 rule, which has now expanded to include immutable backups, so 3-2-1-0 or something.

Say your PSU blows and takes some drives with it…

If something starts deleting files cause of a compromise…that will replicate…

RAID anything has never been, is not, and will never be a backup.

Just to be clear here, Snapshot itself is not a backup, but it can help facilitate a backup if you replicate the snapshot onto another system/pool.