<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div>I've been doing a lot of testing while I've been learning Pacemaker/Heartbeat, DRBD, OCFS2, etc (Nginx, PHP-FPM, Apache…) &nbsp;Below I've attached my working CIB, but I worry I am missing something obvious (or perhaps going about it incorrectly altogether):
 It seems I cannot start the cluster as a <i>single</i>&nbsp;node, and sometimes if the other node is having issues, the functioning node does not mount the file system, etc….…until I've set the other node to &quot;Standby&quot;, restart, etc. Shouldn't I be able to run on
 a single node with HA? I presume I've not configured something correctly, possibly I'm using &quot;clone&quot; incorrectly based on my needs?</div>
<div><br>
</div>
<div>Basically, for this two-node web server cluster, I'm running a OCFS2 Primary/Primary DRBD, with Nginx &#43; PHP-FPM / Apache. I need a little help confirming if the CIB configuration below is the appropriate way to handle this: As long as one of the node's
 DRBD is UpToDate (Primary), then ideally I'd be able to mount the OCFS2 Filesystem (resFS), start PHP-FPM (resPHP), start NGINX (resPROXY), and then Apache (<span class="Apple-style-span" style="font-family: Courier; ">resAPACHE) and handle web traffic. Don't
 worry, not storing any access logs or sessions in DRBD, I'm using local disk &#43; memcached for that.</span></div>
<div><br>
</div>
<div>Is my usage of clone / order correct here, or is that perhaps what's blocking me from running on a single node more reliably? …I've been able to do it by going from a working cluster to setting one node the &quot;standby&quot; or simulating a power fault, however
 I haven't been able to simply start a single node and have work as described above.&nbsp;</div>
