[Pacemaker] Live migration with order constraints
Andreas Kurz
andreas at hastexo.com
Thu Nov 10 11:51:07 CET 2011
On 11/09/2011 10:46 PM, Dmitry Golubev wrote:
> Hi,
>
> I am trying to make a live migration of virtual machines (custom resource
> agent). The idea is to suspend the virtual machine on one node, remount a
> filesystem (on top of DRBD) on another node and resume the virtual machine.
May I ask: Why? There is already the VirtualDomain RA which works fine,
including live migration.
> I have order constraints there to say that the virtual machine can only be
> run once the filesystem is mounted on the node. The problem is, however, that
> I can't live-migrate with such constraints:
>
> notice: check_stack_element: Cannot migrate vcluster-vz1 due to dependency on
> drbd-r0-fs (order)
>
> If I understand correctly, pacemaker can not migrate a resource if it depends
> on some other resource. But is there any way to force other resources to move
> together with the migrating resource?
Yes, migration only works without order-contraints the migrating service
depends on ... and no way to force it.
>
> In the worst case scenario I will try to have an additional parameter to my
> resource agent to force move the dependent resources... but I am looking for
> the right way to solve this problem, not some ugly hack.
>
> Any ideas?
Use existing, working and tested RAs.
Regards,
Andreas
--
Need help with Pacemaker?
http://www.hastexo.com/now
>
> Thanks,
> Dmitry
>
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 286 bytes
Desc: OpenPGP digital signature
URL: <http://oss.clusterlabs.org/pipermail/pacemaker/attachments/20111110/e3f38660/attachment.sig>
More information about the Pacemaker
mailing list