RAIDZ Types Reference (2024)

RAIDZ Calculator What is RAIDZ? RAIDZ types reference

There are many different ways to organize data in a RAIDZ array. These ways are called "RAIDZ levels". Different RAIDZ levels have different speed and fault tolerance properties. Striped pools are not fault tolerant. RAIDZ1, RAIDZ2 and RAIDZ3 are fault tolerant to a different degree - should one of the hard drives in the array fail, the data is still reconstructed on the fly and no access interruption occurs.

There are some more complex layouts, which are combinations of basic RAIDZ levels. Although you may use traditional names for such nested layout like RAID50 or RAID60, "Z" names are not introduced for them and often the layouts are just named after the schemes used for their creation like mirror + stripe or RAIDZ + mirror. These are however beyond the scope of this reference.


&nbsp Stripe Mirror RAIDZ RAIDZ2 RAIDZ3 Stripe+mirror
Min number of disks 1 2 2 4 5 4
Fault to­le­ran­ce None (N-1) disk 1 disk 2 disks 3 disk (N-1) disk in each N-disk mirror
Disk space over­head None (N-1)/N 1 disk 2 disks 3 disks (N-1)*P for P stipe over N-disk mirrors
Read speed Fast Fast Slow, seebelow Fast
Write speed Fast Fair Slow, Seebelow Fair
Hard­ware cost Cheap High to highest High Very high Very High (disks) High to highest

Striping is a technique to store data on the disk array. The contigous stream of data is divided into blocks, and blocks are written to multiple disks in a specific pattern. Striping is used with all RAIDZ levels due to the specifics of ZFS filesystem which is used on the RAIDZ pools.

Block size is dynamically selected for each data row to be written to the ZFS pool.

Stripe pool and RAID0 are almost equal to each other. Although ZFS provides checksumming to avoid silent data corruption, there is no redundant data (no parity nor a mirror) to rebuild data from in case of a disk failure. Another difference is that ZFS stores metadata records in several copies regardless of the top-level RAIDZ layout. However, user data is still stored in a single copy on a striped ZFS pool. While the configuration is not recommended to be used solely, it still can be considered as a part of redundant layouts like RAID10 (stripe plus mirror).

Like RAID0, a striped ZFS pool provides no fault tolerance at all. Should any of the disks in the array fail, the entire pool fails and all the data is lost.

Striped ZFS solutions are cheap, and they use all the disk capacity minus disk space used for metadata redundancy which is the must on the ZFS pool regardless of the layout.

If a striped ZFS pool fails logically but all the disks are present and healthy, you can do a ZFS stripe pool recovery relatively easy using ReclaiMe Pro ZFS recovery software. However, you should keep in mind that if the disk failure happens, data is lost irreversibly.

Disk1Disk2Disk3
153
627
489

Requires minimum of two drives and generally is very similar to a RAID1. Using in conjunction with the ZFS filesystem gives you certain advantages like automatic checksumming. Although checksumming just allows detecting data corruption, it is still something, which most traditional RAID systems lack. Another difference from a regular RAID1 is that with the help of ZFS you can create storage systems involving multiple mirrors rather than just 2 or 3-way mirrors within the traditional RAID1 technology.

While a traditional RAID1 is recommended to use when you need a reliable storage of relatively small capacity, a mirrored ZFS pool is recommended when you need an extremly reliable storage system.

A regular RAID1 stores two identical copies of data on two hard drives and doesn't use blocks and stripes. A mirrored ZFS pools can store as many copies of data as you wish and does use blocks and stripes: copies are stored within particular "rows".

ZFS mirror pool uses the capacity of (N-1) drives to maintain fault tolearnce. This amounts to (N-1)\N capacity loss for the array. For example, if you combine four 500GB drives in a ZFS mirror, you'd only get 500GB of usable disk space and 1.5 TB goes for redundancy.

Disk1Disk2
12
21
33

RAIDZ fits as large, reliable, relatively cheap storage.

RAIDZ (sometimes called RAIDZ1 pointing to a single parity) is most similar to a traditional RAID5 and requires minimum of 2 disks. Like in a regular RAID5, every "row" along with the data blocks stores a parity function calculated over the data blocks, which allows a system to survive a single disk failure. The difference is in the row placement pattern which is no longer the same over the disk set; another difference is block size which can vary over the rows. Also, there are no longer distinguished right/left, synchronous/asynchronous RAID5 layouts in ZFS RAIDz pools.

If all drives are OK, read requests are distributed evenly across the drives, providing read speed similar to that of a striped pool. Theoretically, for N-disk array, a striped pool provides N times faster reads and RAIDZ should provide (N-1) times faster reads. However, the number of blocks in a particular row depends on the data block size to be written as well as on the ZFS unit block size so we can only talk about (N-1) times read speed acceleration as the top limit. If one of the drives has failed, the read speed degrades to that of a single drive, because all blocks in a row are required to serve the request.

