question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ResilientChangeTrackingEnabled = true has no effect

See original GitHub issue

If RCT is not enabled, it can’t be enabled using the ResilientChangeTrackingEnabled property:

using var v = VirtualDisk.Open(@"F:\Hyper-V\Windows XP\Virtual Hard Disks\Windows XP.vhdx", false, false, true);
v.ResilientChangeTrackingEnabled = false;

Does nothing (And it does not throw any error).

From a C++ program, invoking the native function works:

HANDLE vhdHandle;
_VIRTUAL_STORAGE_TYPE storageType{};
DWORD res = OpenVirtualDisk(&storageType, L"F:\\Hyper-V\\Windows XP\\Virtual Hard Disks\\Windows XP.vhdx",
        VIRTUAL_DISK_ACCESS_ALL, OPEN_VIRTUAL_DISK_FLAG_NONE, NULL, &vhdHandle);

SET_VIRTUAL_DISK_INFO setDiskInfo{};
setDiskInfo.ChangeTrackingEnabled = true;
setDiskInfo.Version = SET_VIRTUAL_DISK_INFO_CHANGE_TRACKING_STATE;
SetVirtualDiskInformation(vhdHandle, &setDiskInfo);

Please note that ResilientChangeTrackingEnabled = false (disabling RCT) actually works 😅, so RCT can be disabled, but not enabled.

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dahallcommented, Dec 23, 2022

This is now fixed

0reactions
dahallcommented, Dec 21, 2022

Yep. Under 32-bit builds the structure aligns correctly so setting the structure field to 1 works. I’ll fix it so it works on both 32 and 64 bit. Thanks for your help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows Server 2019 Hyper-V VM I/O Performance Problem
My server setup is similar to the original, with 2019 Windows Server ... the issue is that Resilient Changed Tracking (RCT) gets enabled...
Read more >
HyperV: How to enable Resilient change tracking for ...
Hello I am trying to create a Net 5.0 application for Hyper-v Backup and I would like to use Resilient Change Tracking for...
Read more >
Virtual machine backups with resilient change tracking (RCT)
For Microsoft Windows Server 2016 or later versions, the resilient change tracking (RCT) feature is used to back up virtual machines (VMs).
Read more >
What Is Resilient Change Tracking in Microsoft Hyper-V?
The resilient change tracking references Hyper-V's ability to be able to keep track of changes even if we have a hard crash or...
Read more >
Dell EMC Avamar for Hyper-V User Guide
When the Change CSV ownership option is not selected. ... Select Resilient Change Tracking (RCT) Configuration to use RCT during backup operations.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found