<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="&#1;" 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)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 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";}
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.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Nur Text Zchn";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.5pt;
        font-family:Consolas;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.NurTextZchn
        {mso-style-name:"Nur Text Zchn";
        mso-style-priority:99;
        mso-style-link:"Nur Text";
        font-family:Consolas;}
.MsoChpDefault
        {mso-style-type:export-only;}
@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>Hi,<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>i got a 2 Node Cluster up and running and right know i am
trying to configure a Nagios3 Resource. Therefore i already fixed the nagios
init script as it dind&#8217;t pass the LSB Compatibility Checks as described
here: <a
href="http://www.clusterlabs.org/doc/en-US/Pacemaker/1.0/html/Pacemaker_Explained/ap-lsb.html">http://www.clusterlabs.org/doc/en-US/Pacemaker/1.0/html/Pacemaker_Explained/ap-lsb.html</a>
<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>I just needed to make sure the pid file gets removed if the
stop function is called. After this small change i passed all the LSB Checks.
Below you find the error message:<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><span style='font-family:"Courier New"'>root@pilot01-node2:/var/run/nagios3#
crm_verify -LV<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Courier New"'>crm_verify[7094]:
2010/06/23_16:37:27 ERROR: unpack_rsc_op: Hard error - res_Nagios_monitor_0
failed with rc=6: Preventing res_Nagios from re-starting anywhere in the
cluster<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Courier New"'>crm_verify[7094]:
2010/06/23_16:37:27 WARN: native_color: Resource res_Nagios cannot run anywhere<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Courier New"'>Warnings found
during check: config may not be valid<o:p></o:p></span></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>I tried to find out what the init scripts must provide for
allowing it to use it in pacemaker but i just found the LSB Compatib. Hints on
the pacemaker website. I think i configured the primitive wrong or maybe the
init script is still wrong? Even if i configure it with a op monitor action it
fails. And even a crm resource cleanup&nbsp; res_Nagios doesn&#8217;t help me
starting the resource. <o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>I can run Nagios manually on the active node. I linked all
shared directories to my cluster storage device like this:<o:p></o:p></p>

