<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>
<!-- Template generated by Exclaimer Mail Disclaimers on 06:38:25 Mittwoch, 27 Juni 2012 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">P.e41b5dfe-2a5c-43f9-ae67-51ef28d1add3 {
MARGIN: 0cm 0cm 0pt
}
LI.e41b5dfe-2a5c-43f9-ae67-51ef28d1add3 {
MARGIN: 0cm 0cm 0pt
}
DIV.e41b5dfe-2a5c-43f9-ae67-51ef28d1add3 {
MARGIN: 0cm 0cm 0pt
}
TABLE.e41b5dfe-2a5c-43f9-ae67-51ef28d1add3Table {
MARGIN: 0cm 0cm 0pt
}
DIV.Section1 {
page: Section1
}
</style>
<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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
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;}
span.E-MailFormatvorlage17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@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">
<p class="e41b5dfe-2a5c-43f9-ae67-51ef28d1add3"></p>
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi again,<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">I’m still working on my tomcat master/slave resource-script.
<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">Well... the script works fine, as far as ocf-tester can be believed. start / stop / status / monitor / promote and demote are implemented and seem to work, when called from ocf-tester.<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">Now I integradet the resource in crm like:<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 tomcat_res ocf:ucrs:tomcat \<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> params java_home="/usr/lib/jvm/java-7-openjdk-amd64/jre/" catalina_home="/usr/share/tomcat7" catalina_base="/var/lib/tomcat7" tomcat_user="tomcat7" java_opts="lots of java opts" \<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"> op stop interval="0" timeout="120s" \<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> op monitor interval="10s" timeout="30s"<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>
<p class="MsoNormal"><span lang="EN-US">ms ms_tomcat tomcat_res \<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" target-role="Master" is-managed="true"<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 stays in the state of <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">Master/Slave Set: ms_tomcat [tomcat_res]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Slaves: [ proto-cms-appl02 proto-cms-appl01 ]<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">even if I call “crm resource promote ms_tomcat”.<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">I let the tomcat script write some quite elaborate debug output, which NEVER shows an attempt to promote the resource. Any 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">Cheers,<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" style="font-size:8.0pt;font-family:"Arial","sans-serif";color:gray;mso-fareast-language:DE">--<br>
CONET Solutions GmbH </span><span lang="EN-US"><o:p></o:p></span></p>
</div>
<p></p>
<p class="e41b5dfe-2a5c-43f9-ae67-51ef28d1add3"> </p>
<p class="e41b5dfe-2a5c-43f9-ae67-51ef28d1add3">----------------------------<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 </p>
<p class="e41b5dfe-2a5c-43f9-ae67-51ef28d1add3"> ----------------------------</p>
<p class="e41b5dfe-2a5c-43f9-ae67-51ef28d1add3"> </p>
<p class="e41b5dfe-2a5c-43f9-ae67-51ef28d1add3"></p>
</body>
</html>