Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

Copy-on-Write Snapshot

Direct answer

On the first post-snapshot write to an existing location, the original contents are copied into snapshot-preserved space before the new data replaces the active block. Reads choose the active or preserved copy according to snapshot mapping.

When to use this

Use it when the storage-protection question has been narrowed to Snapshots → Copy-on-Write Snapshot. 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. Copy-on-write snapshots copy old data before overwriting.

2. Extra write per first change (classic LVM, VSS).

3. Snapshot area can fill and invalidate.

4. Performance impact on writes.

5. Keep short-lived.

Operational verification

write → copy old block to snapshot area → overwrite

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

A valid CoW mapping shows the original version was preserved for that overwritten region, but it does not show every block, application transaction or backend device is healthy.

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 → Copy-on-Write Snapshot. Preserve object id…
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 → snapshot map lookup → preserve original block → active overwrite → snapshot pointer → backend media

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
  • Copy-on-write ≠ redirect-on-write.
  • First-write overhead can be higher than later overwrites.
  • Snapshot reserve exhaustion can invalidate protection.
  • CoW snapshot ≠ independent backup.
Key checks
  • lvs -o lv_name,origin,data_percent — classic LVM COW fill
  • vssadmin list shadowstorage — VSS diff area
  • zfs list -t snapshot — ZFS (COW filesystem)
ReferenceImportant terms & boundaries3 sections · depth on demand

Scope and what the checks show

A valid CoW mapping shows the original version was preserved for that overwritten region, but it does not show every block, application transaction or backend device is healthy.

In depth

Copy-on-write: the first change to a block copies the old version aside

With copy-on-write (COW), a snapshot starts empty. On the first write to an origin block after the snapshot, the old content is copied to the snapshot area, and then the origin is overwritten. Reads from the snapshot come from the copied blocks, or from the unchanged origin.

Classic LVM snapshots are COW

lvcreate(8) describes two snapshot kinds. A COW snapshot is created when a size is given with -L; that space comes from the VG and holds the copied blocks. The manual notes that often 20 % of the origin is enough. A thin snapshot is created from a thin origin without a size and shares blocks in the thin pool. --monitor lets dmeventd extend a COW snapshot automatically.

# lvcreate -s -l 20%ORIGIN -n data_snap vg0/data
# lvs -o lv_name,origin,lv_size,data_percent vg0
  LV        Origin LSize   Data%
  data             500.00g
  data_snap data   100.00g 3.42
# mount -o ro /dev/vg0/data_snap /mnt/snap      # back up from here
# lvremove vg0/data_snap

Data% on a COW snapshot is how full its copy area is. If it reaches 100 %, the snapshot becomes unusable.

Performance effect

PhaseCost
CreateNear instant
First write per block after creationExtra read and write (copy, then write)
Several COW snapshots of one originEach write may copy to each snapshot
DeleteCheap

COW versus redirect-on-write

ZFS, Btrfs and LVM thin snapshots write new data to new locations (redirect-on-write) instead of copying old blocks, so they avoid the double write. Prefer thin snapshots over classic COW snapshots for anything kept longer than a backup run.

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 copy-on-write (CoW), the first write to a block after the snapshot copies the original block to the snapshot area, then overwrites the live block. Each first write therefore costs one read and two writes. LVM classic snapshots and VMware's older VMFS snapshots behave this way.

Impact: write latency rises while snapshots exist, and an LVM CoW snapshot becomes invalid if its reserved space (-L) fills up. Check with lvs -o lv_name,data_percent.

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 → Copy-on-Write Snapshot. 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
copy-on-write snapshotcopy-on-write-snapshotsnapshots copy-on-write snapshot
Embedded reference data

Quick lookup tables

Snapshots → Copy-on-Write Snapshot proof map

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

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 boundaryA valid CoW mapping proves the original version was preserved for that overwritten region; it does not prove every block, application transaction or backend device is healthy.Correlate evidence for the same operation and time window
AcceptanceHealthy evidence for Copy-on-Write Snapshot: 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?