[Pacemaker] crm_resource --un-move option

Andrew Beekhof andrew at beekhof.net
Mon May 3 03:19:02 EDT 2010


On Thu, Apr 29, 2010 at 1:46 PM, Schaefer, Diane E
<diane.schaefer at unisys.com> wrote:
> Hi,
>
>    I would like to migrate my resources from one node to the other and
> automatically remove the cli-prefer-expr constraint so it can move back if
> needed.  I have a parent resource with many children.  When I issue the
> “crm_resource –r <parent-rsc> -M ” command, I see the resources stop.
>   However, depending on how long they take to stop and restart on the other
> node my “crm_resource –r <parent-rsc> -U” sometimes actually prevents the
> migrate from happening.  It seems that if the un-move is issued before the
> parent is actually started (please confirm),

Correct, the constraint created by -M is removed as soon as -U is
called and the cluster reacts to the change ASAP.

> that the cli-prefer-expr
> constraint is removed and the resources are restarted on the original node.
> I would like the removal of the cli-prefer-expr constraint to be removed
> automatically by my script.  Any suggestions on how I can know when it’s
> safe to un-move?

I'd try a loop in combination with crm_resource -W -r $last_rsc_to_move




More information about the Pacemaker mailing list