<div><br>
</div>
<div><b>Software:</b></div>
<div>OS:&nbsp;Ubuntu 10.10 (Maverick) /&nbsp;Kernel: 2.6.35</div>
<div>Corosync&nbsp;1.2.1</div>
<div>DRBD&nbsp;8.3.10</div>
<div>OCFS2: v1.5.0</div>
<div><br>
</div>
<div><br>
</div>
<div><b>Pacemakr config / CIB:</b></div>
<div><br>
</div>
<div>
<blockquote style="margin:0 0 0 40px; border:none; padding:0px;">
<div><span style="font-family: Courier; ">node MACHINE1 \</span></div>
<div><span style="font-family: Courier; ">&nbsp; &nbsp; &nbsp; &nbsp; attributes standby=&quot;off&quot;</span></div>
<div><span style="font-family: Courier; ">node MACHINE2 \</span></div>
<div><span style="font-family: Courier; ">&nbsp; &nbsp; &nbsp; &nbsp; attributes standby=&quot;off&quot;</span></div>
<div><span style="font-family: Courier; ">primitive resAPACHE ocf:heartbeat:apache \</span></div>
<div><span style="font-family: Courier; ">&nbsp; &nbsp; &nbsp; &nbsp; params configfile=&quot;/usr/local/apache/conf/httpd.conf&quot; \</span></div>
<div><span style="font-family: Courier; ">&nbsp; &nbsp; &nbsp; &nbsp; op monitor interval=&quot;1min&quot; \</span></div>
<div><span style="font-family: Courier; ">&nbsp; &nbsp; &nbsp; &nbsp; op start interval=&quot;0&quot; timeout=&quot;40&quot; \</span></div>
<div><span style="font-family: Courier; ">&nbsp; &nbsp; &nbsp; &nbsp; op stop interval=&quot;0&quot; timeout=&quot;60&quot;</span></div>
<div><span style="font-family: Courier; ">primitive resDLM ocf:pacemaker:controld \</span></div>
<div><span style="font-family: Courier; ">&nbsp; &nbsp; &nbsp; &nbsp; op monitor interval=&quot;120s&quot;</span></div>
<div><span style="font-family: Courier; ">primitive resDRBD ocf:linbit:drbd \</span></div>
<div><span style="font-family: Courier; ">&nbsp; &nbsp; &nbsp; &nbsp; params drbd_resource=&quot;repdata&quot; \</span></div>
<div><span style="font-family: Courier; ">&nbsp; &nbsp; &nbsp; &nbsp; operations $id=&quot;resDRBD-operations&quot; \</span></div>
<div><span style="font-family: Courier; ">&nbsp; &nbsp; &nbsp; &nbsp; op monitor interval=&quot;20s&quot; role=&quot;Master&quot; timeout=&quot;120s&quot; \</span></div>
<div><span style="font-family: Courier; ">&nbsp; &nbsp; &nbsp; &nbsp; op monitor interval=&quot;30s&quot; role=&quot;Slave&quot; timeout=&quot;120s&quot;</span></div>
<div><span style="font-family: Courier; ">primitive resFS ocf:heartbeat:Filesystem \</span></div>
<div><span style="font-family: Courier; ">&nbsp; &nbsp; &nbsp; &nbsp; params device=&quot;/dev/drbd/by-res/repdata&quot; directory=&quot;/data&quot; fstype=&quot;ocfs2&quot; \</span></div>
<div><span style="font-family: Courier; ">&nbsp; &nbsp; &nbsp; &nbsp; op monitor interval=&quot;120s&quot;</span></div>
<div><span style="font-family: Courier; ">primitive resO2CB ocf:pacemaker:o2cb \</span></div>
<div><span style="font-family: Courier; ">&nbsp; &nbsp; &nbsp; &nbsp; op monitor interval=&quot;120s&quot;</span></div>
<div><span style="font-family: Courier; ">primitive resPHP ocf:heartbeat:anything \</span></div>
<div><span style="font-family: Courier; ">&nbsp; &nbsp; &nbsp; &nbsp; params binfile=&quot;/usr/local/sbin/php-fpm&quot; cmdline_options=&quot;--fpm-config /usr/local/etc/php-fpm.conf&quot; pidfile=&quot;/var/run/php-fpm.pid&quot; \</span></div>
<div><span style="font-family: Courier; ">&nbsp; &nbsp; &nbsp; &nbsp; op start interval=&quot;0&quot; timeout=&quot;20&quot; \</span></div>
<div><span style="font-family: Courier; ">&nbsp; &nbsp; &nbsp; &nbsp; op stop interval=&quot;0&quot; timeout=&quot;30&quot; \</span></div>
<div><span style="font-family: Courier; ">&nbsp; &nbsp; &nbsp; &nbsp; op monitor interval=&quot;20&quot; \</span></div>
<div><span style="font-family: Courier; ">&nbsp; &nbsp; &nbsp; &nbsp; meta target-role=&quot;Started&quot;</span></div>
<div><span style="font-family: Courier; ">primitive resPROXY ocf:heartbeat:nginx \</span></div>
<div><span style="font-family: Courier; ">&nbsp; &nbsp; &nbsp; &nbsp; params conffile=&quot;/etc/nginx/nginx.conf&quot; \</span></div>
<div><span style="font-family: Courier; ">&nbsp; &nbsp; &nbsp; &nbsp; op monitor interval=&quot;60s&quot; \</span></div>
<div><span style="font-family: Courier; ">&nbsp; &nbsp; &nbsp; &nbsp; op start interval=&quot;0&quot; timeout=&quot;40&quot; \</span></div>
<div><span style="font-family: Courier; ">&nbsp; &nbsp; &nbsp; &nbsp; op stop interval=&quot;0&quot; timeout=&quot;60&quot;</span></div>
<div><span style="font-family: Courier; ">primitive resST-NULL stonith:null \</span></div>
<div><span style="font-family: Courier; ">&nbsp; &nbsp; &nbsp; &nbsp; params hostlist=&quot;MACHINE1 MACHINE2&quot;</span></div>
<div><span style="font-family: Courier; ">ms msDRBD resDRBD \</span></div>
<div><span style="font-family: Courier; ">&nbsp; &nbsp; &nbsp; &nbsp; meta resource-stickines=&quot;100&quot; notify=&quot;true&quot; master-max=&quot;2&quot; interleave=&quot;true&quot;</span></div>
<div><span style="font-family: Courier; ">clone cloneDLM resDLM \</span></div>
<div><span style="font-family: Courier; ">&nbsp; &nbsp; &nbsp; &nbsp; meta globally-unique=&quot;false&quot; interleave=&quot;true&quot;</span></div>
<div><span style="font-family: Courier; ">clone cloneFS resFS \</span></div>
<div><span style="font-family: Courier; ">&nbsp; &nbsp; &nbsp; &nbsp; meta interleave=&quot;true&quot; ordered=&quot;true&quot; target-role=&quot;Started&quot;</span></div>
<div><span style="font-family: Courier; ">clone cloneHTTPD resAPACHE \</span></div>
<div><span style="font-family: Courier; ">&nbsp; &nbsp; &nbsp; &nbsp; meta globally-unique=&quot;false&quot; interleave=&quot;true&quot; ordered=&quot;true&quot; target-role=&quot;Started&quot;</span></div>
<div><span style="font-family: Courier; ">clone cloneO2CB resO2CB \</span></div>
<div><span style="font-family: Courier; ">&nbsp; &nbsp; &nbsp; &nbsp; meta globally-unique=&quot;false&quot; interleave=&quot;true&quot;</span></div>
<div><span style="font-family: Courier; ">clone clonePHP resPHP \</span></div>
<div><span style="font-family: Courier; ">&nbsp; &nbsp; &nbsp; &nbsp; meta globally-unique=&quot;false&quot; interleave=&quot;true&quot; ordered=&quot;true&quot; target-role=&quot;Started&quot;</span></div>
<div><span style="font-family: Courier; ">clone clonePROXY resPROXY \</span></div>
<div><span style="font-family: Courier; ">&nbsp; &nbsp; &nbsp; &nbsp; meta globally-unique=&quot;false&quot; interleave=&quot;true&quot; ordered=&quot;true&quot; target-role=&quot;Started&quot;</span></div>
<div><span style="font-family: Courier; ">clone fencing resST-NULL</span></div>
<div><span style="font-family: Courier; ">colocation colDLMDRBD inf: cloneDLM msDRBD:Master</span></div>
<div><span style="font-family: Courier; ">colocation colFSO2CB inf: cloneFS cloneO2CB</span></div>
<div><span style="font-family: Courier; ">colocation colO2CBDLM inf: cloneO2CB cloneDLM</span></div>
<div><span style="font-family: Courier; ">order ordDLMO2CB inf: cloneDLM cloneO2CB</span></div>
<div><span style="font-family: Courier; ">order ordDRBDDLM inf: msDRBD:promote cloneDLM</span></div>
<div><span style="font-family: Courier; ">order ordO2CBFS inf: cloneO2CB cloneFS</span></div>
<div><span style="font-family: Courier; ">order ordPHP inf: cloneFS clonePHP</span></div>
<div><span style="font-family: Courier; ">order ordPROXY inf: clonePHP clonePROXY</span></div>
<div><span style="font-family: Courier; ">order ordWEB inf: cloneFS cloneHTTPD</span></div>
<div><span style="font-family: Courier; ">property $id=&quot;cib-bootstrap-options&quot; \</span></div>
<div><span style="font-family: Courier; ">&nbsp; &nbsp; &nbsp; &nbsp; dc-version=&quot;1.0.9-unknown&quot; \</span></div>
<div><span style="font-family: Courier; ">&nbsp; &nbsp; &nbsp; &nbsp; cluster-infrastructure=&quot;openais&quot; \</span></div>
<div><span style="font-family: Courier; ">&nbsp; &nbsp; &nbsp; &nbsp; stonith-enabled=&quot;true&quot; \</span></div>
<div><span style="font-family: Courier; ">&nbsp; &nbsp; &nbsp; &nbsp; no-quorum-policy=&quot;ignore&quot; \</span></div>
<div><span style="font-family: Courier; ">&nbsp; &nbsp; &nbsp; &nbsp; expected-quorum-votes=&quot;2&quot;</span></div>
<div><span style="font-family: Courier; "><br>
</span></div>
<div><span style="font-family: Courier; "><br>
</span></div>
<div><span style="font-family: Courier; "><br>
</span></div>
<div><span style="font-family: Courier; "><br>
</span></div>
<div><span style="font-family: Courier; "><span class="Apple-style-span" style="font-family: Calibri, sans-serif; ">
<div>NOTE: Please disregard stonith:null usage in this example…</div>
<div><br>
</div>
<div><br>
</div>
<div>Any feedback or suggestions would be highly appreciated!</div>
</span></span></div>
</blockquote>
</div>
<FONT size="2" face="arial"><EM/></FONT></body>
</html>