[Linux-HA] About cli-preference
df.cluster at gmail.com
Wed Aug 3 09:00:56 MDT 2011
On Wed, Aug 3, 2011 at 5:23 PM, <alain.moulle at bull.net> wrote:
> 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.
migrate <rsc> [<node>] [<lifetime>]
You can specify a lifetime.
> (knowing that we have a configuration with resource-stickiness etc. which
> the automatic failback of the resource when the cli-preference is removed)
> Alain Moullé
> Linux-HA mailing list
> Linux-HA at lists.linux-ha.org
> See also: http://linux-ha.org/ReportingProblems
More information about the Linux-HA