[ClusterLabs] Live migrate a VM in a cluster group
arvidjaar at gmail.com
Mon May 28 00:03:24 EDT 2018
28.05.2018 05:50, Jason Gauthier пишет:
> 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.
"migrate" is ambiguous here - it may mean moving resource or
live-migrating VM. Show exact command(s) you use and logs related to
> 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
> location cli-prefer-p_CalibreVNC p_CalibreVNC role=Started inf: beta
> Any help is appreciated.
> Users mailing list: Users at clusterlabs.org
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
More information about the Users