[Pacemaker] "allow-migrate"

Andrew Beekhof andrew at beekhof.net
Thu Mar 29 05:23:29 UTC 2012


it doesn't mean the resource can't be moved to another host, only that
it will do it with a stop+start rather than a migrate action.

2012/3/29 sinchb <sinchb at 163.com>:
> I have a resource named myrsc .And it have the allow-migrate meta-attribute
> set to false.However,when I tried to migrate it ,I successed.Why it is?
> Definition:
>     primitive myrsc ocf:heartbeat:IPaddr2 \
>        params ip="1.1.1.1" cidr_netmask="32" \
>        meta target-role="Started" allow-migrate="false" \
>        op monitor interval="10" timeout="120"
> Command:
> crm(live)resource# show myrsc
> resource myrsc is running on: h10_147
> crm(live)resource# migrate myrsc
> WARNING: Creating rsc_location constraint 'cli-standby-myrsc' with a score
> of -INFINITY for resource myrsc on h10_147.
>  This will prevent myrsc from running on h10_147 until the constraint is
> removed using the 'crm_resource -U' command or manually with cibadmin
>  This will be the case even if h10_147 is the last node in the cluster
>  This message can be disabled with -Q
> crm(live)resource# show myrsc
> resource myrsc is running on: h10_148
>
> As the output shown above ,when I tried to migrate myrsc , I successed,which
> is not expected and  really make me confused.
> I am looking forward to your reply.
>
>
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
>




More information about the Pacemaker mailing list