Hyper-V Replica
Cheat sheet · https://pcornel.dk/topic.php?topic=3341
Answer
Replica maintains an offline secondary VM copy by transferring changed virtual-disk data on a configured interval; failover activates a recovery copy and reverse replication can later re-establish direction.
Remember
- Replica is asynchronous, so replication health does not imply zero data loss at failover.
- Replica is distinct from Failover Clustering: one is DR replication, the other is HA orchestration.
- Replication Healthy does not prove a failover test or application recovery will succeed.
- Recovery points and application consistency depend on configuration and guest/workload behavior.
First checks
Get-VM— VMs and stateGet-VMHost— host settingsGet-VMSwitch— virtual switchesGet-VMNetworkAdapter -VMName <vm>— vNICs, switch, VLANGet-VMHardDiskDrive -VMName <vm>— attached disksGet-WinEvent -LogName Microsoft-Windows-Hyper-V-VMMS-Admin -MaxEvents 30— VMMS events
Verify in this order
primary VM changes → replicated to replica server → failover on demand
Where it usually breaks
First mismatch in host/cluster identity → management configuration → quorum/resource ownership → network/storage dependencies → VM/service runtime → guest/application verification; preserve identity/native error/pre-state before mutation.
Hyper-V → Hyper-V Replica reference map
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Replication relationship | Primary/replica association configured | Does not prove current sync |
| Replication health | Changes are transferring as observed | Does not imply zero RPO |
| Recovery point | Replica contains a selectable point | Does not prove application consistency |
| Failover test | Recovered VM/workload actually starts | Strongest DR validation evidence |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3341