Hi<div>Just an update.<br><div>So I upgraded to pacemaker 1.1.6 and tried to configure it all again, without dlm.</div><div>It didn't work, I still got the "<span style="background-color:rgb(255,255,255)">
<span style="font-family:'liberation sans','Myriad ','Bitstream Vera Sans','Lucida Grande','Luxi Sans','Trebuchet MS',helvetica,verdana,arial,sans-serif;font-size:12px;line-height:15px">OCF_ERR_INSTALLED</span></span> so I started looking through the setup and found that I didn't specify the drbd.conf path.</div>
<div>When I added that meta and boom, it mounted like a dream.</div><div><br></div><div>Wasn't it supposed to return a OCF_ERR_CONFIGURED?</div><div><br></div><div>And is that meta even required?</div><div><br></div>
<div>I wonder if I messed something up(that is very likely) or maybe I missed something.</div><div><br></div><div>I'll try to add the dlm today and see if it works.</div><div><br></div><div>Cheers.<br><div class="gmail_quote">
Den 22. feb. 2012 12.34 skrev Florian Haas <span dir="ltr"><<a href="mailto:florian@hastexo.com">florian@hastexo.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">> ============<br>
> Last updated: Wed Feb 22 11:51:22 2012<br>
> Stack: openais<br>
> Current DC: cluster01 - partition with quorum<br>
> Version: 1.0.9-74392a28b7f31d7ddc86689598bd23114f58978b<br>
<br>
</div>Please go to 1.1.5, at least, as soon as you can.<br>
<div><div class="h5"><br>
> primitive Cluster-FS-DLM ocf:pacemaker:controld \<br>
> op monitor interval="120s"<br>
><br>
> primitive Cluster-FS-DRBD ocf:linbit:drbd \<br>
> params drbd_resource="cluster-ocfs" \<br>
> operations $id="Cluster-FS-DRBD-ops" \<br>
> op monitor interval="20" role="Master" timout="20" \<br>
> op monitor interval="30" role="Slave" timeout="20"<br>
><br>
> primitive Cluster-FS-Mount ocf:heartbeat:Filesystem \<br>
> params device="/dev/drbd/by-res/cluster-ocfs"<br>
> directory="/cluster" fstype="ocfs2" \<br>
> op monitor interval="120"<br>
><br>
> primitive Cluster-FS-O2CB ocf:pacemaker:o2cb \<br>
> op monitor interval="120"<br>
><br>
> primitive ClusterIP ocf:heartbeat:IPaddr2 \<br>
> params ip="212.70.2.110" cidr_netmask="24" \<br>
> op monitor interval="30s" \<br>
> meta target-role="Started"<br>
><br>
> ms Cluster-FS-DRBD-Master Cluster-FS-DRBD \<br>
> meta resource-stickines="100" notify="true" interleave="true"<br>
> master-max="2"<br>
><br>
> clone Cluster-FS-DLM-Clone Cluster-FS-DLM \<br>
> meta globally-unique="false" interleave="true"<br>
><br>
> clone Cluster-FS-Mount-Clone Cluster-FS-Mount \<br>
> meta interleave="true" ordered="true"<br>
><br>
> clone Cluster-FS-O2CB-Clone Cluster-FS-O2CB \<br>
> meta globally-unique="false" interleave="true"<br>
><br>
> colocation Cluster-FS-Colocation inf: Cluster-FS-DLM-Clone<br>
> Cluster-FS-DRBD-Master:Master<br>
><br>
> colocation Cluster-FS-Mount-Colocation inf: Cluster-FS-Mount-Clone<br>
> Cluster-FS-O2CB-Clone<br>
><br>
> colocation Cluster-FS-O2CB-Colocation inf: Cluster-FS-O2CB-Clone<br>
> Cluster-FS-DLM-Clone<br>
><br>
> order Cluster-FS-DLM-Order 0: Cluster-FS-DRBD-Master:promote<br>
> Cluster-FS-DLM-Clone<br>
><br>
> order Cluster-FS-Mount-Order 0: Cluster-FS-O2CB-Clone Cluster-FS-Mount-Clone<br>
><br>
> order Cluster-FS-O2CB-Order 0: Cluster-FS-DLM-Clone Cluster-FS-O2CB-Clone<br>
<br>
</div></div>Rather than having all those individual clones and constraints between<br>
them, you can greatly simplify your configuration with a cloned group:<br>
<br>
primitive p_dlm_controld ocf:pacemaker:controld \<br>
op start interval="0" timeout="90" \<br>
op stop interval="0" timeout="100" \<br>
op monitor interval="10"<br>
primitive p_o2cb ocf:pacemaker:o2cb \<br>
op start interval="0" timeout="90" \<br>
op stop interval="0" timeout="100" \<br>
op monitor interval="10"<br>
primitive p_fs_ocfs2 ocf:heartbeat:Filesystem \<br>
params device="<your drbd device>" \<br>
directory="<your mountpoint>" \<br>
fstype="ocfs2"<br>
group g_ocfs2 p_dlm_controld p_o2cb p_fs_ocfs2<br>
clone cl_ocfs2 g_ocfs2 \<br>
meta interleave="true"<br>
<br>
You'll still need that one order and colo constraint linking your cloned<br>
group to the DRBD master/slave set, of course.<br>
<br>
And if you're getting an OCF_ERR_INSTALLED error from<br>
ocf:pacemaker:o2cb, then there definitely will be an error message in<br>
the logs preceding that.<br>
<br>
grep -E 'o2cb.*ERROR' /var/log/{messages,syslog}<br>
<br>
Hope this helps.<br>
<div class="HOEnZb"><div class="h5"><br>
Cheers,<br>
Florian<br>
<br>
--<br>
Need help with High Availability?<br>
<a href="http://www.hastexo.com/now" target="_blank">http://www.hastexo.com/now</a><br>
<br>
_______________________________________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" target="_blank">http://bugs.clusterlabs.org</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>MVH<div>Johan Bergkvist</div><br>
</div></div>