Information and announcements from Program Managers, Product Managers, Developers and Testers in the Microsoft Virtualization team.
In our recent conversation with customers about Hyper-V Replica, the questions that came up from a few customers was –
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.
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
Enable-VMReplication –VMName SQLDB_MyApplication –ReplicaServerName ReplicaServer.Contoso.com –ReplicaServerPort 80 –AuthenticationType Kerberos
Then export the Initial Replica using the following command-let
Start-VMInitialReplication –VMName SQLDB_MyApplication –DestinationPath F:\VirtualMachineData\
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.
Import-VMInitialReplication –VMName SQLDB_Application_Payroll -Path D:\VirtualMachineData\ SQLDB_MyApplication_A60B7520-724D-4708-8C09-56F6438930D9
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.
This Steps Very good and Clear Thanks IT Chief Hayat Holding