In server-to-server storage replication, Win 2016 replicates its storage with another instance of Win 2016.
Recommended Setup: Win 2016 servers and its Storage must be located in separate physical sites.
| Storage Replica Pre-requisites | |
| Software Requirements: | |
| OS Type | Windows Server 2016 Datacenter Edition |
| Features Required on Both Server | Storage Replica, File Server |
Ā
| Hardware requirements: | |
| Disk | Minimum 2 Disks are required / Server |
| Network Bandwidth | Greater than or equal 1GB NIC |
| Server Memory And Core Requirement | Minimum ā 2GB and 2 CoresRecommended ā 4GB and 2 Cores |
| Identical Disk Size And Disk Sector Size | Disk size and Disk Sector of data disk on both servers must be identical(Same applies for log disk) |
Data Disk:
It is a disk where actual data is stored.
Log Disk:
It is a disk where it stores replicating data into log files. Once replication is complete, it flushes the data into data disk.
Server-to-Server Storage Replication Block Diagram:

Step by Step configuration for Storage Replication between the Servers
| Steps | Power shell cmd | Description |
| Ā
1. Ā |
Enabling Powershell-Remoting | Allow remote powershell sessions on computers by enabling PowerShell-Remoting cmdlet on both servers. |
| Set-Item wsman:\localhost\client\trustedhosts * |
Configure the Trusted Hosts setting in both server machines so the computers will trust each other. | |
| Ā
2. Ā |
$Servers = āSR2-AD1ā²,āSR2-AD2ā ForEach { Install-WindowsFeature -ComputerName $Server -Name Storage-Replica,FS-FileServer -IncludeManagementTools -restart } |
Install features āStorage Replica & File Serverā using Windows Powershell console by executing below cmdlet. Note: After restart verify features are installed in both servers. |
|
3. |
Test-SRTopology -SourceComputerName SR2-AD1 -SourceVolumeName e: -SourceLogVolumeName f: -DestinationComputerName SR2-AD2 -DestinationVolumeName e: -DestinationLogVolumeName f: -DurationInMinutes 1 -ResultPath c:\ |
a. EstablishāTest-SRTopologyā cmdlet to determine our source and destination node meet all the Storage replica requirements. b. Examine the Test-SRTopologyReport.html report in āc:\ā to ensure our configured nodes that meet all storage replica requirements. |
|
4. |
New-SRPartnership -SourceComputerName SR2-AD1 -SourceRGName rg01 -SourceVolumeName e: -SourceLogVolumeName f: -DestinationComputerName SR2-AD2 -DestinationRGName rg02 -DestinationVolumeName e: -DestinationLogVolumeName f: |
Establish replication partnership in between the servers using the cmdlet directly on source node after Storage Replica requirements are achieved. |
| Ā
5. |
Get-SRGroup Get-SRPartnership (Get-SRGroup -Computername SR2-AD1).replicas |
To know replication state between servers by executing this cmdlet. |
|
6. |
Get-WinEvent -ProviderName Microsoft-Windows-StorageReplica -max 20 | To determine the replication status, run the cmdlet on source server and examine or ensure event idās 5015, 5002, 5004, 1237, 5001, and 2200 are displayed. |
|
7. |
(Get-SRGroup -ComputerName SR2-AD2). Replicas | Select-Object numofbytesremaining |
Server to Server storage replica completion is verified by 2 ways, 1. If this cmdlet gives the output as 0, Storage Replication is successful. |
| Get-WinEvent -ProviderName Microsoft-Windows-StorageReplica | Where-Object {$_.ID -eq ā1215ā} | fl |
2. The event ID ā1215ā states the number of copied bytes and the time taken and block copy completed status. | |
| Ā
8. Ā |
Get-SRPartnership | Remove-SRPartnership |
Removing the Replication Partner and Group, a) Remove Replication partnership only on the Source Server using the cmdlet, |
| Get-SRGroup | Remove-SRGroup |
b) After removing the replication partner, remove the replication group by executing the cmdlet on the source and Destination server. |
Ā
![How to configure Server to server storage replication [using Win Server 2016]](/_next/image?url=https%3A%2F%2Fcdn.aziro.com%2Fmedia%2FM_Sys_Technologies_2019_Tech_Predictions_768x508_2_700x463_17_ca03cd092a.png&w=3840&q=75)