<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:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><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:0in;
        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.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.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
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;}
-->
</style><!--[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]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="Section1">
<p class="MsoNormal">In the past, I have always done things by manually creating a CIB XML file and then importing it. But, to save time, I thought I would try CRM. So, I made this script:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">#!/bin/bash<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">crm<<EOF<o:p></o:p></p>
<p class="MsoNormal">configure<o:p></o:p></p>
<p class="MsoNormal"> erase<o:p></o:p></p>
<p class="MsoNormal">clone apache ocf:heartbeat:apache params configfile=/etc/httpd/httpd.conf<o:p></o:p></p>
<p class="MsoNormal"> monitor apache 1s:5s<o:p></o:p></p>
<p class="MsoNormal"> clone mysql ocf:heartbeat:mysql<o:p></o:p></p>
<p class="MsoNormal"> monitor mysql 1s:5s<o:p></o:p></p>
<p class="MsoNormal"> clone postgres ocf:heartbeat:postgresql params pgctl=/usr/bin/pg_ctl<o:p></o:p></p>
<p class="MsoNormal"> monitor postgres 1s:5s<o:p></o:p></p>
<p class="MsoNormal">EOF<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">But, when I run it, I get this:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">ERROR: 3: object ocf:heartbeat:apache does not exist<o:p></o:p></p>
<p class="MsoNormal">ERROR: 4: object apache does not exist<o:p></o:p></p>
<p class="MsoNormal">ERROR: 5: object ocf:heartbeat:mysql does not exist<o:p></o:p></p>
<p class="MsoNormal">ERROR: 6: object mysql does not exist<o:p></o:p></p>
<p class="MsoNormal">ERROR: 7: object ocf:heartbeat:postgresql does not exist<o:p></o:p></p>
<p class="MsoNormal">ERROR: 8: object postgres does not exist<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">But, the files exist:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"># ls -c1 /usr/lib/ocf/resource.d/heartbeat/<o:p></o:p></p>
<p class="MsoNormal">ldirectord<o:p></o:p></p>
<p class="MsoNormal">WAS6<o:p></o:p></p>
<p class="MsoNormal">WinPopup<o:p></o:p></p>
<p class="MsoNormal">Xen<o:p></o:p></p>
<p class="MsoNormal">Xinetd<o:p></o:p></p>
<p class="MsoNormal">scsi2reservation<o:p></o:p></p>
<p class="MsoNormal">sfex<o:p></o:p></p>
<p class="MsoNormal">SysInfo<o:p></o:p></p>
<p class="MsoNormal">tomcat<o:p></o:p></p>
<p class="MsoNormal">VIPArip<o:p></o:p></p>
<p class="MsoNormal">VirtualDomain<o:p></o:p></p>
<p class="MsoNormal">vmware<o:p></o:p></p>
<p class="MsoNormal">WAS<o:p></o:p></p>
<p class="MsoNormal">SAPDatabase<o:p></o:p></p>
<p class="MsoNormal">SAPInstance<o:p></o:p></p>
<p class="MsoNormal">SendArp<o:p></o:p></p>
<p class="MsoNormal">ServeRAID<o:p></o:p></p>
<p class="MsoNormal">SphinxSearchDaemon<o:p></o:p></p>
<p class="MsoNormal">Squid<o:p></o:p></p>
<p class="MsoNormal">Stateful<o:p></o:p></p>
<p class="MsoNormal">pgsql<o:p></o:p></p>
<p class="MsoNormal">pingd<o:p></o:p></p>
<p class="MsoNormal">portblock<o:p></o:p></p>
<p class="MsoNormal">Pure-FTPd<o:p></o:p></p>
<p class="MsoNormal">Raid1<o:p></o:p></p>
<p class="MsoNormal">Route<o:p></o:p></p>
<p class="MsoNormal">rsyncd<o:p></o:p></p>
<p class="MsoNormal">ManageRAID<o:p></o:p></p>
<p class="MsoNormal">ManageVE<o:p></o:p></p>
<p class="MsoNormal">mysql<o:p></o:p></p>
<p class="MsoNormal">mysql-proxy<o:p></o:p></p>
<p class="MsoNormal">nfsserver<o:p></o:p></p>
<p class="MsoNormal">oracle<o:p></o:p></p>
<p class="MsoNormal">oralsnr<o:p></o:p></p>
<p class="MsoNormal">ICP<o:p></o:p></p>
<p class="MsoNormal">IPsrcaddr<o:p></o:p></p>
<p class="MsoNormal">iscsi<o:p></o:p></p>
<p class="MsoNormal">iSCSILogicalUnit<o:p></o:p></p>
<p class="MsoNormal">iSCSITarget<o:p></o:p></p>
<p class="MsoNormal">LinuxSCSI<o:p></o:p></p>
<p class="MsoNormal">LVM<o:p></o:p></p>
<p class="MsoNormal">MailTo<o:p></o:p></p>
<p class="MsoNormal">db2<o:p></o:p></p>
<p class="MsoNormal">Delay<o:p></o:p></p>
<p class="MsoNormal">eDir88<o:p></o:p></p>
<p class="MsoNormal">Evmsd<o:p></o:p></p>
<p class="MsoNormal">EvmsSCC<o:p></o:p></p>
<p class="MsoNormal">Filesystem<o:p></o:p></p>
<p class="MsoNormal">ids<o:p></o:p></p>
<p class="MsoNormal">anything<o:p></o:p></p>
<p class="MsoNormal">AoEtarget<o:p></o:p></p>
<p class="MsoNormal">apache<o:p></o:p></p>
<p class="MsoNormal">AudibleAlarm<o:p></o:p></p>
<p class="MsoNormal">drbd<o:p></o:p></p>
<p class="MsoNormal">IPaddr<o:p></o:p></p>
<p class="MsoNormal">IPaddr2<o:p></o:p></p>
<p class="MsoNormal">ClusterMon<o:p></o:p></p>
<p class="MsoNormal">Dummy<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">As near as I can tell, I am following what it says in <a href="http://www.clusterlabs.org/mediawiki/images/8/8d/Crm_cli.pdf">
http://www.clusterlabs.org/mediawiki/images/8/8d/Crm_cli.pdf</a>. Anyone have any suggestions?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D">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="font-size:12.0pt;font-family:"Times New Roman","serif";
color:#1F497D"><a href="mailto:egable@broadvox.net"><span style="font-size:
10.0pt;font-family:"Arial","sans-serif";color:blue">egable@broadvox.net</span></a><br>
<br>
</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";
color:#1F497D"><img border="0" width="180" height="57" id="Picture_x0020_1" src="cid:image001.gif@01CA588C.4C9D1870" alt="cid:212454920@11022008-1E22"></span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Arial","sans-serif"">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.<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1">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>
</font>
</body>
</html>