What is the ‘Replication State’ and what are the values?

Replication state shows the current state of the replicating VM. It indicates whether the VM is being replicated, whether initial replication is pending etc.

ReplicationState can be queried from:

  • UI – As seen in the above picture
  • PowerShell – Using the Measure-VMReplication cmdlet.
  • WMI – From Msvm_ComputerSystemclass where      ReplicationState is a property

The table below captures the states as seen in WMI, UI and PowerShell.

WMI

UI

PowerShell

Notes

0

Not enabled

NA

VM is not   enabled for replication.

1

Pending Initial   Replication

ReadyForInitialReplication

Replication relationship has been created but Initial Replication   has not been initiated. This is seen on the primary VM only.

2

Pending Initial   Replication

WaitingForInitialReplication

The replica VM enters this state when a replication   relationship has been created but Initial   Replication has not been initiated (or) Initial Replication   is in progress.

The primary VM enters this state when Initial Replication   is in progress.

3

Replication Enabled

Replicating

This state (on  both the primary and replica VM)   indicates that the replication is ‘Normal’.

4

Prepared for planned   failover

SyncedReplicationComplete

This state is applicable only for the primary VM. It indicates   that Planned   Failover is complete and that the VM is locked from powering   up.

5

Failover Complete

FailOverWaitingCompletion

Failover has been initiated on the   replica VM but has not been completed. The Failover operation is considered   to be complete only when the VM is either reverse replicated (or) when   additional recovery points are removed.

6

Failover Complete

FailedOver

The replica VM enters this state once the Failover   operation has been completed.

7

Replication Paused

Suspended

The VM enters this state when replication is Paused. This   state is applicable on both the primary and replica VM

8

Replication Error

Error

This state is applicable on both the primary and replica VM   and indicates that replication is not occurring on either VM. Usually   administrator intervention is required to restore replication.

9

Resynchronization required

WaitingForStartResynchronize The primary VM enters this state when it needs to be   resynchronized.

10

Resynchronizing

Resynchronizing

Resynchronization has been initiated on the primary VM.

11

Resynchronize Suspended

ResynchronizeSuspended

If the primary VM suspends the resynchronization

Marcos Nogueira

With more than 18 years experience in Datacenter Architectures, Marcos Nogueira is currently working as a Principal Cloud Solution Architect. He is an expert in Private and Hybrid Cloud, with a focus on Microsoft Azure, Virtualization and System Center. He has worked in several industries, including Aerospace, Transportation, Energy, Manufacturing, Financial Services, Government, Health Care, Telecoms, IT Services, and Gas & Oil in different countries and continents. Marcos was a Canadian MVP in System Center Cloud & Datacenter Managenment and he has +14 years as Microsoft Certified, with more than 100+ certifications (MCT, MCSE, and MCITP, among others). Marcos is also certified in VMware, CompTIA and ITIL v3. He assisted Microsoft in the development of workshops and special events on Private & Hybrid Cloud, Azure, System Center, Windows Server, Hyper-V and as a speaker at several Microsoft TechEd/Ignite and communities events around the world.

Leave a Reply

Your email address will not be published. Required fields are marked *