[Pacemaker] How to live migrate the kvm vm

Arnold Krille arnold at arnoldarts.de
Mon Dec 12 06:52:10 EST 2011


On Monday 12 December 2011 11:22:51 邱志刚 wrote:
> I have 2-node cluster of pacemaker,I want to migrate the kvm vm with
> command "migrate", but I found the vm isn't migrated,
> actually it is shutdown and then start on other node. I checked the log and
> found the vm is stopped but not migrated.

> How could I live migrate the vm ? The configuration :
> crm(live)configure# show
> primitive test1 ocf:heartbeat:VirtualDomain \
> 	params config="/etc/libvirt/qemu/test1.xml"
> hypervisor="qemu:///system" \
> 	meta allow-migrate="ture" priority="100" target-role="Started"
> is-managed="true" \
> 	op start interval="0" timeout="120s" \
> 	op stop interval="0" timeout="120s" \
> 	op monitor interval="10s" timeout="30s" depth="0" \
> 	op migrate_from interval="0" timeout="120s" \
> 	op migrate_to interval="0" timeout="120"

I hope that "ture" is only a typo when writing the email. Otherwise its 
probably the reason why your machine stop-start instead of a nice migration. 
Try with 'allow-migrate="true"' and see if that helps.

Have fun,

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20111212/051f5b12/attachment-0003.sig>

More information about the Pacemaker mailing list