Pcornel
Storage · Snapshots

Redirect-on-Write

Cheat sheet · https://pcornel.dk/topic.php?topic=4221

Back to the Topic

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.

Remember

  • 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.

First 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

Commands

zfs list -o name,used,usedbysnapshots

Verify in this order

write → new location; snapshot keeps old pointers

Where it usually breaks

First mismatch in source consistency → capture/journal → transport → repository/replica → catalog/checkpoint → restore/failover read-back; preserve identity/pre-state before mutation.

Snapshots → Redirect-on-Write proof map

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

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4221

Confirmation

Confirm action

Continue?