[one-dev] Live migration / recovery

Ruben S. Montero rsmontero at opennebula.org
Sun Jan 12 14:36:30 PST 2014


Hi Gareth

As the migrate script can be easily updated we do not provide any hook for
that. I'd go to kvm/migrate, and do a simple if [ $? ... after the virsh
command to kill the cache on the target host.

Cheers

Ruben


On Thu, Dec 19, 2013 at 12:54 PM, Gareth Bult <gareth at linux.co.uk> wrote:

> Hi,
>
> I implemented live migration for the VDC driver a few weeks back and on
> the whole it seems to work
> quite well. The "premigrate" script creates a cache instance on the target
> server and puts the source
> cache into proxy mode, then the "postmigrate" script kills the original
> cache instance.
>
> Problem :: if the migration fails, I'm left with a running cache on both
> the source and target servers, with
> the source cache in proxy mode. I have a 1-line CLI command to revert the
> issue, but I need to hook into
> the system in order to call it.
>
> How to do I do this, I guess effectively I need something like
> "postmigrate_fail" .. ???
>
> tia
> Gareth.
>
> --
> *Gareth Bult*
> “The odds of hitting your target go up dramatically when you aim at it.”
>
>
>
>
> _______________________________________________
> Dev mailing list
> Dev at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/dev-opennebula.org
>
> --
> <http://lists.opennebula.org/listinfo.cgi/dev-opennebula.org>
> --
> Ruben S. Montero, PhD
> Project co-Lead and Chief Architect<http://lists.opennebula.org/listinfo.cgi/dev-opennebula.org>
> OpenNebula - Flexible Enterprise Cloud Made Simple
>  <http://lists.opennebula.org/listinfo.cgi/dev-opennebula.org>
> www.OpenNebula.org | rsmontero at opennebula.org | @OpenNebula
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/dev-opennebula.org/attachments/20140112/23dcb8a1/attachment.htm>


More information about the Dev mailing list