[Pacemaker] Cluster wide attribute

Andreas Kurz andreas at hastexo.com
Sat Nov 26 17:29:58 EST 2011


On 11/25/2011 08:39 PM, Yves Trudeau wrote:
> Hi,
>    I am working on the mysql RA and I am hitting a strange problem
> again.  I need to store a cluster wide attribute like this:
> 
> crm_attribute --type crm_config --name replication_info -s
> mysql_replication -v "10.2.2.160|mysql-bin.000140|18276"

yes, this would cause a pengine run ...

> 
> Would this cause a pengine run.  Since I added this piece of code I am
> having this strange behavior after a master switch, here testvirtbox3
> was the previous master.
> 
> Node testvirtbox3: standby
> Online: [ testvirtbox1 testvirtbox2 ]
> 
>  reader_vip_2   (ocf::heartbeat:IPaddr2):       Started testvirtbox2
>  reader_vip_3   (ocf::heartbeat:IPaddr2):       Started testvirtbox2
>  writer_vip     (ocf::heartbeat:IPaddr2):       Started testvirtbox1
>  reader_vip_1   (ocf::heartbeat:IPaddr2):       Started testvirtbox2
>  Master/Slave Set: ms_MySQL
>      Masters: [ testvirtbox2 ]
>      Slaves: [ testvirtbox1 ]
>      Stopped: [ p_mysql:0 ]
> 
> testvirtbox2 is the master but testvirtbox1 has the writer_vip.  My
> config explicitely has those rules concerning writer_vip. I have to use
> cluster attributes since the old implementation using node attributes
> easily fails with non-trivial fail over case.
> 
> colocation writer_vip_coloc_master inf: ms_MySQL:Master writer_vip

default is to use role from left resource ... writer_vip never has
Master role .... use "writer_vip:Started"

Regards,
Andreas

-- 
Need help with Pacemaker?
http://www.hastexo.com/now

> order order_writer_vip_master inf: ms_MySQL:promote writer_vip:start
> 
> Regards,
> 
> Yves
> 
> _______________________________________________
> 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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 286 bytes
Desc: OpenPGP digital signature
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20111126/95c56bbe/attachment-0003.sig>


More information about the Pacemaker mailing list