Avatar of NAZ1000
NAZ1000
Flag for United Kingdom of Great Britain and Northern Ireland asked on

Restoring a HyperV VM from backup or replica

Have a primary HyperV Server and replica server. One of the Primary VMs keeps failing backup but is running fine. Have traced to an issue with the checkpoints but am unable to delete them which is probably due to the problem - even if i create a new checkpoint when I try to delete I get catastrophic failure.
I can export the replica VM fine.
Should I run some powershell to delete all the checkpoints and recreate (if so which ?).
Or turn of the Primary VM and import the exported replica into a new VM and delete old once the new VM starts successfully ?
Or turn off the Primary, do a planned failover, and then somehow replicate back to primary (seems longer winded)

Thank you !


PowershellWindows Server 2016Windows Server 2012* Volume Snapshot Service (VSS)Hyper-V

Avatar of undefined
Last Comment
arnold

8/22/2022 - Mon
arnold

Which checkpoint/s are you deleting and in what sequence?
What is your backup solution that you are using?
Which checkpoints are you deleting, from oldest to newest or from newest to oldest?
The process is involved and time consuming to consolidate all the checkpoints deletion.

Consider using wbadmin to backup from within the VM filesystem level
Create a clone for just in-case.
Then trigger the deletion of checkpoint and all subsequent ones.
And let it take as long as it needs to.



https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/user-guide/checkpoints#:~:text=To%20cleanly%20delete%20a%20checkpoint%3A%201%20In%20Hyper-V,is%20the%20correct%20checkpoint%2C%20and%20then%20click%20Delete.
NAZ1000

ASKER
Thank you.

The backup from within the Erroneous VM works fine - again pointing me to the checkpoints being the fault.

Any checkpoints i try to delete gives error (older / recent / or even immediately just created ).

So Ill backup from within the VM - import this into a new VM to see if it works (with the old turned off) - and then just delete the old one with its data files ?
arnold

Did you try the delete checkpoint and all subsequent?

What is the error? What is the prioritization of resources. I.e. During the checkpoint consolidation, the delay to storage Is what leads to the failure.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
NAZ1000

ASKER
When deleting checkpoint i get following error pic.jpg - cannot delete checkpoint subtree containing recovery checkpoint


ASKER CERTIFIED SOLUTION
arnold

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.