[Pacemaker] racing crm commands... last write wins?

Andrew Beekhof andrew at beekhof.net
Thu Apr 11 18:04:17 EDT 2013


On 11/04/2013, at 10:46 PM, Rasto Levrinc <rasto.levrinc at gmail.com> wrote:

> On Thu, Apr 11, 2013 at 2:04 PM, Brian J. Murrell <brian at interlinx.bc.ca> wrote:
>> On 13-04-11 07:37 AM, Brian J. Murrell wrote:
>>> 
>>> In exploring all options, how about pcs?  Does pcs' "resource create
>>> ..." for example have the same read+modify+replace problem as crm
>>> configure or does pcs resource create also only send proper fragments to
>>> update just the part of the CIB it's operating on?
>> 
>> Having just cracked pcs open, it doesn't seem to.  It seems to create an
>> XML string which it then applies to the CIB with:
>> 
>> cibadmin -o resources -C -X $xml_resource_string
> 
> It seems though that it replaces the whole CIB in some cases like m/s
> resources.

I didn't think it did ever.
Chris?

> Only LCMC never does. But it's probably probably not that
> scriptable, (yet). :)
> 
> Rasto
> 
> _______________________________________________
> 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