Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm just trying to understand how ESX migrates a VM from one blade to another without any data loss...if I have a VM that is serving as a database server that is constantly getting data, is it able to migrate from one blade to another without losing any of that database information?

Edit: My idea didn't make sense since there is a SAN involved...if anybody can explain how vMotion does this I would greatly appreciate it!

Thanks in advance.

share|improve this question
add comment

1 Answer 1

up vote 8 down vote accepted

vMotion requires that you have shared storage between the ESX servers (a SAN, in other words), and that you have a fast network set up for vMotion. It also requires that the ESX hosts have the same CPUs (or that you've done some CPU feature masking so that the CPUs appear the same to the VMs).

Essentially it pre-copies the entire contents of memory to the destination ESX host, then starts intercepting all of the CPU activity, eventually pausing the VM on the origin ESX host, copying the last bits of memory and CPU state over to the destination ESX host and starting it back up. I think it also forces some arp announcements so that your switching infrastructure picks up the move.

The end result is that the migration can take a minute or two, but the VM itself only pauses for a fraction of a second and never knows that it was moved from one physical host to another. The OS never sees anything.

We use it on our ESX cluster all the time. We've even turned on the features that automatically VMotion VMs in order to balance load between ESX hosts.

share|improve this answer
    
+1 you're right, good work. –  Chopper3 Jul 21 '10 at 20:09
    
Excellent, thanks for taking the time to explain that to me...much appreciated (and I'm sure others will appreciate it in the future as well!). –  Windows Ninja Jul 21 '10 at 21:03
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.