Hi,

On Thu, Jan 13, 2011 at 03:43:01PM +0100, Alain.Moulle wrote:
> Hi Dejan,
> 
> I 'd like to undestand the way action "migrate" is managed by crm ...
> 
> In fact, for whatever resource type (with whatever ocf script) , we can
> execute a command such as :
> crm resource migrate resource-name
> but how is it managed by the ocf script ?
> because in several scripts , there are migrate_to and migrate_from functions
> and in others no such functions.
> 
> Does that mean that if there are such migrate functions, crm call these 
> functions,
> and if not , then crm call the stop function and then the start function 
> for the dest node of
> migration ?

The command name (migrate) is somewhat unfortunate. It is
actually equivalent to "crm resource move". The move/migrate
doesn't do anything directly with resource agents, but inserts a
location constraint which makes the resource move/migrate to
another node. How is that done depends on the resource. Some
resources (such as Xen) can do live migrate, but for most it's
just stop on node1 and start on node2.

Thanks,

Dejan

> Thanks
> Alain
> 
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to