Quantcast
Channel: TechNet Blogs
Viewing all articles
Browse latest Browse all 36188

Step-By-Step: Completing Storage Live Migration in Hyper-V

$
0
0

As mentioned in an earlier post, the tour of the Windows Server 2012 V1 #CANITPRO Camp has now completed and we are currently working on creating version 2 of the camp.  Further details regarding version 2 will be forthcoming, however I wanted to ensure that the labs that took place during the camp were shared with the masses.  Microsoft provides evaluation copies of Windows Server 2012 and Hyper-v Server 2012 to allow for testing from within your own private lab environments.  Coupled with these Step-By-Step blog posts, we hope that you are empowered to further your endeavors as well as provide a reference for future activities asked of you within you production environment.

Storage Live Migration in Hyper-V

Storage Live Migration provides the ability to move your virtual machine storage while your VM is running. In comparison, Storage Live Migration is similar in offering to the VMware storage offering called vMotion. The virtual hard disks used by a virtual machine can be moved to 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.  Storage Live Migration supports both VHD and VHDX file types. VHDX file types are the new virtual hard drive format utilizing a 64k block size supporting virtual disks up to 64 TB in size and subsequently provide improved disk access speed in comparison to the old VHD file format. Older VHD disks utilize a 512 byte block size and have a maximum size of 2 TB.

During the Storage Live Migration process, the Virtual Machine disk is mirrored to either a local disk or shared storage allowing the server to continue to run the VM. Upon completion, Hyper-V switches the VM to run from destination virtual hard disk.  Hyper-v can revert back to running the original source files should an error occur within the Storage Live Migration process and/or Hyper-V is unable to utilize the new destination virtual disk.  An additional benefit 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. Previously 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.

To add, the Shared Nothing Live Migration process provides storage migration mirroring the virtual hard disk to another server before completing the live migration.  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 moving a running VM from one Hyper-v host server without utilizing shared storage. 

Fellow Microsoft Technical Evangelist, Brian Lewis, recently detailed the Storage Live Migration lab process which I am happy to share with all of you.  The process is detailed in two separate instruction sets in which one utilizes Hyper-V's management counsel and the other appeasing the PowerShell gurus, such as Microsoft MVP Sean Kearney, with a simplified command.

Live Storage Migration via Hyper-v Manager

  1. Within the Hyper-v MMC – you can see the settings of VM Server1 that the virtual hard disk is currently located under d:\Hyper-v\VHDs\Server1.vhdx



  2. To initiate a Live Storage Migration – right click on the server then select Move



  3. In the Wizard select if you want to move the Virtual Machine or the Storage of the Virtual Machine. In this example moving the storage to the VM is chosen



  4. Choice is provided to move just the virtual disks or to also include the configuration files. In this example, the disks, snapshots, and configuration file are selected to be moved



  5. Choose the folder of where you wish to place the files




  6. In this example the files are being moved from the local hard drive (d:\Hyper-v\VHDs\Server1.vhdx) to a file share (\\hyperv1\VHDS\VirtualMachines\)



  7. The process is now completed. The location of the virtual hard disk has now been moved to the file share which occurred without shutting down any VMs 


Live Storage Migration via PowerShell

  1. Open the PowerShell console



  2. Type -  Move-VMStorage “Server1″ “\\Hyperv1\VHDs\Virtual Hard Disks\”



Explore the Live Storage Migration feature for yourself download Windows Server 2012 and Hyper-v Server 2012.

As mentioned in the previous Step-By-Step post, Microsoft Canada is currently running a promotion allowing you the opportunity to win a $10 Tim Horton’s gift card when evaluating Windows Server 2012, System Center 2012 or Hyper-V

 

 


Viewing all articles
Browse latest Browse all 36188

Trending Articles