Write speed of a RAIDZ is limited by the parity updates. For each written block, its corresponding parity block has to be read, updated, and then written back. Thus, there is no significant write speed improvement on RAIDZ, if any at all.

The capacity of one member drive is used to maintain fault tolerance. For example, if you have 10 drives 1TB each, the resulting RAIDZ capacity would be 9TB.

If a ZFS RAIDZ pool fails, you can still recover data from the pool with RAIDZ recovery software. Unlike a striped ZFS pool, RAIDZ is redundant and it can survive one member disk failure.

Disk1 Disk2 Disk3 Disk4
P1,2 1 2
P3,4,5 3 4 5
6 P6
7 P7,8 8

RAIDZ2 is a large, highly reliable, relatively expensive storage, which requires a minimum of 3 disks.

RAIDZ2 is like RAID6 – allows to survive a double disk failure at the expense of storing two different parity functions. All considerations about block placement pattern and block size are the same as for a RAIDZ.

Read speed of the N-disk RAIDZ2 is up to (N-2) times faster (apply the same considerations as for RAIDZ above) than the speed of a single drive, similar to RAIDZ. If one or two drives fail in RAIDZ2, the read speed degrades significantly because a reconstruction of missing blocks requires an entire row to be read.

There is no significant write speed improvement in RAIDZ2 layout. RAIDZ2 parity updates require even more processing than that in RAIDZ.

The capacity of two member drives is used to maintain fault tolerance. For an array of 10 drives 1TB each, the resulting RAIDZ2 capacity would be 8TB.

The recovery of a RAIDZ2 pool in case of failure is fairly complicated but anyway you need ZFS recovery software for this.

Disk1 Disk2 Disk3 Disk4 Disk5
P1,2 Q1,2 1 2
P3,4,5 Q3,4,5 3 4 5
P7 Q7 7
P8,9 Q8,9 8 9

Triple parity RAID. Although back in 2009 people discussed that triple-parity RAID should replace the traditional RAID5/6 and even proposed a name – RAID7, only in the ZFS environment the triple-parity RAID idea has been developed and implemented in full. With RAIDZ3, you can create a storage system, which allows to tolerate 3 disk failures before losing data. To create a RAIDZ3 pool you need at least 4 disks.

Disk1 Disk2 Disk3 Disk4 Disk5 Disk6
P11,2,3 P21,2,3 P31,2,3 1 2 3
P14,5 P24,5 P34,5 4 5
P16,7,8,9 P26,7,8,9 P36,7,8,9 6 7 8
9 P110,11 P210,11 P310,11 10 11
P112 P212 P312 12

Striped mirror pool is a large, fast, reliable, but expensive storage.

Striped mirror pool uses several (minumum two) mirrored disk sets to hold identical copies of the content.

The layout is much similar to RAID10 and traditionally requires minimum of four devices. Assuming that mirrors in ZFS environment can be created on any number of disks (starting from 2 disks), you can easily create a bunch of almost any possible mirrors (as to children disk number) and then stripe data across them.

Disk1Disk2Disk3Disk4
1346
5522
7164
3788

This RAIDz calculator was created by ReclaiMe Team of www.ReclaiMe-Pro.com. Check out our other stuff if you are interested in

RAIDZ Types Reference (2024)

FAQs

RAIDZ Types Reference? ›

