Host-based backup of Microsoft Hyper-V VMs.
Post Reply
oidenburga
Novice
Posts: 6
Liked: 2 times
Joined: Aug 06, 2019 8:57 am
Full Name: Lukas
Contact:

Veeam - DCs restore - 0xc00002e2

Post by oidenburga »

Hi;

First, english is not my mothers tongue.

I have a big problem with restoring an Active Directory enviroment.

I want to restore two domain-controller, but i get an 0xc00002e2 error at boot.

Each DC has his own Backup-Job with Application-Aware Processing enabled.

I testet different backup points, also the latest FULL Backup.

Why do i get this error?

OS: Server 2012R2
Hypervisor: HYPER-V
Veeam is on latest build

What have i checked?:

Code: Select all

You need to boot the machine in "directory services restore mode", login with the local Administrator and the password you had to set when promoting the DC.
Move all the *.log files inside c:\windows\NTDS\ to a folder elsewhere.
Try to reboot in normal mode.

If it's not working go back in DSRM,
repeat the moving of any log files in c:\windows\NTDS\,
Open up a CMD (with Run as admin),
Enter the command "esentutl /p c:\windows\NTDS\ntds.dit",
Enter the command "ntdsutil",
In the ntdsutil prompt now enter the following commands (no quotes):
"activate instance ntds"
"Files"
"Compact to c:\temp\"
"quit"
"quit"

Now move the c:\windows\NTDS\ntds.dit file to a save folder elsewhere.
Copy the c:\temp\ntds.dit file to c:\windows\NTDS\
Again remove all the .LOG files inside c:\windows\NTDS
Reboot normally.
Best regards
Lukas
foggy
Veeam Software
Posts: 21164
Liked: 2148 times
Joined: Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson
Contact:

Re: Veeam - DCs restore - 0xc00002e2

Post by foggy »

Hi Lukas, have you reviewed the KB article describing domain controller recovery peculiarities in detail?
oidenburga
Novice
Posts: 6
Liked: 2 times
Joined: Aug 06, 2019 8:57 am
Full Name: Lukas
Contact:

Re: Veeam - DCs restore - 0xc00002e2

Post by oidenburga » 1 person likes this post

Yes, but at the first boot, a BSOD appears with 0xc00002e2
oidenburga
Novice
Posts: 6
Liked: 2 times
Joined: Aug 06, 2019 8:57 am
Full Name: Lukas
Contact:

Re: Veeam - DCs restore - 0xc00002e2

Post by oidenburga » 1 person likes this post

Now the DC runs, i extractet the VHD from the VBK, now it starts.

But why is the backup corrupt?
foggy
Veeam Software
Posts: 21164
Liked: 2148 times
Joined: Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson
Contact:

Re: Veeam - DCs restore - 0xc00002e2

Post by foggy »

Make sure you have application-aware image processing enabled in the job settings. For further investigation, please contact our technical support directly.
oidenburga
Novice
Posts: 6
Liked: 2 times
Joined: Aug 06, 2019 8:57 am
Full Name: Lukas
Contact:

Re: Veeam - DCs restore - 0xc00002e2

Post by oidenburga »

It is active.
Ok.
oidenburga
Novice
Posts: 6
Liked: 2 times
Joined: Aug 06, 2019 8:57 am
Full Name: Lukas
Contact:

Re: Veeam - DCs restore - 0xc00002e2

Post by oidenburga »

I only have the community version, so i cant open a case.
foggy
Veeam Software
Posts: 21164
Liked: 2148 times
Joined: Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson
Contact:

Re: Veeam - DCs restore - 0xc00002e2

Post by foggy »

Well, you can but it will be handled on the best effort basis.
BLH
Lurker
Posts: 2
Liked: 1 time
Joined: Jul 07, 2023 4:44 pm
Full Name: Barry Hines
Contact:

Re: Veeam - DCs restore - 0xc00002e2

Post by BLH » 1 person likes this post

I know this is an old thread but I came across it while trying to find a solution to my issue. After doing a Full Restore of the production server to a backup server, I also got the 0xc00002e2 error and found that the NTDS.dit file was trashed on the restored server.

I did a full restore several times, from more than one backup source, and always had the same issue. During the last restore processes I accidently chose to do an Instant Recovery and was pleasantly surprised to find that the server booted just fine and the NTDS.dit file wasn't corrupted.

I'm currently in the process of Migrating To Production so I don't know if that process was successful or not, but I wanted to post this info before I forgot to do it, in case someone else in my position is getting the 0xc00002e2 error - try doing an Instant Recovery!!

