How to Configure Windows Server Storage Replica for Synchronous Disaster Recovery

The Disaster Recovery Gap

In traditional enterprise IT, disaster recovery (DR) is often achieved through nightly backups. If a massive fire destroys the primary data center in New York at 3:00 PM, the IT team must restore the servers in the New Jersey backup facility using last night’s backup tapes. This creates a massive problem: every single file, database transaction, and email created between 8:00 AM and 3:00 PM is permanently lost. This is known as the Recovery Point Objective (RPO) gap.

To achieve a true RPO of Zero (meaning absolutely zero data loss in a disaster), enterprise storage arrays (like EMC or NetApp) utilize synchronous replication at the hardware level. However, these SAN appliances cost hundreds of thousands of dollars.

To democratize disaster recovery, Microsoft introduced Storage Replica in Windows Server. Storage Replica performs block-level, synchronous replication of any volume to another server over a standard network connection. When a user saves a file on the New York server, the Windows kernel intercepts the write, transmits the block to the New Jersey server, waits for New Jersey to confirm it saved the block, and then tells the user the file is saved. If New York burns down a millisecond later, an exact, mathematically perfect replica exists in New Jersey.

Step 1: Planning the Architecture and Requirements

Storage Replica has strict, non-negotiable requirements:

  • Active Directory: Both servers must be joined to the same Active Directory forest.
  • Identical Volumes: You cannot replicate a 2TB drive to a 1TB drive. The destination Data Volume must be exactly the same size or larger than the source.
  • Log Volumes: Storage Replica requires a dedicated, extremely fast SSD/NVMe volume on both the source and destination servers exclusively for writing replication logs. (Do not put the log on the same drive as the data, or performance will collapse).
  • Network Latency: For Synchronous replication (zero data loss), the round-trip network latency between the two servers must be less than 5 milliseconds. If your DR site is across the country (50ms latency), you must use Asynchronous replication, which tolerates latency but introduces a small RPO gap.

Step 2: Installing the Storage Replica Role

Log into both the Source server (SRV1) and the Destination server (SRV2).

Open an elevated PowerShell prompt on both and install the feature:

Install-WindowsFeature Storage-Replica -IncludeManagementTools -Restart

Step 3: Testing the Topology (Crucial)

Before you actually build the replica, you must mathematically prove that your network and hard drives can handle the extreme I/O load of synchronous replication.

Microsoft provides an incredibly powerful diagnostic tool. On the Source server, run the Test-SRTopology command. You must define the source data drive (D:), the source log drive (E:), and the destination drives on SRV2.

Test-SRTopology -SourceComputerName SRV1 -SourceVolumeName D: -SourceLogVolumeName E: -DestinationComputerName SRV2 -DestinationVolumeName D: -DestinationLogVolumeName E: -DurationInMinutes 10 -ResultPath C:\SR_Report

This will aggressively stress-test the connection for 10 minutes. When finished, open the HTML report located in C:\SR_Report. It will explicitly tell you if your network latency is low enough, and if your SSD log drives are fast enough, to support synchronous replication.

Step 4: Establishing the Partnership

If the topology test passes, you can permanently bind the two servers together.

Run the following command on the Source server (SRV1):

New-SRPartnership -SourceComputerName SRV1 -SourceRGName RG01 -SourceVolumeName D: -SourceLogVolumeName E: -DestinationComputerName SRV2 -DestinationRGName RG02 -DestinationVolumeName D: -DestinationLogVolumeName E: -LogSizeInBytes 8GB

The moment you execute this command, three things happen:

  1. Windows Server immediately locks the D: drive on the Destination server (SRV2). It will literally disappear from Windows Explorer on SRV2. This ensures nobody can accidentally write conflicting data to the standby server.
  2. The Initial Block Sync begins. The source server reads every single block on its D: drive and transmits it across the network to SRV2. For a 10TB drive, this initial sync could take days.
  3. Once the initial sync completes, the servers enter continuous replication mode.

Step 5: Monitoring and Failing Over

To check the status of the replication, you interrogate the Replication Group (RG) on the source server:

Get-SRGroup

Look at the ReplicationStatus property. It should say ContinuouslyReplicating.

If the primary data center burns down, SRV1 goes offline. To execute a disaster recovery failover, you log into the surviving Destination server (SRV2) and forcefully seize the primary role.

Set-SRPartnership -NewSourceComputerName SRV2 -SourceRGName RG02 -DestinationComputerName SRV1 -DestinationRGName RG01

Because SRV1 is dead, this command might hang or require force flags. Once successful, the D: drive on SRV2 will instantly unlock and appear in Windows Explorer. You can point your users to SRV2, knowing with absolute certainty that every single file is perfectly intact up to the millisecond of the failure.

Conclusion

Windows Server Storage Replica destroys the financial barrier to enterprise-grade disaster recovery. By leveraging dedicated SSD log volumes and high-speed LAN/WAN links, IT administrators can achieve synchronous, block-level replication using standard commodity servers, guaranteeing zero data loss for their most critical corporate databases and file shares.

RELATED POSTS

  • How to Setup a RADIUS Server for Wi-Fi Authentication in Windows Server
  • How to Clear the Windows RSAT (Remote Server Administration Tools) Cache via PowerShell
  • How to Setup a SSTP (Secure Socket Tunneling Protocol) VPN in Windows Server
  • How to Change the Maximum Transmission Unit (MTU) Size in Windows Server
  • How to Deploy Software Packages Using Windows Group Policy
  • Get the best tech tips delivered straight to your inbox.

    Join thousands of readers mastering Apple, Google, Microsoft, and Linux.