There are five different RAID-Z modes: RAID-Z0 (similar to RAID 0

RAID 0
In computer data storage, data striping is the technique of segmenting logically sequential data, such as a file, so that consecutive segments are stored on different physical storage devices.
https://en.wikipedia.org › wiki › Data_striping
, offers no redundancy), RAID-Z1 (similar to RAID 5, allows one disk to fail), RAID-Z2 (similar to RAID 6, allows two disks to fail), RAID-Z3 (a RAID 7 configuration, allows three disks to fail), and mirror (similar to RAID 1, allows all but one of the ...

What are the different types of ZFS? ›

ZFS currently supports three types of vdev: single disk, mirror and RAIDZ1/2/3. Disks can be added or removed from mirrors, so it is possible to turn a single disk into a mirror and vice-versa. RAIDZ vdevs are immutable. Single disks Running a single disk as a vdev is a very bad idea in most situations.

Is dRAID better than Raidz? ›

A dRAID redundancy group is roughly the equivalent of a RAIDz vdev. dRAID redundancy groups can be much wider than RAIDz vdevs and still have the same level of redundancy.

What is the ZFS equivalent of RAID 5? ›

RAID5 - In ZFS, RAID5 is called RAIDZ1.

What is raidz in ZFS? ›

RAIDZ is a non-standard software RAID that ZFS can use to construct VDEVs using available devices. By non-standard we mean it is ZFS-specific and does not conform to other common software RAID standards. RAIDZ supports the following three levels of RAID: RAIDZ. Level.

Why is ZFS better than RAID? ›

So ZFS comes with some other features that traditional RAID doesn't have, which is the L2 Ark and the ZIL, or the ZFS intent log, and what this does is it allows RAM and SSDs to work as a cache for high speed.

What Raidz to choose? ›

The best RAID configuration for your storage system will depend on whether you value speed, data redundancy or both. If you value speed most of all, choose RAID 0. If you value data redundancy most of all, remember that the following drive configurations are fault-tolerant: RAID 1, RAID 5, RAID 6 and RAID 10.

What is the most efficient RAID type? ›

RAID 0 is always the highest-performing level.

An example would be an eight-spindle RAID 0 array. If an individual drive in the array delivers 125 IOPS, our calculation would be done with N = 8 and X = 125, so 8 * 125 yields 1,000 IOPS. Both read and write IOPS are the same here.

Is raidz the same as RAIDZ1? ›

RAIDZ fits as large, reliable, relatively cheap storage. RAIDZ (sometimes called RAIDZ1 pointing to a single parity) is most similar to a traditional RAID5 and requires minimum of 2 disks.

How many disks are needed for RAIDZ? ›

You need at least two disks for a single-parity RAID-Z configuration and at least three disks for a double-parity RAID-Z configuration, and so on. For example, if you have three disks in a single-parity RAID-Z configuration, parity data occupies disk space equal to one of the three disks.

Is ZFS faster than XFS? ›

Comparison Between Both Filesystems

In combination with the B+ tree implementation, we should be able to retrieve and find data faster than ZFS. Moreover, from a standard installation without tweaking the parameters, XFS performs slightly better than ZFS (in I/O operations) and uses fewer resources.

Which is best LVM or ZFS? ›

ZFS is both a filesystem and a volume manager, the line gets very blurry with ZFS. Note that LVM cannot detect and correct errors in your data, though. At the same time, LVM is "leaner" and doesn't have much overhead.

Does ZFS need RAID controller? ›

No. The fact that you can use one does not necessitate that you should use one. If you are not sure whether or not you should use a RAID card, the chances are you do not need one. Most of the time you will be better off with a good SAS backplane or a passive, and reliable, HBA.

Can you expand raidz? ›

RAIDZ expansion allows a small pool with as few as two drives to be gradually expanded with one drive at a time.

What are the different RAID-Z modes? ›

There are five different RAID-Z modes: RAID-Z0 (similar to RAID 0, offers no redundancy), RAID-Z1 (similar to RAID 5, allows one disk to fail), RAID-Z2 (similar to RAID 6, allows two disks to fail), RAID-Z3 (a RAID 7 configuration, allows three disks to fail), and mirror (similar to RAID 1, allows all but one of the ...

Why is ZFS using so much RAM? ›

ZFS uses RAM mostly for aggressive caching to cover over both spinning disks and the iops tradeoff vdevs make over traditional raid arrays. Thus low memory is not such a big deal if you have a pool with a single SSD or NVMe device.

What is the difference between ZFS Zil and slog? ›

ZIL is the space synchronous writes are logged before the confirmation is sent back to the client. By default it exists as part of your storage pool. SLOG is a separate device for the ZIL to exist on. It could improve performance for some specific uses.

What is the difference between ZFS and Zpool? ›

Zpools exist on the top of the ZFS structure. Zpools are what is created from one or more vdevs, similar to how a vdev is created from one or more real devices (generally drives). One ZFS system could contain multiple zpools, and each zpool can hold multiple vdevs, but each vdev can only exist within one zpool.

What are the different types of cache in ZFS? ›

ZFS has a Read Cache which is divided into two levels called ARC and L2ARC. ARC is a core component of OpenZFS. L2ARC is optional. ARC lives in your system RAM, while L2ARC could be a fast NVMe disk.

What is the difference between RAID z1 and mirror in ZFS? ›

ZFS mirror itself is faster than RAIDZ. It is also more convenient to use. Easy to replicate the system, by moving one disk out of mirror to new platform; 3.

References

Top Articles
Latest Posts
Article information

Author: Rob Wisoky

Last Updated:

Views: 5575

Rating: 4.8 / 5 (48 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Rob Wisoky

Birthday: 1994-09-30

Address: 5789 Michel Vista, West Domenic, OR 80464-9452

Phone: +97313824072371

Job: Education Orchestrator

Hobby: Lockpicking, Crocheting, Baton twirling, Video gaming, Jogging, Whittling, Model building

Introduction: My name is Rob Wisoky, I am a smiling, helpful, encouraging, zealous, energetic, faithful, fantastic person who loves writing and wants to share my knowledge and understanding with you.