<p><br /> Hi Eliot,</p>
<p> </p>
<p>thanks for your quick answer.</p>
<p>I have already read all links you have mentioned. I am studying this a lot and making some progress.</p>
<p>But the thing is: I think there is something strange because, as I mentioned, <em>crm ra classes</em> shows nothing. Is this normal?</p>
<p> </p>
<p>The only resource I got runnig was a failovre IP one. To get this I created a primitive with</p>
<p><em>primitive failover-ip ocf:heartbeat:IPaddr \<br /> params ip="172.27.17.210" \<br /> op monitor interval="10s"</em></p>
<p>and it is working fine.</p>
<p>I would like to have a shell script monitored by Pacemaker. But I have not found a way to do it yet.</p>
<p> </p>
<p>thanks again,</p>
<p>Alan</p>
<p> </p>
<p> </p>
<p>Em 27/05/2009 09:42, <strong><span>Eliot Gable < egable@broadvox.net ></span></strong> escreveu:</p>
<blockquote style="border-left: 2px solid #6868cc; margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br /> <!--[if !mso]>
<div class='notviscode'>v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);}</div>
<![endif]-->
<div class="notviscode"><!--  /* 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:0in;    margin-bottom:.0001pt;  font-size:12.0pt;       font-family:"Times New Roman","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:0in;       mso-margin-bottom-alt:auto;     margin-left:0in;        font-size:12.0pt;       font-family:"Times New Roman","serif";} p.MsoAcetate, li.MsoAcetate, div.MsoAcetate         {mso-style-priority:99;         mso-style-link:"Balloon Text Char";   margin:0in;     margin-bottom:.0001pt;  font-size:8.0pt;        font-family:"Tahoma","sans-serif";} span.EmailStyle19       {mso-style-type:personal-reply;         font-famil
 y:"Calibri","sans-serif";  color:#1F497D;} span.BalloonTextChar    {mso-style-name:"Balloon Text Char";  mso-style-priority:99;  mso-style-link:"Balloon Text";        font-family:"Tahoma","sans-serif";} .MsoChpDefault  {mso-style-type:export-only;} @page Section1    {size:8.5in 11.0in;     margin:1.0in 1.0in 1.0in 1.0in;} div.Section1   {page:Section1;} --></div>
<!--[if gte mso 9]><xml> <o:shapedefaults v:ext="edit" spidmax="2050" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext="edit"> <o:idmap v:ext="edit" data="1" /> </o:shapelayout></xml><![endif]-->
<div class="Section1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"><a href="http://clusterlabs.org/wiki/Documentation">http://clusterlabs.org/wiki/Documentation</a></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:">First, read this (probably ten times or so, since it won’t make complete sense and you will miss various details the first couple of times):</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"><a href="http://clusterlabs.org/mediawiki/images/f/fb/Configuration_Explained.pdf">http://clusterlabs.org/mediawiki/images/f/fb/Configuration_Explained.pdf</a></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:">Then, if you want to use the CLI, read this:</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"><a href="http://clusterlabs.org/mediawiki/images/8/8d/Crm_cli.pdf">http://clusterlabs.org/mediawiki/images/8/8d/Crm_cli.pdf</a></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:">Or check out any other links on that main documentation site.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:">I strongly recommend you start out learning with the XML CIB and then, if you want, move to the CLI. Everything makes much more sense if you understand the  XML stuff. However, keep in mind that there is a steep learning curve to all of this. I have been working with it 3-4 days a week for over a month now, and there are still some things I don’t fully understand. By “working with it” I mean I have written 3 resource  agents, one of which is a 800+ line Master/Slave RA, and a 600+ line XML CIB using every form of primitive, clones, master/slave resources, groups, location constraints, co-location constraints, all forms of rules, etc. So, when I say that I’ve done all that  and I _<em>still</em>_ don’t fully understand everything about this system, that should give you some idea just how much there is to learn. Don’t expect to have it mastered in a couple of days. </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"> </span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:">Eliot Gable<br /> Senior Engineer<br /> 1228 Euclid Ave, Suite 390<br /> Cleveland, OH 44115<br /> <br /> Direct: 216-373-4808<br /> Fax: 216-373-4657<br /> </span><span style="color:#1F497D"><a onclick="window.open(this.href);return false;" href="http://mce_host/compose?to=egable@broadvox.net"><span style="font-size:10.0pt;font-family:">egable@broadvox.net</span></a><br /> <br /> </span><span style="font-size:10.0pt;font-family:"><img id="Picture_x0020_1" src="http://mce_host/compose/cid:image001.gif@01C9DEA5.C8F94800" border="0" alt="cid:212454920@11022008-1E22" width="180" height="57" /></span><span style="color:#1F497D"></span></p>
<p class="MsoNormal"><span style="font-family:">CONFIDENTIAL COMMUNICATION.  This e-mail and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom it is addressed.  If you are not the intended recipient, please call me immediately.  BROADVOX is a registered trademark of Broadvox, LLC.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"> </span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><strong><span style="font-size:10.0pt;font-family:">From:</span></strong><span style="font-size:10.0pt;font-family:"> acl1978 [mailto:acl1978@bol.com.br] <br /> <strong>Sent:</strong> Wednesday, May 27, 2009 8:14 AM<br /> <strong>To:</strong> pacemaker@oss.clusterlabs.org <br /> <strong>Subject:</strong> [Pacemaker] Managing resources - classes</span></p>
</div>
<p class="MsoNormal"> </p>
<p>Hi All,</p>
<p> </p>
<p>I am new in Pacemaker and having some problems with it.</p>
<p>My task is to configure heartbeat with two nodes and make one shell script managed by it (or by pacemaker). The fact is: Pacemaker needs to manage this shell script and make it run again if it sttoped.</p>
<p>I have installed heartbeat and Pacemaker and it seems that they are correctly installed. At least I can see that both nodes are configured and with a online status (<em>crm status</em>). But something strange is happening when I try <em>crm ra classes</em> command. Nothing is showed. I dont know if some configuration is missing. Is ther any problem with it? How can I have a list of classes?</p>
<p>In addition, how colud be a primitive to manage this shell script?</p>
<p>I would be grateful even if you point me some books, tutorials, manuals, etc... I have searched a lot but could not find very good information about it.</p>
<p> </p>
<p>Thanks,</p>
<p>Alan</p>
</div>
<br /> 
<hr />
<span style="font-family: Arial; color: gray; font-size: xx-small;">CONFIDENTIAL. This e-mail and any attached files are confidential and should be destroyed and/or returned if you are not the intended and proper recipient.<br /> </span> 
<hr style="margin:15px 0 10px" size="1" />
<br /></blockquote>