Storage replication (storage replica) is a feature that comes with Windows Server 2016 that lets you replicate a volume to another server. To work the feature requires two volumes per server. The first for storing data and the second for logs.
Storage replica works on the principle Active / Passive. The data is accessible only from the source node, on the destination it is not possible to access the same disk connect locally on the server.
It is possible to reverse the direction of replication in case of failover.
There are two modes of replication:
- Synchronous: when writing a data it is done simultaneously on both servers, the acknowledgment of the writing of the data must be made on both servers.
- Asynchronous: the data is initially written to the source server and then to the replication server.
The Storage Replication feature does not have an administrative console, the configuration is done using PowerShell or Admin Center. If you are using the SR as part of a cluste, you can do the configuration using the Failover Clustering Console.
To put in the functionality it is necessary:
- Two Windows 2016/2019 servers with:
- Fixed ip address
- Member of the same domain
- A partition for the data
- A partition for logs in production predict 10GB
- Make sure the hosts contact each other by their NETBIOS name
- Open Port Communication 445/5445
In order to ease server administration for role installation, I added both servers in the domain controller’s server manager.