null

RAIDZ2

Enterprise Resource Center • ZFS Knowledge Base

Understanding RAIDZ2

RAIDZ2 is a ZFS double-parity VDEV layout designed to tolerate the loss of up to two devices within the RAIDZ2 VDEV. It trades more raw capacity for redundancy than RAIDZ1 while providing greater drive-failure tolerance.

Double Parity 2-Drive Fault Tolerance ZFS VDEV RAIDZ Zpool
Tech Supply Direct
Quick Answer

What Is RAIDZ2?

RAIDZ2 is a double-parity RAIDZ configuration that can tolerate the failure of up to two drives within a RAIDZ2 VDEV without exceeding that VDEV's redundancy. Data and parity are distributed across the devices participating in the VDEV.

RAIDZ2 requires at least four devices. Two parity levels reduce usable capacity compared with RAIDZ1, but provide additional protection against drive failures while the VDEV is operating normally or in a degraded state.

RAIDZ2 at a Glance

RAIDZ2 Key Characteristics

PARITY

Double Parity

RAIDZ2 maintains two parity levels across the devices participating in the VDEV.

FAULT TOLERANCE

Up to 2 Drives

A RAIDZ2 VDEV can remain within its redundancy tolerance after as many as two participating devices fail.

MINIMUM

4 Drives

Four devices are the technical minimum for a RAIDZ2 data VDEV.

CAPACITY

Two-Parity Overhead

Simplified capacity planning subtracts the equivalent capacity of two drives for parity.

How RAIDZ2 Works

Data + Double Parity Across the VDEV

RAIDZ2 distributes data and parity information across the participating devices. Its two parity levels allow ZFS to reconstruct unavailable data when one or two devices in the RAIDZ2 VDEV fail.

DRIVE 1
Data / Parity
DRIVE 2
Data / Parity
DRIVE 3
Data / Parity
DRIVE 4+
Data / Parity
Important: The diagram is conceptual. RAIDZ uses variable-width stripes, and parity is not permanently assigned to two dedicated physical drives.
ZFS Architecture

RAIDZ2 Is a VDEV Layout

RAIDZ2 is best understood as a type of ZFS VDEV rather than as the entire storage pool. Multiple drives form the RAIDZ2 VDEV, and one or more top-level data VDEVs provide storage to the zpool.

STEP 1
Physical Drives
STEP 2
RAIDZ2 VDEV
STEP 3
Zpool
Capacity Planning

How Much Usable Capacity Does RAIDZ2 Provide?

For a simplified estimate using equal-size drives, RAIDZ2 provides approximately the capacity of the total drive count minus two drives.

SIMPLIFIED RAIDZ2 CAPACITY
(Number of Drives − 2) × Smallest Drive Capacity

This is a planning approximation rather than the amount of filesystem space ultimately available to applications.

Example Raw Capacity Approx. RAIDZ2 Data Capacity Parity Equivalent
4 × 8 TB 32 TB ~16 TB ~16 TB
6 × 8 TB 48 TB ~32 TB ~16 TB
8 × 12 TB 96 TB ~72 TB ~24 TB
10 × 16 TB 160 TB ~128 TB ~32 TB

These examples are simplified decimal-capacity estimates. Actual available space is lower and depends on formatting, ZFS metadata, allocation behavior, reserved space, drive capacity reporting and other configuration factors.

Fault Tolerance

How Many Drives Can RAIDZ2 Lose?

A RAIDZ2 VDEV can tolerate up to two unavailable devices. The VDEV becomes degraded after a device failure but can continue operating while sufficient redundancy remains.

0 FAILURES
Normal Redundancy Both parity levels are available.
1 FAILURE
Degraded The VDEV remains operational with another level of fault tolerance remaining.
2 FAILURES
Still Within Tolerance Data remains available, but no additional device failure can be tolerated.
3 FAILURES
Beyond RAIDZ2 Protection Losing a third required device exceeds RAIDZ2's redundancy capability.
Why RAIDZ2?

Why Use Double Parity?

The main advantage of RAIDZ2 over RAIDZ1 is the additional drive-failure tolerance provided by the second parity level.

Two-Drive Protection The VDEV can tolerate two device failures rather than one.
Degraded-State Margin After one device fails, RAIDZ2 still has another level of device-failure tolerance.
Larger Arrays Additional parity can be attractive when protecting larger-capacity storage devices or wider VDEVs.
Capacity / Protection Balance RAIDZ2 sits between RAIDZ1 and RAIDZ3 in both parity overhead and device-failure tolerance.
RAIDZ Comparison

RAIDZ1 vs RAIDZ2 vs RAIDZ3

RAIDZ Level Parity Minimum Drives Device Failures Tolerated Capacity Tradeoff
RAIDZ1 Single 3 1 Lowest parity overhead
RAIDZ2 Double 4 2 Middle
RAIDZ3 Triple 5 3 Highest parity overhead
Common Question

