{"id":10250,"date":"2009-12-21T19:28:37","date_gmt":"2009-12-21T19:28:37","guid":{"rendered":"https:\/\/aidanfinn.com\/?p=10250"},"modified":"2009-12-21T19:28:37","modified_gmt":"2009-12-21T19:28:37","slug":"backing-up-virtual-machine-manager","status":"publish","type":"post","link":"https:\/\/aidanfinn.com\/?p=10250","title":{"rendered":"Backing Up Virtual Machine Manager"},"content":{"rendered":"<p>Now that I\u2019ve dealt with <a href=\"https:\/\/aidanfinn.com\/?p=10249\" target=\"_blank\">backing up and restoring Hyper-V<\/a>, let\u2019s have a look at that management component, System Center Virtual Machine Manager (VMM).<\/p>\n<p>The simplest solution is to simply backup the entire VMM server.&#160; But what if it isn\u2019t that simple for you?&#160; What if you have a large or distributed environment?&#160; How do you recover individual aspects?&#160; How do you restore to a different computer?<\/p>\n<p>There\u2019s two aspects to VMM.&#160; The library is a shared folder.&#160; That\u2019s easy to backup.&#160; You just use any old VSS enabled backup tool to backup Windows 2008 or Windows 2008 R2.&#160; But that\u2019s only the library.&#160; <\/p>\n<p>What about all the intelligence, i.e. the database?&#160; Well, you could just do a SQL backup of the database.&#160; That\u2019s one way.&#160; VMM also provides a method do backup and recover the database using VMM native tools.<\/p>\n<p>To backup the database you can:<\/p>\n<ol>\n<li>In Administration view, click <strong>General<\/strong>, and then, in the Actions pane, click <strong>Back up Virtual Machine Manager<\/strong>.<\/li>\n<li>In the <strong>Virtual Machine Manager Backup<\/strong> dialog box, type the path for a destination folder for the backup file. The folder must not be a root directory and must be accessible to the SQL Server.<\/li>\n<\/ol>\n<p>That\u2019s a GUI method and not something you\u2019ll be able to do on a schedule reliably.&#160; You\u2019ll need a script.&#160; VMM is based on PowerShell so with a little PSH you can create a script which you can schedule.&#160; Luckily, Microsoft has <a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/dd446635.aspx\" target=\"_blank\">the script up on TechNet<\/a> for both VMM 2008 and VMM 2008 R2.<\/p>\n<p>That\u2019s the backup.&#160; You\u2019ll need to be able to restore it.&#160; There is a tool that is on the DVD that you will need to do the restore.&#160; It is not installed on the server.&#160; It is called SCVMMRecover.exe and it is located on the DVD at %ROOT%i386bin for a 32-bit computer, or %ROOT%amd64bin for a 64-bit computer.&#160; The syntax to run it is:<\/p>\n<p align=\"center\">SCVMMRecover [-Path &lt;location&gt;] [-Confirm]<\/p>\n<p align=\"left\">There are two scenarios for a recovery.&#160; If you recover to the same machine, i.e. with the same SID, then you must do some clean up work:<\/p>\n<ul>\n<li>You must manually remove any hosts that were removed since the backup was done.<\/li>\n<li>You must manually add any hosts that were added since the backup was done.<\/li>\n<li>You must manually remove any VM entries for VM&#8217;s that were deleted since the backup was done.&#160; These VM&#8217;s will be listed as &quot;Missing&quot;.<\/li>\n<\/ul>\n<p>If you recover the backup to a different VMM server then you must do some different steps.&#160; This is because the computer is not recognised by the virtualisation hosts.&#160; Your virtualisation hosts because they will have an &quot;Access Denied&quot; status.&#160; You must re-associate those hosts with your new VMM server.&#160; Then you can commence with the manual cleanup tasks listed above.<\/p>\n<p>What would I do?<\/p>\n<ul>\n<li>Ensure you backup all servers hosting VMM roles, ideally including all components on the servers.&#160; This will include backing up contents of all VMM libraries.<\/li>\n<li>Schedule the PowerShell script to also do a VMM native backup of the VMM database.&#160; Include the results in your traditional server backups.<\/li>\n<\/ul>\n<p>With this approach you have options when it comes to a restoration.&#160; For example, if you have a complete VMM server failure you can do a traditional restore of all components.&#160; But if you lose VMM database you can restore it quickly using the native tools.&#160; And if that traditional recovery doesn\u2019t work (for whatever reason), at least you can build a new VMM server and restore the database backup that you did using the VMM PowerShell cmdlets.<\/p>\n<p>Reference: <a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/cc956045.aspx\" target=\"_blank\">Backing Up and Restoring the VMM Database<\/a><\/p>\n<div style=\"padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px\" id=\"scid:0767317B-992E-4b12-91E0-4F059A8CECA8:2a4cddac-a7f1-4973-8922-a46427b7f164\" class=\"wlWriterEditableSmartContent\">Technorati Tags: <a href=\"http:\/\/technorati.com\/tags\/VMM\" rel=\"tag\">VMM<\/a>,<a href=\"http:\/\/technorati.com\/tags\/Backup\" rel=\"tag\">Backup<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Now that I\u2019ve dealt with backing up and restoring Hyper-V, let\u2019s have a look at that management component, System Center Virtual Machine Manager (VMM). The simplest solution is to simply backup the entire VMM server.&#160; But what if it isn\u2019t that simple for you?&#160; What if you have a large or distributed environment?&#160; How do &hellip; <a href=\"https:\/\/aidanfinn.com\/?p=10250\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Backing Up Virtual Machine Manager&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[20],"tags":[55,196],"class_list":["post-10250","post","type-post","status-publish","format-standard","hentry","category-hyper-v","tag-backup","tag-vmm"],"aioseo_notices":[],"jetpack_featured_media_url":"","amp_enabled":true,"_links":{"self":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/10250","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10250"}],"version-history":[{"count":0,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/10250\/revisions"}],"wp:attachment":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10250"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10250"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}