We help IT Professionals succeed at work.

Wbadmin command to restore a volume Windows Server 2016 std

High Priority
39 Views
Last Modified: 2020-03-26
Experts,
I had to rebuild a domain controller (the only DC in the network).  Ive reinstalled the Windows 2016 std OS.  I have a good backup and have attempted several times to restore using the way of rebooting off the DVD media and running a repair and system image restore - it finds the backup image but everytime I start the recovery it fails with issues that it cant find a drive (ive looked up this error as well and still no luck).   This is a physical server not a VM

So I figure lets just try to restore this with the wbadmin start recovery command.  only issue is I am not sure of the exact command/syntax I will need here.  I need to just restore my C: volume - which was the OS.  I have all the data on the D: volume.  

I know after I complete this restore I will need to go back and restore the AD (authoritative) and I have the wbadmin commands for that I believe.

I have a bare metal backup.  unless there really is an easier way to do this that I am missing but Ive been the last 24 hours trying to get this up and running

Can someone with experience with this please help me with some guidance.  I have a completely downed network and need to get this all back up and running.

thank you very much
Comment
Watch Question

CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
Try the following:

create a virtual machine with ample hard drive space to restore the DC. Ensure that you create a new hard drive and don't use an existing one. now try the restore process and see if it works.

I assume that it fails since it has problems with the existing disk that you are trying to restore to.

Author

Commented:
ive checked the disk it seems fine.  I even reinstalled the OS on it already.  Its just not finding the disk for some reason when trying to restore it on.  thats why i figured I can just go through the wbadmin command to get this restored properly
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
It's not about the disk being fine or not, but about a partitioning that might be seen by wbadmin which it cannot deal with.
If you don't like the test in a virtual machine, you can of course also clean the current disk with diskpart and see if restoring works, then.

in certain windows 10 versions (possibly in server 2016 as well), wbadmin had a bug were it was unable to restore to a disk with an existing partition layout.

Author

Commented:
i did try the diskpart clean and that had no effect for me (As a matter of fact it caused issues and that lead me to reinstall the entire OS).  I had Dell support on the phone assisting with that part because initially it could not see the dvd media.  once that was done, Ive done restores before but this one just isnt going as it should.   i also dont have any extra available hard drives to create/test a virtual machine.  

this is the message I am getting when I boot from the DVD windows 2016 media and do a system restore, it looks for the image backup and finds the most current one (so it sees the image).  I then click the "Next", then under the "Choose additional restore options" i just leave the default (although the Format and repartition disks is checked and grayed out).  Ive tried it both with checking the box to "only restore system drives" and unchecking the box and neither helps.  I then click the "next" to start restoring and then I get a failed message:

"no disk that can be used for recovering the system disk can be found.  try the following: a probable system disk may have been excluded by mistake, type LIST DISK command in the DISKPART command.......or an invalid disk may have been assigned as a system disk. etc... (0x80042412)"

when I do run the DISKPART and LIST DISK it shows me DISK 0 (online) 7600MB and then it shows DISK 1 (online) 3725GB (GPT has an *).  mind you I have a RAID 1 configuration (with 2 - 8TB SATA drives).    500 GB was for the OS (C Volume) and the remainder was for the data (D volume).  I would like to leave the D volume intact since there is over 2TB of data on that.  I do have back of it but would like to not have to obliterate that too.
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
Ok, here's the plan:

mount the backup that you have. It's inside the folders that wbadmin creates and is a vhdx file.
After mounting it, create an image of that mounted drive using an imaging software of your choice.
Now reinstall server 2016 clean and afterwards, without configuring anything on the virgin server OS, restore the image backup over c:

I have done that before and it works.
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
[Edited "No reinstall" to "Now reinstall..."]

Author

Commented:
a quick update.  I just realized when I ran the LIST DISKS in DISKPART it listed my external drive (windowsimage backups) as the 3725MB which was Disk1 and Disk 0 was an unallocated 7GB (Dell). so the LIST DISKS doesnt even show my 8TB hard drives??  is this normal or this why I am getting the error because windows recovery cant see my primary disk?
CERTIFIED EXPERT
Distinguished Expert 2019
Commented:
Yes, of course that's it.
You need to supply the raid driver to the image restore process. There's a button "load drivers".

Author

Commented:
ok, let me give that a shot.  I'll try to locate the RAID drivers and install that before I start the recovery process........

Author

Commented:
ok, spent an hour on the phone with Dell to install the raid/perc drivers.  no luck.  he said they are already installed.  we booted into the OS just fine and he said Windows is seeing the C: and D: partitions just fine and that the drivers are loaded.   He could not tell me then why in the recovery mode when I did a LIST DISK in DISKPART that it did not list that primary drive.    in computer management it shows it and is healthy.

Do we have another avenue to try?  I was really hoping this was it. but its not.
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
As said:  "you need to supply the raid driver to the image restore process"
That should mean, when you boot from the DVD, there you need to provide the driver for the raid controller. NOT within windows :-)
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:

Author

Commented:
and that is what I did.  After I boot from the DVD and go into restore where it shows to Install drivers as an option - we went through that and the Dell tech tried multiple drivers that he downloaded from his support site and the message kept coming up that they did not work.    so he had be boot directly into the OS and said to me that the drivers work because the OS can pick them up and is showing them.  

I do understand that we are booting from a DVD media - but all the drivers he was trying to install wouldnt take.  I am wondering, as he said hes just a hardware/server guy that he doenst fully understand the OS and the restore process.  

again, I would think once in restore mode and when I did a DISKPART and list the discs they should all show up
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
Never failed here.
What is the driver that he downloaded?
What is the inf file that he tried to load?

I can reproduce that here (no matter what hardware)

Author

Commented:
sure no problem.   ive attached what he tried.   he also tried the full .exe file but that didnt work - and I told him I didnt think that would work lol
perc.docx

Author

Commented:
i cant send a zip file to show you the actual files and it wont let me upload them one by one

Author

Commented:
i think I got it started, you were on the money so far here.  I went and retried the drivers - he must have missed one because I then found the raid controller and installed and now the restoration process is starting.  I'll let you know how that goes.  I assume once I restore the C: partition (thats where I had the OS installed) I will have to go back do into DSRM and to an active directory restore too correct? (authoritative).

Author

Commented:
McKnife, Great job!  you put me in the right direction and my system restored.  Thank you so much for your help on this.  you were spot on once I started to figure out that the drives were not appearing in the restore mode.  

Again, thank you so much for your quick response,  your patience and assistance and most importantly your time!

thank you!
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
Hey, you are welcome!