[Linux-HA] CIB configuration synch

Andrew Beekhof (GMail) beekhof at gmail.com
Wed Aug 24 15:22:20 MDT 2005


On Aug 24, 2005, at 11:06 PM, Dmitry Korsun wrote:

> Hi all,
>    I have a question about the cib information synchronization  
> between all nodes in the cluster.  From what I understand the  
> cib.xml file should be maintained by using cibadmin tool.

correct

> I suppose that every node should have it's own copy of the {lib  
> path}/heartbeat/crm/cib.xml.

also correct

> Shouldn't the command cibadmin -S cause a synchronization of all  
> the cib.xml files on all nodes to the latest updated one ?

The answer is "sort of"

There are a couple of elements to this...

* the CIB has the concept of being in master or slave mode.
There's not much difference except that in master mode it will  
process anonymous
requests (ones not addressed to any node in particular)

so in your case, who sends out their CIB will depend who was in  
master mode.
alternatively, you can use the -h option to specify where to send the  
instruction.

* the CIB will not accept an update/replacement that is older than  
the current
configuration.
This is a "common-sense" safeguard.

to force an update, you can use the admin_epoch field mark a given  
config as
being the latest

* When nodes join/leave the cluster, the CRM automatically calculates  
who has the
latest configuration and sync's that to all the nodes


Most of the values in the "cib" tag are used in one way or another to  
calculate the "latest" and "best" configuration.   They are described  
here:

http://www.linux-ha.org/ClusterResourceManager/DTD1.0/ 
Annotated#head-6492f66eecdcb8e13e728b795524e37e86d9c4b7

Hope this helps

> This did not happen for my setup (cluster with 2 nodes).  Perhaps  
> there are other steps I am missing.  If not, I'll post my config  
> files.
>
> Thanks
>
> -- 
> ::::::::::::...... .  .   .
> :: Dmitry Korsun
> :: x4095
> :: dmitry.korsun at corp.idt.net
> :::::::::::::::::....... .   .       .
>
> _______________________________________________
> Linux-HA mailing list
> Linux-HA at lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>

--
Andrew Beekhof

"Ooo Ahhh, Glenn McRath" - TISM




More information about the Linux-HA mailing list