[ClusterLabs] Live migrate a VM in a cluster group

Ken Gaillot kgaillot at redhat.com
Tue May 29 11:14:06 EDT 2018


On Sun, 2018-05-27 at 22:50 -0400, Jason Gauthier wrote:
> Greetings,
> 
>  I've set up a cluster intended for VMs.  I created a VM, and have
> been pretty pleased with migrating it back and forth between the two
> nodes.  Now, I am also using the VNC console, which requires
> listening
> on port 59xx.  Of course, once the machine is migrated the IP to
> access the VNC console is different.
> So, I thought I would be clever and create a cluster IP address.  I
> did, and as a stand alone resource it migrates between nodes
> perfectly.  I then put these two primitives into a group.
> 
> When I try to migrate the group nothing happens.
> There aren't any cluster errors, and the logs do not give me any kind
> of indication of error either.
> 
> I'm wondering if this is even something I should expect to work. I
> would certainly like it to.
> Here's the relevant config:
> 
> primitive p_Calibre VirtualDomain \
>         params config="/vms/Calibre/Calibre.xml"
> hypervisor="qemu:///system" migration_transport=ssh \
>         meta allow-migrate=true \
>         op start timeout=120s interval=0 \
>         op stop timeout=120s interval=0 \
>         op monitor timeout=30 interval=10 depth=0 \
>         utilization cpu=2 hv_memory=8192
> primitive p_CalibreVNC IPaddr2 \
>         params ip=192.168.10.10 cidr_netmask=24 nic=br10 \
>         op monitor interval=10s
> 
> group g_Calibre p_CalibreVNC p_Calibre \
>         meta target-role=Started
> 
> location cli-prefer-g_Calibre g_Calibre role=Started inf: alpha
> location cli-prefer-p_Calibre p_Calibre role=Started inf: beta

The group prefers alpha, but its p_Calibre member prefers beta. You're
confusing the cluster :)

Any constraints starting with "cli-" were added by command-line tools
doing move/ban/etc. They stay in effect until they are manually removed
(the same tool will generally have a "clear" option).

> location cli-prefer-p_CalibreVNC p_CalibreVNC role=Started inf: beta
> 
> Any help is appreciated.
-- 
Ken Gaillot <kgaillot at redhat.com>



More information about the Users mailing list