<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Sprechblasentext Zchn";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.SprechblasentextZchn
{mso-style-name:"Sprechblasentext Zchn";
mso-style-priority:99;
mso-style-link:Sprechblasentext;
font-family:"Tahoma","sans-serif";}
p.910ffdaf-c2aa-48af-a410-9a0a90aa7782, li.910ffdaf-c2aa-48af-a410-9a0a90aa7782, div.910ffdaf-c2aa-48af-a410-9a0a90aa7782
{mso-style-name:910ffdaf-c2aa-48af-a410-9a0a90aa7782;
mso-style-priority:99;
margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
span.E-MailFormatvorlage21
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.E-MailFormatvorlage22
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
p.BalloonText, li.BalloonText, div.BalloonText
{mso-style-name:"Balloon Text";
mso-style-link:"Balloon Text Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
span.E-MailFormatvorlage25
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hi Attila,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">the strange thing is: Running it from shell works just fine:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">/usr/lib/ocf/resource.d/heartbeat # ./mysql monitor<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">mysql[21716]: INFO: MySQL is not running<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">/usr/lib/ocf/resource.d/heartbeat # ./mysql start<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">mysql[21771]: INFO: MySQL is not running<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">mysql[21771]: INFO: MySQL is not running<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">mysql[21771]: DEBUG: MySQL monitor succeeded<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">mysql[21771]: INFO: MySQL started<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">usr/lib/ocf/resource.d/heartbeat # ./mysql monitor<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">mysql[22142]: DEBUG: MySQL monitor succeeded<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">/usr/lib/ocf/resource.d/heartbeat # echo $?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">/usr/lib/ocf/resource.d/heartbeat # ps -ef | grep mysql<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">root 21855 1 0 13:17 pts/0 00:00:00 /bin/sh /usr/bin/mysqld_safe --defaults-file=/etc/my.cnf --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/run/mysqld/mysqld.sock --datadir=/var/lib/mysql --user=mysql<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">usr/lib/ocf/resource.d/heartbeat # ./mysql stop<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">mysql[24557]: INFO: MySQL still hasn't stopped yet. Waiting...<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">mysql[24557]: INFO: MySQL still hasn't stopped yet. Waiting...<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">mysql[24557]: INFO: MySQL still hasn't stopped yet. Waiting...<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">mysql[24557]: INFO: MySQL is not running<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">mysql[24557]: INFO: MySQL is not running<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">mysql[24557]: INFO: MySQL stopped<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">/usr/lib/ocf/resource.d/heartbeat # echo $?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">/usr/lib/ocf/resource.d/heartbeat # ./mysql monitor<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">mysql[24816]: INFO: MySQL is not running<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Any further ideas?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thank you so far,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Andreas<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Von:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Attila Megyeri [mailto:amegyeri@minerva-soft.com]
<br>
<b>Gesendet:</b> Dienstag, 24. Januar 2012 10:03<br>
<b>An:</b> The Pacemaker cluster resource manager<br>
<b>Betreff:</b> Re: [Pacemaker] Failed actions: ...not installed<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Hi Andreas,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">I would give it a try from shell.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Set all required environment variables, such as</span><span lang="EN-US" style="color:#1F497D;mso-fareast-language:ZH-CN"> (as in your cib)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">export OCF_ROOT=/usr/lib/ocf<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">export OCF_RESKEY_binary="/usr/bin/mysqld_safe"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">export OCF_RESKEY_config="/etc/mysql/my.cnf"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">export OCF_RESKEY_datadir="/var/lib/mysql"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">export OCF_RESKEY_user="mysql"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">export OCF_RESKEY_pid="/var/run/mysqld/mysqld.pid"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">export OCF_RESKEY_socket="/var/run/mysqld/mysqld.sock"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">….<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">and then execute the RA from its local directory. (e.g. .</span><span lang="EN-US" style="color:#1F497D;mso-fareast-language:ZH-CN">/mysql monitor or ./mysql start )
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">You may see why it fails</span><span lang="EN-US" style="color:#1F497D;mso-fareast-language:ZH-CN">, or add some logging into the RA itself.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Cheers,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Attila<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Stallmann, Andreas
<a href="mailto:[mailto:AStallmann@CONET.DE]">[mailto:AStallmann@CONET.DE]</a> <br>
<b>Sent:</b> 2012. január 24. 9:46<br>
<b>To:</b> <a href="mailto:pacemaker@oss.clusterlabs.org">pacemaker@oss.clusterlabs.org</a><br>
<b>Subject:</b> [Pacemaker] Failed actions: ...not installed<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal">Hi there,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">What does the following error mean:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Failed actions:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> p_mysql:1_start_0 (node=int-ipfuie-mgmt02, call=15, rc=5, status=complete): not installed<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> p_mysql:0_start_0 (node=int-ipfuie-mgmt01, call=15, rc=5, status=complete): not installed<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">The resource script “mysql” IS installed, it’s where all the other scripts are:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">/usr/lib/ocf/resource.d/heartbeat # ls -lh mysql<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">-rwxr-xr-x 1 root root 43K Jan 23 16:36 mysql<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">There’s nothing (at least nothing obvious) in /var/log/messages, that reveals any further information.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Here’s my configuration (for the primitive and for the M/S setup):<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">primitive p_mysql ocf:heartbeat:mysql \<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> params config="/etc/my.cnf" pid="/var/run/mysql/mysql.pid" socket="/var/run/mysql/mysql.sock" replication_user="repl" replication_passwd="blafasel" max_slave_lag="15" evict_outdated_slaves="false" binary="/usr/bin/mysqld_safe"
test_user="root" test_passwd="blafasel" \<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> op start interval="0" timeout="120s" \<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> op stop interval="0" timeout="300s" \<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> op monitor interval="5s" role="Master" timeout="30s" OCF_CHECK_LEVEL="1" \<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> op monitor interval="2s" role="Slave" timeout="30s" OCF_CHECK_LEVEL="1"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">primitive pingy_res ocf:pacemaker:ping \<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> params dampen="5s" multiplier="1000" host_list="10.30.0.41 10.30.0.42 10.30.0.1" \<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> op monitor interval="15s" timeout="20s" \<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> op start interval="0" timeout="60s"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">ms ms_MySQL p_mysql \<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> meta master-max="1" master-node-max="1" clone-max="2" notify="true" target-role="Started"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Any ideas on how to get this running?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Andreas<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="910ffdaf-c2aa-48af-a410-9a0a90aa7782"> <o:p></o:p></p>
<p class="910ffdaf-c2aa-48af-a410-9a0a90aa7782">----------------------------<br>
CONET Solutions GmbH, Theodor-Heuss-Allee 19, 53773 Hennef.<br>
Registergericht/Registration Court: Amtsgericht Siegburg (HRB Nr. 9136)<br>
Geschäftsführer/Managing Director: Anke Höfer <o:p></o:p></p>
<p class="910ffdaf-c2aa-48af-a410-9a0a90aa7782"> ----------------------------<o:p></o:p></p>
<p class="910ffdaf-c2aa-48af-a410-9a0a90aa7782"> <o:p></o:p></p>
</div>
</body>
</html>