mountainss Cloud and Datacenter Management Blog

Microsoft SystemCenter blogsite about virtualization on-premises and Cloud

Moving Virtual Machine Storage in Windows Server 2012 #Hyperv #WS2012

Leave a comment


Moving Virtual Machine Storage

In Windows Server 2008 R2, you can move a running instance of a virtual machine using live migration, but you are not able to move the virtual machine’s storage while the virtual machine is running. Hyper-V in Windows Server 2012  introduces support for moving virtual machine storage without downtime by making it possible to move the storage while the virtual machine remains running. You can perform this task by using a new wizard in Hyper-V Manager or by using new Hyper-V cmdlets for Windows PowerShell. You can add storage to either a stand-alone computer or to a Hyper-V cluster, and then move virtual machines to the new storage while the virtual machines continue to run. The most common reason for moving a virtual machine’s storage is to update the physical storage that is available to Hyper-V. You can also move virtual machine storage between physical storage devices, at run time, to respond to reduced performance that results from bottlenecks in the storage throughput.

Requirements

You need the following to use the Hyper-V functionality of moving virtual machine storage:

* One or more installations of Windows Server 2012 with the Hyper-V role installed.

( Windows Server 2012 RTM Becomes available on September 4 )

* A server that is capable of running Hyper-V. Specifically, it must have processor support for hardware virtualization.

* Virtual machines that are configured to use only virtual hard disks for storage.

NOTE :  You cannot move the storage of a virtual machine when any of its storage is directly attached to a physical disk.

Technical overview
This new feature allows you to move the virtual hard disks of a virtual machine while those virtual hard disks remain available for use by the running virtual machine. When you move a running virtual machine’s virtual hard disks, Hyper-V performs the following steps, as shown in Figure 1:

1. Throughout most of the move operation, disk reads and writes go to the source virtual hard disk.

2. While reads and writes occur on the source virtual hard disk, the disk contents are copied to the new destination virtual hard disk.

3. After the initial disk copy is complete, disk writes are mirrored to both the source and destination virtual hard disks while outstanding disk changes are replicated.

4. After the source and destination virtual hard disks are completely synchronized, the virtual machine switches over to using the destination virtual hard disk.

5. The source virtual hard disk is deleted.

Advertisements

Author: James van den Berg

I'm Microsoft Architect and ICT Specialist and Microsoft MVP System Center Cloud and Datacenter Management

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s