Use it when configuring, checking or troubleshooting Mirror VDEV in ZFS.
Mirror VDEV
A mirror vdev duplicates blocks across all member devices. A mirror with N members can continue while at least one valid member remains, although performance, replacement risk and fault domains depend on member placement and correlated failure exposure. Pool-wide availability still depends on every top-level normal vdev remaining serviceable.
1. Mirror vdevs: best IOPS and fast resilver.
2. 50 % capacity (2-way).
3. Grow by adding mirror vdevs.
4. 3-way mirrors for critical data.
5. Recommended for VMs and databases.
writes → both disks; reads → either
Context & applicabilityCommon mistakes · platform/version boundaries
A healthy mirror state shows required members currently satisfy the vdev, but it does not show independent recovery, absence of latent corruption, or safe exposure to correlated failures.
Suspicious evidence: multiple mirror members share an unrecognized failure domain, one member repeatedly faults, resilver cannot complete, or mirror presence is treated as backup.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
zpool → mirror top-level vdev → replica selection → member device → checksum validation → alternate replica/repair if needed
Healthy evidence: mirror members and expected replica count are present, error counters are not increasing, recent scan evidence is clean, and workload reads/writes succeed.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Mirror vdev ≠ backup.
- Two-way mirror ≠ tolerance of every two-disk failure in a pool made of multiple two-way mirrors.
- Member ONLINE ≠ every block replica verified recently.
- Adding mirror members changes replica count for that vdev, not other top-level vdevs.
zpool status— mirror-N vdevszpool attach <pool> <disk> <newdisk>— add mirror sidezpool iostat -v 1— balanced I/O
ReferenceImportant terms & boundaries2 sections · depth on demand
Topology
A healthy mirror state shows required members currently satisfy the vdev, but it does not show independent recovery, absence of latent corruption, or safe exposure to correlated failures.
In depth
A mirror vdev keeps identical copies on two or more disks. Reads are balanced across members; a two-way mirror survives one disk loss, a three-way mirror two.
zpool attach tank ata-A ata-E # add a third disk to the mirror containing ata-A
zpool detach tank ata-E
zpool add tank mirror ata-F ata-G # add a new mirror vdev to the pool
Resilvering a mirror copies only allocated data from the partner, which keeps resilver times short. Mirrors are also the only vdev type that can be removed from a pool (zpool remove) in current OpenZFS.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in ZFS → Mirror VDEV. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://openzfs.github.io/openzfs-docs/ · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
ZFS → Mirror VDEV ZFS map
Fast topology, capacity, integrity and proof boundaries for ZFS → Mirror VDEV.
| ZFS boundary | What to verify | Proof limit |
|---|---|---|
| Identity / topology | Pool GUID/name, dataset/zvol, top-level vdev class, leaf-device identity and effective properties | Object presence alone does not prove integrity, performance or recovery |
| Capacity / protection | Pool free space, quotas/reservations, snapshot retention, redundancy and active scrub/resilver state | Free space or ONLINE state at one layer does not prove end-to-end health |
| Failure boundary | A healthy mirror state proves required members currently satisfy the vdev; it does not prove independent recovery, absence of latent corruption, or safe exposure to correlated failures. | Correlate ZFS evidence with both workload and lower device/path evidence |
| Acceptance | Healthy evidence: mirror members and expected replica count are present, error counters are not increasing, recent scan evidence is clean, and workload reads/writes succeed. | Close only after original workload plus checksum/read-back/recovery verification succeeds |