Is RAIDZ2 the Same as RAID 6?

No. RAIDZ2 and conventional RAID 6 are often compared because both provide double-parity protection and can tolerate two device failures within the protected group. However, RAIDZ2 is part of the ZFS storage architecture and should not be described simply as another name for RAID 6.

ZFS integrates RAIDZ with features such as checksumming, copy-on-write, pooled storage, scrubbing and other filesystem-level data-integrity mechanisms.

Performance

RAIDZ2 Performance Considerations

RAIDZ2's double parity provides additional protection, but parity-based storage also introduces performance characteristics that should be considered when designing a ZFS system.

Sequential Workloads RAIDZ2 can be well suited to storage workloads where capacity and sequential throughput are important.
Parity Processing Writes require parity generation and storage in addition to the underlying data.
Random I/O Workloads dominated by random I/O may favor a different VDEV design, such as multiple mirrors.
Drive Choice HDD versus SSD, interface, workload and drive performance remain major factors in overall system performance.
Drive Replacement

What Happens When a RAIDZ2 Drive Fails?

When a device in a RAIDZ2 VDEV fails or becomes unavailable, the VDEV becomes degraded but can continue operating while its remaining redundancy is sufficient. The failed device should be addressed promptly.

After an appropriate replacement device is introduced, ZFS reconstructs the required data onto that device through a process known as resilvering. RAIDZ2's second parity level means another device failure can be tolerated after the first failure, provided failures have not already exceeded the VDEV's redundancy.

Deployment Planning

When Does RAIDZ2 Make Sense?

Storage Servers General-purpose ZFS storage where capacity and two-drive fault tolerance are priorities.
NAS Systems File storage systems that benefit from parity-based capacity efficiency and additional redundancy.
Large-Capacity HDD Pools The second parity level can provide additional failure margin when using large-capacity storage devices.
Backup Storage RAIDZ2 can be used as the storage layer for a properly designed backup repository.
Alternative VDEV Design

RAIDZ2 or ZFS Mirrors?

RAIDZ2 and mirrored VDEVs solve different storage-design problems. RAIDZ2 is commonly attractive when capacity efficiency and double-parity protection are important. Multiple mirror VDEVs can be attractive for workloads where random I/O performance, certain resilver characteristics or incremental expansion are stronger priorities.

Neither layout is universally better. The correct design depends on workload, usable-capacity requirements, acceptable fault domains, drive count, expansion plans and recovery goals.

Important Data Protection Principle

RAIDZ2 Is Not a Backup

RAIDZ2 protects against specified device failures; it does not replace an independent backup. Double parity cannot by itself protect against every form of accidental deletion, application corruption, malicious activity, catastrophic system loss or other events that may affect the pool.

Important data should be protected with an appropriate backup strategy that maintains independent copies according to the organization's recovery requirements.

Frequently Asked Questions

RAIDZ2 FAQ

What is RAIDZ2?

RAIDZ2 is a ZFS double-parity VDEV layout that distributes data and parity across multiple storage devices.

How many drives does RAIDZ2 require?

The technical minimum is four devices: at least two data portions plus the equivalent of two parity levels.

How many drives can RAIDZ2 lose?

A RAIDZ2 VDEV can tolerate up to two device failures. A third required device failure exceeds RAIDZ2 redundancy.

Does RAIDZ2 use two dedicated parity drives?

No. RAIDZ distributes data and parity across the participating devices rather than permanently assigning two physical drives exclusively to parity.

Is RAIDZ2 the same as RAID 6?

No. Both use double-parity concepts and tolerate two device failures, but RAIDZ2 is integrated into ZFS and uses a different storage architecture.

Is RAIDZ2 better than RAIDZ1?

RAIDZ2 provides greater device-failure tolerance but consumes more capacity for parity. Which is preferable depends on the storage design and risk requirements.

Is RAIDZ3 safer than RAIDZ2?

RAIDZ3 provides an additional parity level and can tolerate three device failures, but it also requires additional capacity for parity.

Can RAIDZ2 use different-size drives?

It can, but usable capacity is generally constrained by the smallest participating device, so similar drive capacities are normally preferable.

What happens after a RAIDZ2 drive fails?

The VDEV becomes degraded. After the failed device is replaced, ZFS can reconstruct the required data onto the replacement through resilvering.

Does RAIDZ2 replace backups?

No. RAIDZ2 provides storage redundancy, not an independent copy of the data.

Enterprise Storage Hardware

Building a RAIDZ2 Storage Server?

Tech Supply Direct can help identify compatible enterprise HDDs, SSDs, SAS and SATA storage, memory and related server hardware for ZFS storage deployments and upgrades.