Thursday, February 10, 2011

Hyper-V Live Migration Operations

                   With live migration, you can move a running virtual machine from one physical server to another without interruption of service. Live migration requires the Failover Clustering feature to be added and configured on the servers running Hyper-V.

Hyper-V Live Migration Process:
  1. Create a network connection between computers for transferring virtual machine configuration data. Then create a virtual machine on the destination computer.
  2. Memory assigned to the migrating virtual machine is copied over the network to the destination computer. This memory is referred to as the working set of the migrating virtual machine.
  3. Duplicate remaining memory pages are transferred to the destination computer. The source computer also transfers the register and device state of the source computer.
  4. Control of the storage associated with the source computer, such as any VHD files or physical storage ―pass-through‖ disks, is transferred to the destination computer.
  5. The destination computer is now able to access virtual machine memory and storage. The new virtual machine is now active.
  6. The virtual machine is now migrated to the destination computer. The physical network switch is informed, and it refreshes its MAC address table so that network traffic now uses the correct switch port to communicate with the migrated virtual machine.

Windows Server 2008 R2 Cluster Shared Volumes (CSV):

                       Cluster Shared Volumes simplifies the configuration and management of clustered virtual machines. With CSV, multiple clustered virtual machines can use the same physical disk, while still being able to fail over (or move from node to node) independently of one another. In Windows Server 2008 R2, the Cluster Shared Volumes feature included in Failover Clustering is only supported for use with the Hyper-V server role.

                       It is necessary to have the operating system on the same drive letter on every node in the cluster to allow the virtual machines to access their files from each node.
CSV supports dynamically expanding, fixed-sized, and differencing virtual hard disks.

Coordinator Node:
Cluster Shared Volumes are volumes in a failover cluster that multiple nodes can read from and write to at the same time. The nodes coordinate the reading and writing activity so that the disk is not corrupted.

Only one node in the failover cluster owns the Cluster Shared Volume. That node is known as the coordinator node. There is only one coordinator node for each shared volume, and it is selected automatically.

No comments: