{"id":441,"date":"2013-08-15T16:27:00","date_gmt":"2013-08-15T16:27:00","guid":{"rendered":"https:\/\/www.geekmungus.co.uk\/?p=441"},"modified":"2022-11-05T10:53:19","modified_gmt":"2022-11-05T10:53:19","slug":"full-server-recovery-bare-metal-recovery-to-similar-or-dissimilar-hardware","status":"publish","type":"post","link":"https:\/\/geekmungus.co.uk\/?p=441","title":{"rendered":"FULL SERVER RECOVERY (BARE METAL RECOVERY) TO SIMILAR OR DISSIMILAR HARDWARE"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">A server that is not a domain controller has gone for a burton, the whole server is a melted heap, or is gently rocking back and forth in the corner muttering about its childhood. You need to restore the whole server. I\u2019m assuming at this point you have a replacement server you can use, this might be the same hardware with a component replaced (similar), or a brand new server (dissimilar).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">These instructions have been tested on a Dell PowerEdge R410 Server with a H200 RAID controller and a Dell PowerEdge R410 Server with a SAS6i RAID controller, both running Microsoft Windows 2008 R2, although the procedure is the same for Microsoft Windows 2012 server.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1. Hook up the server, connect a monitor, keyboard and mouse (or use a KVM), start the server up and insert the Windows 2008 R2 Disc (which should have the same service pack slipstreamed in as the server you are restoring.)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2. If you need any RAID or Network card drivers you should have these on a USB memory stick, you may or may not need these depending on if your server has a generic Windows driver support or not. Either way prepare this if you need it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3. Power up the server, ensure it boots up and configure the RAID to how you want it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>NOTE: The hard disk space on the server you are recovering to must be the same size or larger than that from which you took the backup. I.e. if you had a 100GB server, you can restore to a server with 100GB disk space or larger, you can\u2019t restore a server with 60GB disk space.<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">4. Boot off the Microsoft Windows 2008 R2 DVD you have shoved in the drive. Wait for it to get to the Windows Setup screen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">5. Once it\u2019s booted, select the \u201cTime and Currency Format\u201d as English (United Kingdom) and the \u201cKeyboard\u201d as UK and click on next.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">6. Rather than clicking on \u201cInstall Now\u201d, you should click on the \u201cRepair your Computer\u201d button in the bottom left of the screen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">7. Select \u201cRestore your computer using a system image that you created earlier\u201d and click on \u201cNext &gt;\u201d<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>NOTE: If you need to load a driver you should do it now, by clicking on \u201cLoad Drivers\u201d and shoving in the USB memory stick.<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.geekmungus.co.uk\/wp-content\/uploads\/2021\/07\/image-59.png\" alt=\"\" class=\"wp-image-442\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">8. When prompted click on \u201cSelect a System Image\u201d and click on \u201cNext >\u201d you should then see the images on the USB hard disk, click the one you want, then click on \u201cNext >.\u201d<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.geekmungus.co.uk\/wp-content\/uploads\/2021\/07\/image-60.png\" alt=\"\" class=\"wp-image-443\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">9. Now you\u2019ll see the recovery points (if there\u2019s more than one) for your server, with the times. In our example, we have two of the buggers. Let\u2019s use the oldest one in this case, so click on the one you want, then click \u201cNext >.\u201d<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.geekmungus.co.uk\/wp-content\/uploads\/2021\/07\/image-61.png\" alt=\"\" class=\"wp-image-444\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">10. Now you\u2019re prompted to \u201cFormat and repartition disks\u201d, you should do this unless you really have a reason not to. This will wipe the kack of the server so your restore will be as clean as possible. If say you had data on a separate disk you don\u2019t want wiping click on \u201cExclude disks..\u201d and tick the drive you want excluding.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">11. You might want to add extra drivers, now is the time to do this, click on \u201cInstall Drivers\u2026\u201d and select the driver files from a USB memory stick. \u201cAdvanced\u2026\u201d allows you to specify extra options, unless you have a reason to you don\u2019t need to change these.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">12. Click on \u201cNext >\u201d then review you have the correct backup selected, then click on \u201cFinish\u201d to start the ball rolling. Confirm by clicking on \u201cYes\u201d and your server will start to restore. It will reboot when it\u2019s all done.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.geekmungus.co.uk\/wp-content\/uploads\/2021\/07\/image-63.png\" alt=\"\" class=\"wp-image-446\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Time for a cuppa!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">13. Once the restoration has been completed, the server will reboot itself, and if all is well will boot up into your newly restored Windows image.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Oh, Balls!<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> Blue Screen of Death\nSTOP: 0x0000007B (0xFFFFF880009A9928,0xFFFFFFFFC0000034,0x00000000000000000, 0x00000000000000000)<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Now what, it appears that the 0x00000007B means \u201cInaccessible Boot Device\u201d, in this example this is caused because we\u2019ve gone from a R410 with a H200 RAID controller to a R410 with a SAS6i RAID controller, it doesn\u2019t like it, we therefore need to make some changes to the server to make it boot.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">14. Right, the fecker isn\u2019t working, so when it reboots, you should find that it ends up at the \u201cWindows Error Recovery\u201d screen as shown below:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.geekmungus.co.uk\/wp-content\/uploads\/2021\/07\/image-64.png\" alt=\"\" class=\"wp-image-447\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If it doesn\u2019t come up, you should boot off the Windows 2008 R2 disc instead, but if you do this you\u2019ll need to wait until you get to the Windows setup screen, and then press Shift F10 to get a command prompt, then carry on as below.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">15. Select \u201cUnited Kingdom\u201d as the keyboard method, then click on \u201cNext &gt;\u201d you\u2019ll then be prompted for the Administrator password of the server. Now on a member server this is just the local administrator account password, on a domain controller, this is the restore mode password. Enter it and click on \u201cNext &gt;\u201d to continue.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">16. Click on \u201cCommand Prompt\u201d from the set of three options.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.geekmungus.co.uk\/wp-content\/uploads\/2021\/07\/image-65.png\" alt=\"\" class=\"wp-image-448\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u00a0A quick aside: To disable the auto-reboot function so you can have a good butchers at the BSOD, you need to open the registry, to do this perform these steps:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>1. Open Command Prompt.\n2. regedt32 &lt;CR>\n3. Highlight HKEY_LOCAL_MACHINE, File>Load Hive>&#91;restored volume]:\\Windows\\System32\\Config\\SYSTEM\n->Open->Key Name = Restored_HKLM>OK.\n4. Expand Restored_HKLM\\ControlSet001\\Control\\CrashControl and ensure the \u201cAutoReboot\u201d DWORD value has been set to 0 (setting it to 0 means autoreboot is turned off) then click OK.\n5. Click on the \u201cRestored_HKLM\u201d hive and then select File>Unload Hive to disconnect from the registry.\n6. Reboot the server and you\u2019ll see the BSOD in all its shitty glory.<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">17. Now perform the following steps within the command prompt:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1. regedt32 &lt;CR&gt;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2. Highlight HKEY_LOCAL_MACHINE, File&gt;Load Hive&gt;[restored volume]:\\Windows\\System32\\Config\\SYSTEM&gt;Open&gt;Key Name = Restored_HKLM&gt;OK.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3. Expand Restored_HKLM\\ControlSet001\\services and ensure the following keys \u201cStart\u201d are set to 0 (zero) instead of whatever value they currently have. You are basically turning them all on by setting it to 0 (zero.)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">aliide (changed),<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">amdide (changed),<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">atapi,<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">cmdide (changed),<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">iastorv (changed),<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">intelide (changed),<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">msahci (changed),<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">pciide,<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">viaide (changed),<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">LSI_SAS (changed).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;If restored to a (VMWare) VM then ensure intelide&gt;Start = 0 and LSI_SAS&gt;Start = 0; msahci&gt;Start = 3 and pciide&gt;Start = 3<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">NB: I have only tested this with VMWare VMs (Player\/Workstation and vSphere) but will likely translate across to Microsoft (e.g. HyperV) VMs. The LSI_SAS value is definitely required, I couldn&#8217;t boot in a VM until this was changed to 0.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Or if restoring to a physical machine with native HDD controller&nbsp; then ensure msahci&gt;Start = 0 and pciide&gt;Start = 0; intelide&gt;Start = 3 and LSI_SAS&gt;Start = 3<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">4. Highlight Restored_HKLM and then File&gt;Unload Hive.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">5. Close windows and restart.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This is discussed here in more detail:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"http:\/\/social.technet.microsoft.com\/Forums\/windowsserver\/en-US\/b4d45d9d-4c90-4ab0-ae38-f1257ce9c608\/windows-7-server-2008-r2-bare-metal-restore-0x0000007b-stop-error\">http:\/\/social.technet.microsoft.com\/Forums\/windowsserver\/en-US\/b4d45d9d-4c90-4ab0-ae38-f1257ce9c608\/windows-7-server-2008-r2-bare-metal-restore-0x0000007b-stop-error<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Note: Turning them all on, isn\u2019t the best thing, but it will get the server up, you should then experiment by turning each one off one by one (i.e. setting it to 3) until you stop the server booting, we don\u2019t want stuff running that we don\u2019t actually use.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.geekmungus.co.uk\/wp-content\/uploads\/2021\/07\/image-66.png\" alt=\"\" class=\"wp-image-449\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">18. Okay, we are cooking on gas now! We have it booting up.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.geekmungus.co.uk\/wp-content\/uploads\/2021\/07\/image-67.png\" alt=\"\" class=\"wp-image-450\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">19. The server is up and running, you should now login to ensure all is well. You\u2019ll need to logon locally, because the network card settings may have gone walkabout and you\u2019ll need to reconfigure them.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">20. Go to the command prompt:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>1. Type: \u201d SET DEVMGR_SHOW_NONPRESENT_DEVICES=1 \u201c and press &lt;enter>\n2. Type: \u201d Start devmgmt.msc \u201d and press &lt;enter>\n3. In the Device Manager go to View and click on \u201d Show Hidden Devices \u201c\n4. Navigate to the Network Adapters and expand it, there should be your old NIC\n5. Select and delete.\n6. Remove all the NICs (even the live ones), then rescan for new devices.<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">By doing the above you&#8217;ll remove the old NICs from the image, these will have been from the server from which you imaged from. If of course you are restoring onto the identical hardware this is unlikely to be the case. its good to get rid of these ghost adapters because they can cause problems.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">21. Now the devices will have re-appeared, you just need to configure their network settings as per the old server configuration. Disable any unused NICs to avoid weird-ness.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">22. Reboot the server to confirm, and that\u2019s it, you should have your server working again. It is advised that you check everything and then troubleshoot any errors, but as this is an image of the server, then these should be minimal unless of course you are restoring a domain controller, in which case you have more to do.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>NOTE: if this server is staying in production, don\u2019t forget to turn off the unneeded services from step 17. This is trial and error.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A server that is not a domain controller has gone for a burton, the whole server is a melted heap, or is gently rocking back and forth in the corner muttering about its childhood. You need to restore the whole server. I\u2019m assuming at this point you have a replacement server you can use, this &#8230; <a title=\"FULL SERVER RECOVERY (BARE METAL RECOVERY) TO SIMILAR OR DISSIMILAR HARDWARE\" class=\"read-more\" href=\"https:\/\/geekmungus.co.uk\/?p=441\" aria-label=\"Read more about FULL SERVER RECOVERY (BARE METAL RECOVERY) TO SIMILAR OR DISSIMILAR HARDWARE\">Read more<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-441","post","type-post","status-publish","format-standard","hentry","category-microsoft-windows"],"_links":{"self":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/441","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=441"}],"version-history":[{"count":1,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/441\/revisions"}],"predecessor-version":[{"id":1474,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/441\/revisions\/1474"}],"wp:attachment":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=441"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=441"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=441"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}