[Pacemaker] updating resource attributes

Andrew Beekhof andrew at beekhof.net
Fri Apr 1 09:23:27 CEST 2011


On Wed, Mar 30, 2011 at 11:12 PM, Alan Jones <falancluster at gmail.com> wrote:
> What I'm looking for is a way to pass parameters to my resource stop operation.

Rather than ask about a specific detail, why not start with what
you're trying to achieve?

> My first attempt has been to set the paramter with crm_resource and
> then stop the resource.
> 1) crm_resource --resource myres --set-parameter myparam
> --parameter-value myvalue
> 2) crm_resource --resource myres --set-parameter target-role --meta
> --parameter-value Stopped
>
> Unfortunately, step 1 results in the resource being restarted in order
> to update the agent.
> As this resource takes time to stop and start, it is not a good design for me.
> A friend suggested defining another resource with null start and stops
> and put the params in there, however, I have two objections:
> 1. the params would no longer be instance specific
> 2. it is more difficult to access the values, i.e. instance params
> come in the environment
>
> My first choice would be to disable this restart on param change
> behavior of Pacemaker.
> Does anyone have suggestions?
> Alan
>
> _______________________________________________
> 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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
>



More information about the Pacemaker mailing list