[Pacemaker] Moving multi-state resources

Dejan Muhamedagic dejanmm at fastmail.fm
Wed Dec 12 08:16:09 EST 2012


Hi,

On Wed, Dec 12, 2012 at 03:50:01PM +0530, pavan tc wrote:
> Hi,
> 
> My requirement was to do some administration on one of the nodes where a
> 2-node multi-state resource was running.
> To effect a resource instance stoppage on one of the nodes, I added a
> resource constraint as below:
> 
> crm configure location ms_stop_res_on_node <ms_resource> rule -inf: \#uname
> eq `hostname`
> 
> The resource cleanly moved over to the other node. Incidentally, the
> resource was the master on this node
> and was successfully moved to a master state on the other node too.
> Now, I want to bring the resource back onto the original node.
> 
> But the above resource constraint seems to have a persistent behaviour.
> crm resource unmigrate <ms_resource> does not seem to undo the effects of
> the constraint addition.

You can try to remove your constraint:

crm configure delete ms_stop_res_on_node

migrate/unmigrate generate/remove special constraints.

Thanks,

Dejan

> 
> I think the location constraint is preventing the resource from starting on
> the original node.
> How do I delete this location constraint now?
> 
> Is there a more standard way of doing such administrative tasks? The
> requirement is that I do not want to offline the
> entire node while doing the administration but rather would want to stop
> only the resource instance, do the admin work
> and restart the resource instance on the node.
> 
> Thanks,
> Pavan

> _______________________________________________
> 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