Hi,
On Wed, Aug 3, 2011 at 5:23 PM, <[email protected]> wrote:
> Hi
>
> When we do a crm resource migrate resource-name, crm add a cli-preference
> in the configuration for
> this resource.
> I wonder if there is a way to tell Pacemaker that, once the resource is
> running on the new target node, it could automatically remove the
> cli-preference ?
> or for example after a given life-time for this cli-preference ?
# crm resource help migrate
Migrate a resource to a different node. If node is left out, the
resource is migrated by creating a constraint which prevents it from
running on the current node. Additionally, you may specify a
lifetime for the constraint---once it expires, the location
constraint will no longer be active.
Usage:
...............
migrate <rsc> [<node>] [<lifetime>]
...............
You can specify a lifetime.
HTH,
Dan
> (knowing that we have a configuration with resource-stickiness etc. which
> avoids
> the automatic failback of the resource when the cli-preference is removed)
>
> Thanks
> Alain Moullé
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
--
Dan Frincu
CCNA, RHCE
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems