In our recent conversation with customers about Hyper-V Replica, the questions that came up from a few customers was –
- Is there a way to perform the Initial Replication (IR) for VMs without stressing our organizations internet bandwidth?
- Initial replication of our VMs take weeks to complete, is there a faster way to get the data across to our secondary datacenter?
The answer is “Yes”. Hyper-V Replica supports an option where you can transport the initial copy of your VM to the Replica site using an external storage medium – like a USB drive. This method of seeding the Replica site is known is Out-of-Band Initial Replication (OOB IR) and is the focus of this blog post.
OOB IR is especially helpful if you have a large amounts of data to be replicated and the datacenters are not connected using a very high speed network. As an example, it will take around 20 days to complete initial replication on 2 TB of data if the network link between the Primary site and Replica site is 10 Mbps.
The following steps walk you through the process of using OOB IR.
Steps to take on the Primary Site
- Connect your external storage medium (e.g. USB drive) to the Hyper-V Host where the VM is running. In the example below the USB drive on the Hyper-V Host is mounted under the drive letter F:\. If your Primary Server is a
- Standalone Hyper-V Host – ensure that you connect the external media directly to the Hyper V Host on which the virtual machine is hosted.
- Failover Hyper-V Cluster – ensure you connect the external medial directly to the Owner Node for the VM. The owner node for a VM can be identified through the Failover Cluster Manager MMC. For e.g. In the below screen shot the Owner Node for the SQLDB_MyApplication VM is HV-CLUS-01
- Send initial copy over the network
- Send initial copy using external media
- Use an existing virtual machine on the Replica server as the initial copy.
From this point onwards the changes that happen to the VM will be replicated over and will be applied on to the placeholder VM on the Replica site. These changes will be merged with the OOB IR data once it is imported at the replica site.
Note: For security of the data, it is recommended that the external storage media be encrypted using encryption technologies like BitLocker.
The same steps can be achieved using PowerShell:
First enable replication for the VM using the following command-let
Then export the Initial Replica using the following command-let
Steps to take on the Replica Site
- Once the external storage medium is received at the Replica site, request the site administrator to do one of the following
If your Replica Server is a
- Standalone Hyper-V Host – ensure that the external media is connected directly to the Hyper V Host or copy the data from the external media into a local folder on the Hyper V Host.
- Failover Hyper-V Cluster –ensure the external media is connected directly to the Owner Node of the replica VM or copy the data from the external media to cluster shared volume.
The same steps can be achieved using PowerShell
Copy the Initial Replica onto a local drive on the replica server (say D:\VirtualMachineData\) and then run the below command-let to import the initial replica.
Hyper V Replica offers one more method for Initial Replication that utilizes a backup copy of the VM to seed the replication, will cover that in our next blog post.