Replica Stops When Expanding or Compacting a VHD or VHDX file, Windows Server 2012 Hyper-V Replica


Source Aug. 6, 2012John Savill | Windows IT Pro


Hyper-V Replica works by replicating write operations that are stored in transaction log files every five minutes to the replica server. 

An expand or compact action on a virtual hard disk (VHD) isn't a write operation and therefore doesn't replicate and will break the replication of the VHD. 

The only solution is to stop replication, then restart replication. 

In most organizations, compacting and expanding WHDs isn't a common operation, especially if dynamic VHDs are used; however, it's important to understand that if using Hyper-V Replica for a VM, any compact or expand operations will break the replication.

Below are some steps to "ease the pain":


If Recovery History is off, which means when setting up Hyper-V Replica you did not enable the option to keep additional point in time replica snapshots, do the following:

1.On the same VHD on recovery, do same operation to get the identical geometry.

2.Now do Resynchronization of the replica.

3.Replication should now work again (no Remove Replication is needed in this case).


If Recovery History is on, do the following:

1.Remove Replication on Primary.

2.Remove Replication on Recovery as well to let the merge happen for the snapshots.

3.On the same VHD on recovery, do same operation to get the identical geometry.

4.Re-setup Replication – use “Smart IR” (“Backup based IR”) – this will do an efficient synchronization of the VHDs and avoid copying over all the content again.


Adding a new VHD to a VM that needs to be replicated. The process above (the Recovery History on scenario) would also be used:

1.Copy over the VHD to the replica host and add it to the replica VM on correct IDE/SCSI Controller.

2.Remove Replication on both sides.

3.Re-setup Replication and do Smart IR (“Backup based IR”) – this will do an efficient synchronization of the VHDs.

Comments

  1. VHD repair software is available for free trial to repair corrupt vhd files and recover lost data from virtual hard disk .
    http://www.vhd.recoverydeletedfiles.com/ for free download Vhd repair tool

    ReplyDelete
  2. Better Virtual Machine Data Recovery software is available online which can get back deleted or lost data from Microsoft (VHD), Oracle (VDI) and VMware (VMDK) image files.It also performs recovery from virtual drives based on exFAT, NTFS, FAT16, and FAT32 file systems.

    Read more: http://www.softmagnat.com/virtual-machine-data-recovery.html

    ReplyDelete
  3. VHD is the file format of storing data over a virtual hard disk drive but it may get corrupt due to virus attacks, damaged storage media, hard disk crash, HDD partition damage etc. With VHD Recovery tool, you can perform quick and complete recovery of all types of files such as images, video & audio files, database files, documents, media files, archives etc. Using this tool. It supports both FAT and NTFS file systems on virtual hard disk (VHD) created using Microsoft’s virtualization solution.
    Read more:- http://www.restorevhd.com/


    ReplyDelete
  4. Another http://www.filesrecoverytools.com/vhd-data-recovery.html that can also can fix both FAT and NTFS file systems on virtual hard disk (VHD) created using Microsoft's virtualization solution. This software handles all issues related to accessibility or use of Windows Hyper-V VHD files easily.

    ReplyDelete
  5. I would like to suggest VHD Data Recovery Software which provides effective and quick solution to recover data from corrupt VHD, it provides free trial version to recover lost VHD files.It can deeply scan corrupted Virtual partition whether it is FAT based or NTFS and then repair fixed & dynamic vhd file corruption/damage issues with no harm.

    ReplyDelete

Post a Comment

Popular posts from this blog

Server Manager Refresh completed with one or more warning

Shrewsoft VPN client - can't open Access Manager

Hyper-V could not replicate changes for virtual machine as replication is suspended on the Replica server