<p class=MsoNormal><span style='font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-family:"Courier New"'>root@pilot01-node2:/etc#
ll /var/lib/nagios3* /etc/nagios*<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Courier New"'>lrwxrwxrwx 1 root&nbsp;&nbsp;
root&nbsp;&nbsp;&nbsp; 25 23. Jun 13:54 /etc/nagios3 -&gt; /mnt/cluster/etc/nagios3/<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Courier New"'>lrwxrwxrwx 1 root&nbsp;&nbsp;
root&nbsp;&nbsp;&nbsp; 29 23. Jun 14:04 /var/lib/nagios3 -&gt; /mnt/cluster/var/lib/nagios3/<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-family:"Courier New"'>/etc/nagios3_bak:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Courier New"'>insgesamt 88K<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Courier New"'>drwxr-xr-x&nbsp; 4 root
root&nbsp;&nbsp;&nbsp; 146 23. Jun 13:54 .<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Courier New"'>drwxr-xr-x 75 root
root&nbsp;&nbsp; 4,0K 23. Jun 17:08 ..<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Courier New"'>-rw-r--r--&nbsp; 1 root
root&nbsp;&nbsp; 1,9K 30. Jun 2009&nbsp; apache2.conf<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Courier New"'>-rw-r--r--&nbsp; 1 root
root&nbsp;&nbsp;&nbsp; 11K 23. Jun 13:49 cgi.cfg<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Courier New"'>-rw-r--r--&nbsp; 1 root
root&nbsp;&nbsp; 2,4K&nbsp; 2. Jul 2009&nbsp; commands.cfg<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Courier New"'>drwxr-xr-x&nbsp; 2 root
root&nbsp;&nbsp; 4,0K&nbsp; 7. Jun 19:16 conf.d<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Courier New"'>-rw-r--r--&nbsp; 1 root
root&nbsp;&nbsp;&nbsp;&nbsp; 20 23. Jun 13:49 htpasswd.users<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Courier New"'>-rw-r--r--&nbsp; 1 root
root&nbsp;&nbsp;&nbsp; 42K&nbsp; 2. Jul 2009&nbsp; nagios.cfg<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Courier New"'>-rw-r-----&nbsp; 1 root
nagios 1,3K 30. Jun 2009&nbsp; resource.cfg<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Courier New"'>drwxr-xr-x&nbsp; 2 root
root&nbsp;&nbsp; 4,0K&nbsp; 7. Jun 19:16 stylesheets<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-family:"Courier New"'>/etc/nagios-plugins:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Courier New"'>insgesamt 12K<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Courier New"'>drwxr-xr-x&nbsp; 3 root
root &nbsp;&nbsp;19&nbsp; 7. Jun 19:16 .<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Courier New"'>drwxr-xr-x 75 root
root 4,0K 23. Jun 17:08 ..<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Courier New"'>drwxr-xr-x&nbsp; 2 root
root 4,0K&nbsp; 7. Jun 19:16 config<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-family:"Courier New"'>/var/lib/nagios3_bak:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Courier New"'>insgesamt 20K<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Courier New"'>drwxr-x---&nbsp; 4 nagios
nagios&nbsp;&nbsp;&nbsp;&nbsp; 47 23. Jun 14:02 .<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Courier New"'>drwxr-xr-x 33 root&nbsp;&nbsp;
root&nbsp;&nbsp;&nbsp;&nbsp; 4,0K 23. Jun 14:04 ..<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Courier New"'>-rw-------&nbsp; 1 nagios
www-data&nbsp; 14K 23. Jun 14:02 retention.dat<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Courier New"'>drwx------&nbsp; 2 nagios
www-data&nbsp;&nbsp;&nbsp; 6&nbsp; 2. Jul 2009&nbsp; rw<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Courier New"'>drwxr-x---&nbsp; 3 nagios
nagios&nbsp;&nbsp;&nbsp;&nbsp; 25&nbsp; 7. Jun 19:16 spool<o:p></o:p></span></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Here is my Config.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoPlainText><span style='font-family:"Courier New"'>########################<o:p></o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Courier New"'>### 3. Cluster
State ###<o:p></o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Courier New"'>########################<o:p></o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Courier New"'>============<o:p></o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Courier New"'>Last updated: Wed
Jun 23 17:16:33 2010<o:p></o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Courier New"'>Stack: openais<o:p></o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Courier New"'>Current DC:
pilot01-node2 - partition with quorum<o:p></o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Courier New"'>Version:
1.0.8-2c98138c2f070fcb6ddeab1084154cffbf44ba75<o:p></o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Courier New"'>2 Nodes
configured, 2 expected votes<o:p></o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Courier New"'>4 Resources
configured.<o:p></o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Courier New"'>============<o:p></o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Courier New"'>Node
pilot01-node1: standby<o:p></o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Courier New"'>Online: [
pilot01-node2 ]<o:p></o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Courier New"'>Full list of
resources:<o:p></o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Courier New"'>&nbsp;Resource Group:
grp_MySQL<o:p></o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;
res_Filesystem&nbsp;&nbsp;&nbsp;&nbsp; (ocf::heartbeat:Filesystem):&nbsp;&nbsp;&nbsp; Started pilot01-node2<o:p></o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;
res_ClusterIP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (ocf::heartbeat:IPaddr2):&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Started pilot01-node2<o:p></o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp; res_MySQL&nbsp;
(lsb:mysql):&nbsp;&nbsp;&nbsp; Started pilot01-node2<o:p></o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp; res_Apache
(lsb:apache2):&nbsp; Started pilot01-node2<o:p></o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;
res_ClusterMonitor (ocf::pacemaker:ClusterMon):&nbsp;&nbsp;&nbsp; Started pilot01-node2<o:p></o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp; res_Nagios
(lsb:nagios3):&nbsp; Stopped<o:p></o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Courier New"'>&nbsp;Master/Slave
Set: ms_drbd_mysql0<o:p></o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp; Masters: [
pilot01-node2 ]<o:p></o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp; Stopped: [
drbd_pilot0:0 ]<o:p></o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Courier New"'>&nbsp;Clone Set:
cl-pinggw<o:p></o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp; Started: [
pilot01-node2 ]<o:p></o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp; Stopped: [
pinggw:0 ]<o:p></o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Courier New"'>Monitor-Cluster
(ocf::pacemaker:ClusterMon):&nbsp;&nbsp;&nbsp; Started pilot01-node1 (unmanaged) FAILED<o:p></o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Courier New"'>Failed actions:<o:p></o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
Monitor-Cluster_stop_0 (node=pilot01-node1, call=34, rc=1, status=complete):
unknown error<o:p></o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
res_Nagios_monitor_0 (node=pilot01-node1, call=84, rc=6, status=complete): not
configured<o:p></o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Courier New"'>#########################<o:p></o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Courier New"'>### 4. Cluster
Config ###<o:p></o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Courier New"'>#########################<o:p></o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>node
pilot01-node1 \<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
attributes standby=&quot;on&quot;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>node
pilot01-node2 \<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
attributes standby=&quot;off&quot;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>primitive
Monitor-Cluster ocf:pacemaker:ClusterMon \<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
params htmlfile=&quot;/mnt/cluster/var/www/cluster-monitor.html&quot; \<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
params pidfile=&quot;/var/run/rlb-cluster-monitor.pid&quot; \<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
op start interval=&quot;0&quot; timeout=&quot;90s&quot; \<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
op stop interval=&quot;0&quot; timeout=&quot;100s&quot;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>primitive
drbd_pilot0 ocf:linbit:drbd \<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
params drbd_resource=&quot;pilot0&quot; \<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
operations $id=&quot;drbd_pilot0-operations&quot; \<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
op monitor interval=&quot;15s&quot;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>primitive
pinggw ocf:pacemaker:pingd \<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
params host_list=&quot;10.1.1.162&quot; multiplier=&quot;200&quot; \<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
op monitor interval=&quot;10s&quot;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>primitive
res_Apache lsb:apache2 \<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
operations $id=&quot;res_Apache-operations&quot; \<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
op monitor interval=&quot;15s&quot; timeout=&quot;20s&quot;
start-delay=&quot;15s&quot;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>primitive
res_ClusterIP ocf:heartbeat:IPaddr2 \<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
params iflabel=&quot;ClusterIP&quot; ip=&quot;10.1.1.12&quot;
nic=&quot;eth0&quot; cidr_netmask=&quot;24&quot; \<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
operations $id=&quot;res_ClusterIP_1-operations&quot; \<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
op monitor start-delay=&quot;0&quot; interval=&quot;10s&quot;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>primitive
res_ClusterMonitor ocf:pacemaker:ClusterMon \<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
params htmlfile=&quot;/mnt/cluster/var/www/cluster-monitor.html&quot; \<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
params pidfile=&quot;/var/run/rlb-cluster-monitor.pid&quot; \<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
op start interval=&quot;0&quot; timeout=&quot;90s&quot; \<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
op stop interval=&quot;0&quot; timeout=&quot;100s&quot; \<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
meta target-role=&quot;Started&quot;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>primitive
res_Filesystem ocf:heartbeat:Filesystem \<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
params fstype=&quot;xfs&quot; directory=&quot;/mnt/cluster&quot;
device=&quot;/dev/drbd0&quot; options=&quot;noatime,nodiratime,barrier=0&quot;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>primitive
res_MySQL lsb:mysql<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>primitive
res_Nagios lsb:nagios3 \<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
operations $id=&quot;res_Nagios-operations&quot; \<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
op monitor interval=&quot;15s&quot; timeout=&quot;20s&quot; \<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
meta target-role=&quot;Started&quot;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>group
grp_MySQL res_Filesystem res_ClusterIP res_MySQL res_Apache res_ClusterMonitor
res_Nagios<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>ms
ms_drbd_mysql0 drbd_pilot0 \<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
meta master-max=&quot;1&quot; master-node-max=&quot;1&quot;
clone-max=&quot;2&quot; clone-node-max=&quot;1&quot; notify=&quot;true&quot;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>clone
cl-pinggw pinggw \<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
meta globally-unique=&quot;false&quot;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>location
drbd-fence-by-handler-ms_drbd_mysql0 ms_drbd_mysql0 \<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
rule $id=&quot;drbd-fence-by-handler-rule-ms_drbd_mysql0&quot;
$role=&quot;Master&quot; -inf: #uname ne pilot01-node2<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>location
grp_MySQL-with-pinggw grp_MySQL \<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
rule $id=&quot;grp_MySQL-with-pinggw-rule-1&quot; -inf: not_defined pingd or
pingd lte 0<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>colocation
col_drbd_on_mysql inf: grp_MySQL ms_drbd_mysql0:Master<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>order
mysql_after_drbd inf: ms_drbd_mysql0:promote grp_MySQL:start<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>property
$id=&quot;cib-bootstrap-options&quot; \<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
expected-quorum-votes=&quot;2&quot; \<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
stonith-enabled=&quot;false&quot; \<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
no-quorum-policy=&quot;ignore&quot; \<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
dc-version=&quot;1.0.8-2c98138c2f070fcb6ddeab1084154cffbf44ba75&quot; \<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;cluster-infrastructure=&quot;openais&quot; \<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
last-lrm-refresh=&quot;1277306106&quot; \<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
symmetric-cluster=&quot;true&quot; \<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
migration-threshold=&quot;1&quot; \<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
default-action-timeout=&quot;240s&quot;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt;font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.5pt'>Thanks for your help in advance.</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span
style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:black'>Sebastian</span></b><span
style='font-size:7.5pt;font-family:"Verdana","sans-serif";color:gray'><o:p></o:p></span></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</body>

</html>