hyper-v replication

Fred Flintstone 1 Reputation point
2020-12-17T14:04:47.573+00:00

we have the following setup:

windows server 2019 datacenter
hyper-v installed
7 RAID partitions

4 VMs:

each VM have 4 VHDX files each on different RAID partitions

We would like to setup replication to another server with the exact configuration with the VHDX file replicating to the same RAID partition:

HOST 1: HOST 2:

VM VHDX config: replication

RAID partition 1 drive D: VHDX file 1--------------------------------- >RAID partition 1 drive D: VHDX file 1
RAID partition 2 drive F: VHDX file 2---------------------------------->RAID partition 2 drive F: VHDX file 2
RAID partition 3 drive G: VHDX file 3--------------------------------->RAID partition 3 drive G: VHDX file 3
RAID partition 4 drive H: VHDX file 4--------------------------------->RAID partition 4 drive H: VHDX file 4

Is this possible with Hyper-v?

Windows for business Windows Client for IT Pros Storage high availability Virtualization and Hyper-V
0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. Fred Flintstone 1 Reputation point
    2020-12-17T17:51:30.177+00:00

    What I forget to mention is: the two host servers are in two different data centers in different states.

    0 comments No comments

  2. Mico Mi 1,936 Reputation points
    2020-12-18T06:59:32.17+00:00

    Hi,
    According to your description, you just need to enable replication of your VM, choose the VHDX file you want to replicate and then the location you want to sent.
    49431-image.png
    49423-image.png
    Here is the doc on how to set up Hyper-V replication:
    https://learn.microsoft.com/en-us/windows-server/virtualization/hyper-v/manage/set-up-hyper-v-replica

    What I forget to mention is: the two host servers are in two different data centers in different states.

    There is no problem if the two servers can communicate with each other.

    Thanks for your time!
    Best Regards,
    Mico Mi


    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  3. Fred Flintstone 1 Reputation point
    2020-12-19T19:27:07.377+00:00

    when i set that up, it replicates to one drive on the replication server. What i need is for each Virtual drive to map to one of four physical drives on the replication server.

    host server drive f:\vm-c.vhdx to replication server physical drive f:\vm-c.vhdx..

    host server drive g:\vm-d.vhdx to replication server physical drive g:\vm-d.vhdx..

    0 comments No comments

  4. Mico Mi 1,936 Reputation points
    2020-12-23T09:27:52.587+00:00

    Hi,
    I found another solution and hope it could help at your side:

    1. Create initial VM folder on primary host. VM-NAME
      Virtual Machines
      Virtual Hard Disks
      Snapshots
    2. When the VM is up and running, export it. This preservers the folder structure I've created.
    3. Copy the export to the replica server. Put it in the location I want it. I'll typically rename the top folder as VM-NAME.HVR (hyper-v replica).
    4. Import the VM replica on the replica server using the same ID and register in place.
    5. On the primary, set up replication to the secondary and specify "use a machine already on the target." HV finds the already-loaded replica and then verifies it's a match by a block-by-block compare. It still takes a bit of time but is faster than a copy and compare.

    (https://community.spiceworks.com/topic/2180870-hyper-v-move-replica-vm-to-single-location-quicker-without-copying)

    Thanks for your time!
    Best Regards,

    Mico Mi

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

  5. Czech, Frank 111 Reputation points
    2021-01-21T20:33:49.14+00:00

    I just saw this post. I will give it a try and let you know

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.