<div dir="ltr">Hi Andrew,<div><br></div><div><span style="font-size:13px">>>>>>>>>Could you be a bit more specific about "didn't work" ?</span><br></div><div><span style="font-size:13px"><br></span></div><div>I have installed MariaDB and tried to add the resource mysql (simply created resource) using the simple command "pcs resource create MysQL ocf:heartbeat:mysql" . I know this is incomplete and removed those resource.</div><div><br></div><div>Please see my existing cluster status:</div><div>-------------------------------------------------------------------------------------------</div><div>PCS Status:</div><div>---------------------------------------------------------------------------------------</div><div>Every 2.0s: pcs status                                   Mon Jan 12 14:56:38 2015</div><div><br></div><div>Cluster name: MyCluster</div><div>Last updated: Mon Jan 12 14:56:38 2015</div><div>Last change: Mon Jan 12 14:56:25 2015 via cibadmin on webserver-01</div><div>Stack: corosync</div><div>Current DC: webserver-02 (2) - partition with quorum</div><div>Version: 1.1.10-32.el7_0.1-368c726</div><div>2 Nodes configured</div><div>2 Resources configured</div><div><br></div><div><br></div><div>Online: [ webserver-01 webserver-02 ]</div><div><br></div><div>Full list of resources:</div><div><br></div><div> ClusterIP      (ocf::heartbeat:IPaddr2):       Started webserver-01</div><div> </div><div>PCSD Status:</div><div>  webserver-01: Online</div><div>  webserver-02: Online</div><div><br></div><div>Daemon Status:</div><div>  corosync: active/disabled</div><div>  pacemaker: active/disabled</div><div>  pcsd: active/disabled</div><div>------------------------------------------------------------------------------------------------------------</div><div>DRBD status in webserver-01: (This may be used to setup MySQL)</div><div>---------------------------------------------</div><div><div>[root@webserver-01 ~]# cat /proc/drbd</div><div>version: 8.4.5 (api:1/proto:86-101)</div><div>GIT-hash: 1d360bde0e095d495786eaeb2a1ac76888e4db96 build by mockbuild@, 2014-08-17 22:54:26</div><div><br></div><div> 2: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate C r-----</div><div>    ns:0 nr:12288 dw:12288 dr:728 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:0</div></div><div>----------------------------------------------------------------------------------------------------------------------</div><div>Databases:</div><div>----------------------------------</div><div>MariaDB is installed on both nodes</div><div><br></div><div><div>[root@webserver-01 ~]# mysql -V</div><div>mysql  Ver 15.1 Distrib 5.5.40-MariaDB, for Linux (x86_64) using readline 5.1</div></div><div>--------------------------------------------------------------------------------------------------------------------</div><div><br></div><div>My aim is to create MySQL/MariaDB cluster using pacemaker DRBD on CentOS7.</div><div>Could you please guide me on this or provide any related articles ?</div><div><br></div><div>Regards,</div><div>Shameer</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 12, 2015 at 6:20 AM, Andrew Beekhof <span dir="ltr"><<a href="mailto:andrew@beekhof.net" target="_blank">andrew@beekhof.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
> On 11 Jan 2015, at 5:39 pm, Shameer Babu <<a href="mailto:shameerbabukm@gmail.com">shameerbabukm@gmail.com</a>> wrote:<br>
><br>
> Hi,<br>
><br>
> I have configured Apache cluster by referring you document <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a> and it was good and working. Now I would like to configure a simple MySQL cluster using pacemaker,corosync,DRBD and Pcs in CentOS 7. I was trying add the mysql resource but didn't work.<br>
<br>
</span>Could you be a bit more specific about "didn't work" ?<br>
<span class=""><br>
> In CentOS 7 the database is MariaDB. I would like to configure the resource mysql/mariadb for two nodes. Can any body help me on this?<br>
><br>
> I have configured the following till now:<br>
><br>
> 1. Installed pcs,mariadb,pacemaker,corosync and DRBD<br>
> 2. Configured the resource Virtual IP and it is working fine<br>
> 3. Configured DRBD to sync files in both nodes and /dev/drbd1 is ready to use<br>
><br>
> Please help me to configure the resource maraidb/mysql for my cluster<br>
><br>
> Regards,<br>
> Shameer<br>
</span>> _______________________________________________<br>
> Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
> <a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
><br>
> Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
> Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
> Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
<br>
<br>
_______________________________________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
</blockquote></div><br></div>