HA (live) migration of VM

bazzi

Active Member
Jun 4, 2010
107
0
36
As far as we see in tests it is still not possible, correct?

Do you have a time frame to include that in V2.0? Now for some reason the HA VM's are all on one host, and we want to spread those so the load is kind of balanced...
 

bazzi

Active Member
Jun 4, 2010
107
0
36
Hmmm when I migrate a HA VM (kvm) to a other node whit livemigration it will migrate but then be stopped and restarted on the original node...
 
Nov 3, 2011
26
1
23
Tamworth, United Kingdom
XNBD looks like it will work, I have not tried it myself but I have been using DRBD for the last 3 years in a failover environment without any problems at all, DRBD has a proven record for working really well with this sort of thing and very easy to fix when you get "Split Brain" ... this is when a machine come back up and can not decide which machine has the newer data...

If you are looking into using VM's on both machines at the same time you will need the DRBD storage to be formatted to something like ZFS which allows the volume to be mounted on more than one machine at one time...
 
Last edited:

bazzi

Active Member
Jun 4, 2010
107
0
36
If your disk images are stored on one host then you will need to either have some sort of shared storage between each machine or setup a drbd.

Yes i have a shared lvm for my cluster and everything is working fine. Only the migration of HA vm is giving trouble. If the vm is not HA migration works smootly.
 

dietmar

Proxmox Staff Member
Staff member
Apr 28, 2005
17,145
543
143
Austria
www.proxmox.com
Hmmm when I migrate a HA VM (kvm) to a other node whit livemigration it will migrate but then be stopped and restarted on the original node...

Live migration for HA managed VMs is simply not implemented on the GUI. You need to do that on the command line ('clusvcadm')
 

bazzi

Active Member
Jun 4, 2010
107
0
36
I thought that was the problem ;-)

Ok thanks for the tip, I got it working!

A little howto:


Run clustat:
Code:
root@sint:~# clustatCluster Status for IMS-EVO @ Sun Feb 19 14:15:32 2012
Member Status: Quorate


 Member Name                                                     ID   Status
 ------ ----                                                     ---- ------
 sint                                                                1 Online, Local, rgmanager
 rupsjenooitgenoeg                                                   2 Online, rgmanager
 timo                                                                3 Online, rgmanager


 Service Name                                                     Owner (Last)                                                     State
 ------- ----                                                     ----- ------                                                     -----
 pvevm:200                                                        rupsjenooitgenoeg                                                started
 pvevm:201                                                        rupsjenooitgenoeg                                                started

Pick the "Member Name" of the targed node, in my case "timo".
Pick the "Service Name" of the VM what will be migrated, in my case "pvevm:201"

Migrate the VM:
Code:
# clusvcadm -M pvevm:201 -m timo
Trying to migrate pvevm:201 to timo...Success

An the VM is live migrated to the other node!

So the command is:
clusvcadm -M "Service Name" -m "Member Name"
(replace the bold parts)
 

christophe

Active Member
Mar 31, 2011
169
2
43
OK, works fine with clusvcadm, but not really intuitive...

Can we hope transparent GUI integration, be a VM HA managed or not?

Thx for this impressive piece of software!

Christophe.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!