Hello again, I haven't finished full port of my script but most of the work is already done:
http://hydra.azilian.net/gitweb/?p=linux-ha/.git;a=blob_plain;f=mysql- replica;hb=HEAD I still have some tests to finish and I have one problem with which I would like some help. I implemented the replication awareness within the notify section of the RA where I have all the information about the state of the cluster. However this information is missing in different states of the RA. This is what makes the development a little bit slow :) So my problem is how to find the master_host IP? I need the IP since with replication I want to skip the name resolving. Currently I do that by adding the hostname to /etc/hosts and get it every time I do a demote. Will there be a better way ? I'll continue development and I hope to finish it by the end of the week. Best regards, Marian On Wednesday 03 February 2010 00:51:18 Marian Marinov wrote: > This Friday I'll polish the code and make it more general. Then I'll post > the enhancement bugzilla. > > Regards, > Marian > > On Tuesday 02 February 2010 11:49:49 Florian Haas wrote: > > Hello, > > > > yes please! Could you file an enhancement bugzilla, attach your updated > > RA version (or a patch), and let us know the bug ID? > > > > Thanks! > > Cheers, > > Florian > > > > On 2010-02-01 15:34, Marian Marinov wrote: > > > I'm currently running my cluster with my modified version of the mysql > > > ra. > > > > > > Do you want to see my changes? > > > > > > Regards, > > > Marian > > > > > > On Monday 01 February 2010 14:52:04 Florian Haas wrote: > > >> I am currently working on extending the MySQL RA in this way, and will > > >> merge this some time after the impending resource agents release is > > >> out. > > >> > > >> Cheers, > > >> Florian > > >> > > >> On 2010-02-01 11:32, Marian Marinov wrote: > > >>> Hello, > > >>> I have a cluster of 2 nodes, on which I have MySQL with Master/Slave > > >>> replication. > > >>> > > >>> What I want to do is, use a mysql ra which will know which server is > > >>> master and which is slave so I can have a Master/Slave primitive in > > >>> my crm configuration which will monitor those. > > >>> > > >>> For now I didn't found such a RA. Is there any? > > >>> > > >>> My approach to this problem is to use the current mysql ra and to > > >>> modify it so it becomes replication aware. What I did was to add > > >>> notify functionality and a few more OCF variables. > > >>> > > >>> > > >>> > > >>> --------------------------------------------------------------------- > > >>>-- - > -- Best regards, Marian Marinov
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Linux-HA mailing list Linux-HA@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems