Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

Redirect-on-Write

Direct answer

Redirect-on-write is a snapshot method where new writes go to fresh blocks while the snapshot keeps pointing at the old ones. There is no extra copy on write, so snapshot overhead stays low, but metadata integrity becomes critical.

When to use this

Use it when the storage-protection question has been narrowed to Snapshots → Redirect-on-Write. Preserve object identity, timestamps, dependency state and the newest authoritative data before changing configuration, deleting snapshot state, resynchronizing or changing replication ownership.

First 30 seconds

1. Redirect-on-write writes new data elsewhere and keeps old blocks.

2. No extra copy on write — lower overhead.

3. Used by ZFS, Btrfs, NetApp, many arrays.

4. Deleting snapshots frees blocks.

5. Fragmentation over time.

Operational verification

write → new location; snapshot keeps old pointers

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Failure and recovery traps

Successful redirected writes show new active mappings were committed; they do not show snapshot independence, application consistency or sufficient future capacity.

Platform / version applicability
Data protection and recovery
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformData protection and recovery
Scope / prerequisiteUse it when the storage-protection question has been narrowed to Snapshots → Redirect-on-Write. Preserve object identit…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification path Verify boundary

write request → allocation → new block write → metadata pointer update → old block retained → snapshot/current read path

Evidence references

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.

observation · 1
Key points
  • Redirect-on-write ≠ copy-before-overwrite.
  • Metadata integrity is critical to both active and snapshot views.
  • Free-capacity pressure can still threaten writes.
  • RoW snapshot ≠ immutable off-system backup.
Key checks
  • zfs get written <ds>@<snap> — data written since snapshot (ZFS, redirect-on-write)
  • btrfs subvolume list -s <mount> — Btrfs snapshots
  • array snapshot reserve — array view
ReferenceImportant terms & boundaries3 sections · depth on demand

Scope and what the checks show

Successful redirected writes show new active mappings were committed; they do not show snapshot independence, application consistency or sufficient future capacity.

In depth

Redirect-on-write: new data goes to new blocks; old blocks stay for the snapshot

With redirect-on-write (ROW), the file system never overwrites a block in place. A change is written to a free location and the metadata pointer is updated. A snapshot just keeps the old pointers. Nothing is copied when data changes, unlike copy-on-write snapshots, where the old block is first copied to a snapshot area.

ZFS as the example

zfsconcepts(7) says a snapshot is a read-only copy that is created very quickly and initially uses no additional space in the pool. As the active dataset changes, the snapshot holds the data the dataset no longer shares, so it grows. Clones are writable datasets made from snapshots that also start with no extra space, and the origin snapshot cannot be destroyed while a clone depends on it.

# zfs snapshot tank/vm@before
# zfs list -o name,used,refer tank/vm tank/vm@before
NAME            USED   REFER
tank/vm         412G   412G
tank/vm@before     0B   412G
# (one day of VM writes later)
# zfs list -o name,used tank/vm@before
NAME            USED
tank/vm@before  18.4G

COW versus ROW

AspectCopy-on-write (classic LVM)Redirect-on-write (ZFS, Btrfs, LVM thin, many arrays)
Write after snapshotRead old block, copy it, write newWrite new block, update pointer
Many snapshotsEach may need a copyLittle extra cost per snapshot
Snapshot deletionDiscard the COW areaFree blocks no longer referenced
Long-term effectOrigin layout unchangedFragmentation can grow over time

Practical consequences

  • Keeping many snapshots is cheap in I/O, but not in space: every changed block stays allocated until all snapshots that reference it are gone.
  • Deleting old snapshots is the main way to reclaim space on ROW systems.
  • "Deleting files frees no space" on a ROW file system usually means snapshots still reference those blocks.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Quick reference

With redirect-on-write (RoW), new writes go to new locations and the metadata is updated; the original blocks stay where they are for the snapshot. There is no copy on write, so snapshots cost little performance. ZFS, Btrfs, NetApp WAFL and most modern arrays work this way.

The cost moves to space and fragmentation: blocks referenced by old snapshots cannot be freed until those snapshots are deleted. zfs list -o name,used,usedbysnapshots shows how much space snapshots hold.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docData protection and recovery current

Authoritative/upstream documentation reviewed for bounded claims in Snapshots → Redirect-on-Write. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://openzfs.github.io/openzfs-docs/man/master/8/zfs-snapshot.8.html · confidence 94%
Terminology layer

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.

Aliases that resolve here
redirect-on-writeredirect-on-writesnapshots redirect-on-write
Embedded reference data

Quick lookup tables

Snapshots → Redirect-on-Write proof map

Fast identity, dependency, failure-boundary and acceptance checks for Snapshots → Redirect-on-Write.

Storage boundaryWhat to verifyProof limit
Identity / stateCorrect object, source/target or snapshot point and same-window timestampsInventory alone does not prove data correctness
Dependency pathSnapshot mapping/chain, active write target, capacity and backing storageA healthy adjacent component is not end-to-end proof
Failure boundarySuccessful redirected writes prove new active mappings were committed; they do not prove snapshot independence, application consistency or sufficient future capacity.Correlate evidence for the same operation and time window
AcceptanceHealthy evidence for Redirect-on-Write: the expected point-in-time mapping and dependency chain are intact, required backing data is readable, and the intended snapshot lifecycle action completes with correct current-data read-back.Close only after original read-back/recovery test and protection-state verification
Confirmation

Confirm action

Continue?