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

Rasto Levrinc rasto.levrinc at gmail.com
Thu Apr 11 12:46:32 UTC 2013


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

Rasto




More information about the Pacemaker mailing list