[DRBD-user] [Pacemaker] Automatic constraint creation when migrate

Lars Marowsky-Bree lmb at suse.com
Fri Dec 6 20:49:21 CET 2013

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.

On 2013-12-05T09:32:56, Gaëtan Slongo <gslongo at it-optics.com> wrote:

> As soon as I try to migrate resource (with crm resource migrate
> drbd_master_slave_ServicesConfigs1) a new rsc_constraint is
> automatically created and my drbd resource is stopped on the "slave
> node". Then my DRDB resource is degraded. When I launch the migration
> command a message appears :
> crm(live)# resource migrate drbd_master_slave_ServicesConfigs1
> WARNING: Creating rsc_location constraint
> 'cli-standby-drbd_master_slave_ServicesConfigs1' with a score of
> -INFINITY for resource drbd_master_slave_ServicesConfigs1 on keskonrix1.
>     This will prevent drbd_master_slave_ServicesConfigs1 from running on
> keskonrix1 until the constraint is removed using the 'crm_resource -U'
> command or manually with cibadmin
>     This will be the case even if keskonrix1 is the last node in the cluster
>     This message can be disabled with -Q
> The constraint created is :
> location cli-standby-drbd_master_slave_ServicesConfigs1
> drbd_master_slave_ServicesConfigs1 \
>     rule $id="cli-standby-rule-drbd_master_slave_ServicesConfigs1" -inf:
> #uname eq keskonrix1
> I know pacemaker stops DRBD because of this constraint (and probably the
> -inf) but I don't know why this constraint is created.

It is created because you called "crm resource migrate" (which is a
wrapper around crm_resource here).

It is not "automatically created"; it's the way how the "migrate"
command alters the configuration to enact the command you gave.

You're telling pacemaker you want the resource moved away from a node.
So that's what it does.

> things but I did'nt find any solution. What should I do to prevent my
> resource being automatically stopped ?

Don't tell the cluster you want it to not be running on that node.

It appears this is not what you actually want. If you'd explain what it
is you're trying to achieve, maybe we can tell you how to do that?


Architect Storage/HA
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 21284 (AG Nürnberg)
"Experience is the name everyone gives to their mistakes." -- Oscar Wilde

More information about the drbd-user mailing list