I'm using Veeam Backup & Replication 10 (10.0.0.4461 P2) Community Edition which I plan to upgrade soon, hoping that'll eliminate the issue.
Gostev
Chief Product Officer
Posts: 32217
Liked: 7583 times
Joined: Jan 01, 2006 1:01 am
Location: Baar, Switzerland
Contact:

Re: Veeam - DCs restore - 0xc00002e2

Post by Gostev »

I see only one possible explanation for different results of powering on a VM from bit-identical virtual disk: the production storage that was the target for full restore is misbehaving and corrupting the restored virtual disk data. While in case of instant recovery, the VM runs directly from backup storage.
Andreas Neufert
VP, Product Management
Posts: 7200
Liked: 1547 times
Joined: May 04, 2011 8:36 am
Full Name: Andreas Neufert
Location: Germany
Contact:

Re: Veeam - DCs restore - 0xc00002e2

Post by Andreas Neufert »

One additional point.
For correct disaster recovery, you need to boot the domain controller WITH network enabled and don´t touch the console (have a look at the monitor and click or use any keyboard strokes) until it has booted multiple times in AD recovery mode.

If you enable the network, boot and do not touch the screen, then we automatically set the VM and AD in nonauthoritative restore mode (if you backed up with Guest Processing). If you interrupt the process by clicking into the console this process get´s interrupted at a maybe undefined state (not completed).
BLH
Lurker
Posts: 2
Liked: 1 time
Joined: Jul 07, 2023 4:44 pm
Full Name: Barry Hines
Contact:

Re: Veeam - DCs restore - 0xc00002e2

Post by BLH »

I wanted to add some more info... After the successful Instant Recovery I chose to do a Migrate To Production after which the server continued working just fine. I think this proves that my server HD system isn't corrupting anything.

To test what Andreas said I did another full restore, using the identical process to what I'd done in the past, except I chose the option to power on the VM after the restore finished and I waited 20-40 minutes before I connected to the server and attempted to logon to the console. It worked perfectly again, no 0xc00002e2 error.

I think my issue was caused by trying to connect to the console and attempting to logon too quickly after the restored VM was powered on, interrupting the AD restore process.

Thanks for all your help!
Andreas Neufert
VP, Product Management
Posts: 7200
Liked: 1547 times
Joined: May 04, 2011 8:36 am
Full Name: Andreas Neufert
Location: Germany
Contact:

Re: Veeam - DCs restore - 0xc00002e2

Post by Andreas Neufert »

Thanks for the feedback. Glad to hear that it works in the end.
mlavie
Enthusiast
Posts: 30
Liked: 1 time
Joined: Jan 31, 2019 5:25 pm
Contact:

Re: Veeam - DCs restore - 0xc00002e2

Post by mlavie »

BLH wrote: Jul 07, 2023 4:56 pm I know this is an old thread but I came across it while trying to find a solution to my issue. After doing a Full Restore of the production server to a backup server, I also got the 0xc00002e2 error and found that the NTDS.dit file was trashed on the restored server.
1) How did you identify that the NTDS.dit file was trashed, if you immediately got a BSOD?

2) Thank you for the Instant Recovery / Migrate to Production option !!!

3) Did you ever find an actual solution to this problem? I enabled Application-Aware Processing. I am using Community Edition, v12.2.0.334
Andreas Neufert
VP, Product Management
Posts: 7200
Liked: 1547 times
Joined: May 04, 2011 8:36 am
Full Name: Andreas Neufert
Location: Germany
Contact:

Re: Veeam - DCs restore - 0xc00002e2

Post by Andreas Neufert » 1 person likes this post

As shared above likely the restore process was interupted. The restore of an AD need to reboot multiple times (non-authoritative restore) and when you interupt it by logging in too early the restore process is stopped at an undefined state and the NTDS.dit recovery is interupted. The non-authoritative restore starts first with local logon file before replaced by the AD authentication one, and if you interupt this process at a specific time you run into this issue. See my comments above.

1) AD restore need to be done with Network enabled and with VM boot checkbox.
2) Restore will reboot the server multiple times and you must NOT touch the console, click with the mouse into the VM or do any keystrokes as it will interup the automatic recovery process that happens after Veeam Recovery. Basically wait for some time after restore before you logon (customer above waited 20min).
3) If your complete AD is gone, and you want to restore the first (!!!) AD server, you need to start a Authoritative Restore process as documented here: https://www.veeam.com/kb2119
Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests