Pcornel
Virtualization · Disaster Recovery

Replication

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

Back to the Topic

Answer

Replication can be synchronous or asynchronous, continuous or periodic, host/application/storage based. Its key properties are consistency, lag, ordering, failure handling and whether the secondary is isolated enough from source errors.

Remember

  • Replication ≠ backup; source deletion/corruption may replicate.
  • Replica connected ≠ caught up.
  • Zero transport errors ≠ application-consistent replica.
  • Synchronous replication can reduce data loss but introduces latency/availability trade-offs.

First checks

  • Get-VMReplication — replication state
  • pvesr status — Proxmox
  • zfs list -t snapshot | grep __replicate — ZFS replication snapshots

Verify in this order

source changes → replicated → target copy

Where it usually breaks

First mismatch in guest block/filesystem view → virtual controller/disk → hypervisor mapping → datastore/path → storage backend → durability/read-back; preserve identity/native error/pre-state before mutation.

Disaster Recovery → Replication reference map

BoundaryMeaningEvidence limit
CaptureChanges selected at sourceLayer-specific
TransportUpdates reach secondaryLag may accumulate
ApplySecondary incorporates changesOrder/consistency matter
ActivationSecondary serves workloadRequires dependencies

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

Confirmation

Confirm action

Continue?