<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
jiaju liu wrote:
<blockquote cite="mid:235741.21209.qm@web15701.mail.cnb.yahoo.com"
type="cite">
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td
style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;"
valign="top">
<div id="yiv674714940">
<table class="yiv674714940" id="yiv674714940bodyDrftID"
border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td id="yiv674714940drftMsgContent"
style="font-size: 10pt; font-family: arial;"><br>
<br>
<blockquote
style="border-left: 2px solid rgb(16, 16, 255); padding-left: 5px; margin-left: 5px;">
<div class="yiv674714940plainMail"><br>
<br>
<br>
>Yes offcause.<br>
<br>
>Php runs inside apache, so you make rules for mysql and apache.<br>
<br>
>Best regards<br>
>Allan Jacobsen<br>
<br>
Thank you for your reply, I haven't found lampp resource agent, so this
means I must write a resource agent for lampp? would you please tell me
more about what I should do ? Thanks a lot<br>
<br>
<br>
No, you need to read what i wrote, lampp is not one piece of software,
so you need to control apache and mysql.<br>
<br>
There is a nice howto here: <a moz-do-not-send="true"
href="http://www.clusterlabs.org/wiki/DRBD_MySQL_HowTo" target="_blank"
rel="nofollow">http://www.clusterlabs.org/wiki/DRBD_MySQL_HowTo</a></div>
<div class="yiv674714940plainMail"> </div>
<div class="yiv674714940plainMail">HI</div>
<div class="yiv674714940plainMail">I do as the website
write, however the resource could not start, command </div>
<div class="yiv674714940plainMail">primitive drbd_mysql
ocf:linbit:drbd \<br>
params drbd_resource="r0" \<br>
op monitor interval="15s"<br>
primitive fs_mysql ocf:heartbeat:Filesystem \<br>
params device="/dev/drbd/by-res/r0" directory="/service/"
fstype="ext3"<br>
primitive ip_mysql ocf:heartbeat:IPaddr2 \<br>
params ip="10.100.100.200" nic="eth0"<br>
primitive mysqld lsb:mysql<br>
primitive apache lsb:apache2<br>
<br>
group mysql fs_mysql ip_mysql mysqld apache <br>
ms ms_drbd_mysql drbd_mysql \<br>
meta master-max="1" master-node-max="1" clone-max="2"
clone-node-max="1" notify="true"<br>
colocation mysql_on_drbd inf: mysql ms_drbd_mysql:Master<br>
order mysql_after_drbd inf: ms_drbd_mysql:promote mysql:start</div>
<div class="yiv674714940plainMail"> </div>
<div class="yiv674714940plainMail">is OK? my package is
pacemaker-1.0.5-4.1 openais-0.80.5-15.1 xampp-linux-1.7.2.tar.gz. Have
you try it before? Thanks a lot<br>
</div>
</blockquote>
</td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
</tbody>
</table>
<br>
<br>
</blockquote>
You do realize that the discussion about openais-0.80 not being
supported has been brought to your attention in previous threads
several months ago with the suggestion to upgrade to a newer version
=>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<a href="http://clusterlabs.org/rpm/">http://clusterlabs.org/rpm/</a><br>
<br>
Also the LSB init scripts (at least for MySQL) aren't working properly.
You should use the ocf:heartbeat:mysql and ocf:heartbeat:apache scripts
for controlling the resources. For apache, since xampp usually puts
it's files in /opt, you might have to change the paths in the apache
primitive to match the new location, if you're using the xampp
installation guide.<br>
<br>
HTH,<br>
Dan<br>
<blockquote cite="mid:235741.21209.qm@web15701.mail.cnb.yahoo.com"
type="cite">
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Pacemaker mailing list: <a class="moz-txt-link-abbreviated" href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a>
<a class="moz-txt-link-freetext" href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a>
Project Home: <a class="moz-txt-link-freetext" href="http://www.clusterlabs.org">http://www.clusterlabs.org</a>
Getting started: <a class="moz-txt-link-freetext" href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a>
Bugs: <a class="moz-txt-link-freetext" href="http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker">http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Dan FRINCU
Systems Engineer
CCNA, RHCE
Streamwide Romania
</pre>
</body>
</html>