{"id":1611,"date":"2015-10-30T06:27:41","date_gmt":"2015-10-30T11:27:41","guid":{"rendered":"http:\/\/swildow.darktech.org\/wp\/?p=1611"},"modified":"2015-10-30T06:27:41","modified_gmt":"2015-10-30T11:27:41","slug":"step-by-step-completing-storage-live-migration-in-hyper-v-2012-r2","status":"publish","type":"post","link":"http:\/\/www.wildow.com\/blog\/?p=1611","title":{"rendered":"Step-By-Step: Completing Storage Live Migration in Hyper-V 2012 R2"},"content":{"rendered":"<h3 class=\"post-name\">Step-By-Step: Completing Storage Live Migration in Hyper-V 2012 R2<\/h3>\n<div class=\"post-rating\"><span class=\"ui-rate rating readonly\" title=\"Average rating: 5 out of 1 ratings.\" data-contentid=\"bc402373-752a-4c66-b1c1-efb8bda2ab9b\" data-contenttypeid=\"f7d226ab-d59f-475c-9d22-4a79e3f0ec07\" data-readonly=\"true\" data-initialvalue=\"1\" data-initialcount=\"1\" data-configuration=\"ReadOnly=true\"><img decoding=\"async\" src=\"http:\/\/blogs.technet.com\/utility\/images\/star-left-on.png\" alt=\"\" align=\"absmiddle\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/blogs.technet.com\/utility\/images\/star-right-on.png\" alt=\"\" align=\"absmiddle\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/blogs.technet.com\/utility\/images\/star-left-on.png\" alt=\"\" align=\"absmiddle\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/blogs.technet.com\/utility\/images\/star-right-on.png\" alt=\"\" align=\"absmiddle\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/blogs.technet.com\/utility\/images\/star-left-on.png\" alt=\"\" align=\"absmiddle\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/blogs.technet.com\/utility\/images\/star-right-on.png\" alt=\"\" align=\"absmiddle\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/blogs.technet.com\/utility\/images\/star-left-on.png\" alt=\"\" align=\"absmiddle\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/blogs.technet.com\/utility\/images\/star-right-on.png\" alt=\"\" align=\"absmiddle\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/blogs.technet.com\/utility\/images\/star-left-on.png\" alt=\"\" align=\"absmiddle\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/blogs.technet.com\/utility\/images\/star-right-on.png\" alt=\"\" align=\"absmiddle\" border=\"0\" \/><\/span><\/div>\n<div class=\"post-author\"><span class=\"avatar\"> <img decoding=\"async\" src=\"http:\/\/i1.social.s-msft.com\/profile\/u\/avatar.jpg?displayname=anthony+bartolo&amp;size=large\" alt=\"Anthony Bartolo\" border=\"0\" \/> <\/span> <span class=\"profile-usercard-hover\" data-profile-rendered=\"true\" data-profile-userid=\"bf71b0dec59d4bc7811ada5d64ce7408\"> <span class=\"user-name\"> <a href=\"http:\/\/social.technet.microsoft.com\/profile\/Anthony%20Bartolo\">Anthony Bartolo<\/a> <\/span> <\/span><\/div>\n<div class=\"post-date\"><span class=\"value\"> 23 Apr 2014 10:04 PM <\/span><\/div>\n<div class=\"post-content user-defined-markup\">\n<p><a href=\"http:\/\/blogs.technet.com\/cfs-file.ashx\/__key\/communityserver-blogs-components-weblogfiles\/00-00-00-48-12\/HyperVsml.jpg\"><img decoding=\"async\" src=\"http:\/\/blogs.technet.com\/resized-image.ashx\/__size\/400x0\/__key\/communityserver-blogs-components-weblogfiles\/00-00-00-48-12\/HyperVsml.jpg\" alt=\" \" border=\"0\" \/><\/a><\/p>\n<p>With both Managing the Datacenter and Virtualizing the Datacenter\u00a0#CANITPRO Camps coming to a close.\u00a0 Further details regarding\u00a0the next upcoming \u00a0will be made available soon.\u00a0 As you may be aware, Microsoft provides evaluation copies of\u00a0<a title=\"Download Windows Server 2012 R2\" href=\"http:\/\/aka.ms\/WS2012R2CAN\" target=\"_blank\">Windows Server 2012R2<\/a> and\u00a0<a title=\"Download Hyper-V 2012 R2\" href=\"http:\/\/aka.ms\/hv2012r2can\" target=\"_blank\">Hyper-v Server 2012R2<\/a>\u00a0to allow for testing from within your own private lab environments.\u00a0\u00a0Coupled with these\u00a0Step-By-Step blog posts, we hope that you are empowered to\u00a0further your endeavors as well as provide a reference for future activities asked of you within you production environment.<\/p>\n<p><strong>Storage Live Migration in Hyper-V<\/strong><\/p>\n<p>Storage Live Migration\u00a0provides the ability to move\u00a0your virtual machine storage while your VM is\u00a0running. In comparison, Storage Live Migration is\u00a0similar in offering\u00a0to\u00a0the VMware storage offering called\u00a0vMotion.\u00a0The virtual hard disks used by a virtual machine can be moved\u00a0to different physical storage while the virtual machine remains running making it unnecessary to take a virtual machine offline to move the VMs files to different physical storage.\u00a0 Storage Live Migration supports both VHD and VHDX file types. VHDX file types are\u00a0the new virtual hard drive format\u00a0utilizing a 64k block size\u00a0supporting virtual disks up to 64 TB in size and subsequently provide improved disk access speed\u00a0in comparison to\u00a0the old VHD file format. Older VHD disks utilize a 512 byte block size and have a maximum size of 2 TB.<\/p>\n<p><a href=\"http:\/\/blogs.technet.com\/cfs-file.ashx\/__key\/communityserver-blogs-components-weblogfiles\/00-00-00-48-12\/HyperVLiveMigration.png\"><img decoding=\"async\" src=\"http:\/\/blogs.technet.com\/resized-image.ashx\/__size\/400x0\/__key\/communityserver-blogs-components-weblogfiles\/00-00-00-48-12\/HyperVLiveMigration.png\" alt=\" \" border=\"0\" \/><\/a><\/p>\n<p>During the Storage Live Migration process, the Virtual Machine disk is mirrored to either a local disk or shared storage\u00a0allowing the server to continue to run the VM. Upon completion, Hyper-V switches the VM to run from destination virtual hard disk.\u00a0 Hyper-v can\u00a0revert back to running the original source files\u00a0should an error occur within the Storage Live Migration process and\/or Hyper-V is unable to utilize the new destination virtual disk.\u00a0 An additional\u00a0benefit of Storage Live Migration is that when deleting snapshots from a running VM, the snapshot \/ differencing disk will be merged in while the VM is running.\u00a0Previously these changes were merged when the VM was restarted causing longer than expected reboot times as the VM had to wait to restart until changes were merged.<\/p>\n<p>To add,\u00a0the Shared Nothing Live Migration process\u00a0provides storage migration mirroring the virtual hard disk to another server before completing the\u00a0live migration.\u00a0 This process mirrors the memory to the new server then switches the running server to run on the new server and removes it from the original server thus\u00a0moving a running VM from one Hyper-v host server without utilizing shared storage.<\/p>\n<p>Fellow Microsoft Technical Evangelist, <a title=\"Brian Lewis\" href=\"http:\/\/mythoughtsonit.com\/about-2\/\" target=\"_blank\">Brian Lewis<\/a>,\u00a0has created a\u00a0detailed\u00a0Storage Live Migration lab process which we at CANITPRO\u00a0are happy to share.<\/p>\n<p><strong>Live Storage Migration via Hyper-v Manager<\/strong><\/p>\n<ol>\n<li>Within\u00a0the Hyper-v MMC \u2013\u00a0you can see\u00a0the settings of VM Server1 that the virtual hard disk is currently located under d:\\Hyper-v\\VHDs\\Server1.vhdx\n<p><a href=\"http:\/\/blogs.technet.com\/cfs-file.ashx\/__key\/communityserver-blogs-components-weblogfiles\/00-00-00-48-12\/0552.LM1.png\"><img decoding=\"async\" src=\"http:\/\/blogs.technet.com\/resized-image.ashx\/__size\/550x0\/__key\/communityserver-blogs-components-weblogfiles\/00-00-00-48-12\/0552.LM1.png\" alt=\" \" border=\"0\" \/><\/a><\/li>\n<li>To initiate a Live Storage Migration \u2013 right click on the server then select Move\n<p><a href=\"http:\/\/blogs.technet.com\/cfs-file.ashx\/__key\/communityserver-blogs-components-weblogfiles\/00-00-00-48-12\/4572.LM2.png\"><img decoding=\"async\" src=\"http:\/\/blogs.technet.com\/resized-image.ashx\/__size\/550x0\/__key\/communityserver-blogs-components-weblogfiles\/00-00-00-48-12\/4572.LM2.png\" alt=\" \" border=\"0\" \/><\/a><\/li>\n<li>In the Wizard select if you want to move the Virtual Machine or the Storage of the Virtual Machine. In this example\u00a0moving the storage to the VM is chosen\n<p><a href=\"http:\/\/blogs.technet.com\/cfs-file.ashx\/__key\/communityserver-blogs-components-weblogfiles\/00-00-00-48-12\/6646.LM3.png\"><img decoding=\"async\" src=\"http:\/\/blogs.technet.com\/resized-image.ashx\/__size\/550x0\/__key\/communityserver-blogs-components-weblogfiles\/00-00-00-48-12\/6646.LM3.png\" alt=\" \" border=\"0\" \/><\/a><\/li>\n<li>Choice is provided to move just the virtual disks or to also include the configuration files. In this\u00a0example, the disks, snapshots,\u00a0and configuration file are selected to be moved\n<p><a href=\"http:\/\/blogs.technet.com\/cfs-file.ashx\/__key\/communityserver-blogs-components-weblogfiles\/00-00-00-48-12\/3580.LM4.png\"><img decoding=\"async\" src=\"http:\/\/blogs.technet.com\/resized-image.ashx\/__size\/550x0\/__key\/communityserver-blogs-components-weblogfiles\/00-00-00-48-12\/3580.LM4.png\" alt=\" \" border=\"0\" \/><\/a><\/li>\n<li>Choose\u00a0the folder of where you wish to place the files\n<p><a href=\"http:\/\/blogs.technet.com\/cfs-file.ashx\/__key\/communityserver-blogs-components-weblogfiles\/00-00-00-48-12\/4152.LM5.png\"><img decoding=\"async\" src=\"http:\/\/blogs.technet.com\/resized-image.ashx\/__size\/550x0\/__key\/communityserver-blogs-components-weblogfiles\/00-00-00-48-12\/4152.LM5.png\" alt=\" \" border=\"0\" \/><\/a><\/li>\n<li>In this example the files\u00a0are being moved from the local hard drive (d:\\Hyper-v\\VHDs\\Server1.vhdx) to a file share (<a>\\\\hyperv1\\VHDS\\VirtualMachines\\<\/a>)\n<p><a href=\"http:\/\/blogs.technet.com\/cfs-file.ashx\/__key\/communityserver-blogs-components-weblogfiles\/00-00-00-48-12\/5633.LM6.png\"><img decoding=\"async\" src=\"http:\/\/blogs.technet.com\/resized-image.ashx\/__size\/550x0\/__key\/communityserver-blogs-components-weblogfiles\/00-00-00-48-12\/5633.LM6.png\" alt=\" \" border=\"0\" \/><\/a><\/li>\n<li>The process is now completed.\u00a0The location of the virtual hard disk has now been moved to the file share which occurred without\u00a0shutting down any VMs\n<p><a href=\"http:\/\/blogs.technet.com\/cfs-file.ashx\/__key\/communityserver-blogs-components-weblogfiles\/00-00-00-48-12\/1538.LM7.png\"><img decoding=\"async\" src=\"http:\/\/blogs.technet.com\/resized-image.ashx\/__size\/550x0\/__key\/communityserver-blogs-components-weblogfiles\/00-00-00-48-12\/1538.LM7.png\" alt=\" \" border=\"0\" \/><\/a><\/li>\n<\/ol>\n<p><strong>Live Storage Migration via PowerShell<\/strong><\/p>\n<ol>\n<li>Open the PowerShell console\n<p><a href=\"http:\/\/blogs.technet.com\/cfs-file.ashx\/__key\/communityserver-blogs-components-weblogfiles\/00-00-00-48-12\/5040.LM8.jpg\"><img decoding=\"async\" src=\"http:\/\/blogs.technet.com\/resized-image.ashx\/__size\/550x0\/__key\/communityserver-blogs-components-weblogfiles\/00-00-00-48-12\/5040.LM8.jpg\" alt=\" \" border=\"0\" \/><\/p>\n<p><\/a><\/li>\n<li>Type &#8211; \u00a0<strong>Move-VMStorage \u201cServer1\u2033 \u201c\\\\Hyperv1\\VHDs\\Virtual Hard Disks\\\u201d<\/strong><\/li>\n<\/ol>\n<p>To learn about\u00a0additional\u00a0functionality\u00a0in regards to Hyper-V 2012 R2, visit Microsoft Virtual Academy and checkout the <a title=\"MVA: Windows Server 2012 R2 Virtualization Course\" href=\"http:\/\/www.microsoftvirtualacademy.com\/training-courses\/windows-server2012-r2-virtualization\">Windows Server 2012 R2 Virtualization <\/a>course.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Step-By-Step: Completing Storage Live Migration in Hyper-V 2012 R2 Anthony Bartolo 23 Apr 2014 10:04 PM With both Managing the Datacenter and Virtualizing the Datacenter\u00a0#CANITPRO Camps coming to a close.\u00a0 Further details regarding\u00a0the next upcoming \u00a0will be made available soon.\u00a0 &#8230; <a class=\"more-link\" href=\"http:\/\/www.wildow.com\/blog\/?p=1611\">Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1611","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1611","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1611"}],"version-history":[{"count":1,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1611\/revisions"}],"predecessor-version":[{"id":1612,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1611\/revisions\/1612"}],"wp:attachment":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1611"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1611"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1611"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}