<div class="gmail_quote"><br>On Mon, Jun 7, 2010 at 10:18 PM, J. Adam Craig <span dir="ltr"><<a href="mailto:acraig@pamplinpark.org">acraig@pamplinpark.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>
<div dir="ltr"><font size="2" color="#000000" face="Tahoma">
<div dir="ltr"><font size="2" color="#000000" face="Tahoma">As an update, I managed to get DRBD starting up on boot by using update-rc.d. It is currently starting with the default priority (20), which is lower than corosync's, ocfs2's, etc. My presumption is that this means that DRBD should be starting before those services. Nevertheless, I continue to get the same corosync errors as before.</font></div>
<div dir="ltr"><font size="2" face="tahoma"></font> </div></font></div><div><div class="h5"><div><br></div></div></div></div></blockquote><div><br>Probably better to be posted to pacemaker mailing list...</div><div> </div>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div><div class="h5"><div><div dir="ltr"><font size="2" face="Tahoma"></font> </div>
<div dir="ltr"><font size="2" face="Tahoma">I'm noticing that DRBD is not starting automatically on boot in my Ubuntu 8.04 LTS Server implementation. All was working fine with DRBD and Pacemaker / Corosync until I restarted the two nodes. DRBD did not startup on boot, and crm_mon is showing errors.</font></div>
<div dir="ltr"><font size="2" face="Tahoma"></font> </div>
<div dir="ltr"><font size="2" face="Tahoma">I was wondering how (1) I could get DRBD to start on boot (should Pacemaker / Corosync do this, or do I need to do something with update-rc.d?) and (2) how these Corosync errors can be eliminated, if DRBD not starting on boot is not the cause of the trouble. I'm pasting the results of crm_mon below, along with my Corosync configuration below that.</font></div>
<div dir="ltr"><font size="2" face="tahoma"></font> </div>
<div dir="ltr"><font size="2" face="tahoma">I do know that the drbd init file (ver 8.3.8) is stored as /usr/local/etc/init.d/drbd</font></div>
<div dir="ltr"><font size="2" face="Tahoma"></font> </div>
<div dir="ltr"><font size="2" face="Tahoma">Thanks!</font></div>
<div dir="ltr"><font size="2" face="Tahoma">- Adam</font></div>
<div dir="ltr"><font size="2" face="Tahoma"></font> </div>
<div dir="ltr"><br></div><br><div dir="ltr"><b><font size="2" face="Tahoma">Corosync Configuration:</font></b></div></div></div></div></div></blockquote><div><br>pacemaker configuration actually.... <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div><div class="h5"><div>
<blockquote style="margin-right: 0px;" dir="ltr">
<div dir="ltr"><font size="2" face="Tahoma"><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" timeout="20" \<br>
op monitor interval="30" role="Slave" timeout="20" \<br> meta target-role="started"</font><br></div></blockquote></div></div></div></div><br></blockquote></div><br>If you use Pacemaker/corosync, you shouldn't configure at all drbd service to start at boot or stop at shutdown.<br>
On my rh el 5 based cluster<br>chkconfig --del drbd<br><br>Similar command or manual link removal to be done in Ubuntu.<br>Below some lines from howto (See complete document at <a href="http://www.clusterlabs.org/wiki/DRBD_HowTo_1.0">http://www.clusterlabs.org/wiki/DRBD_HowTo_1.0</a>)<br>
<p>"You basically have two options to integrate DRBD with Pacemaker 1.0
(which will be called just <i>Pacemaker</i> from now on in this
document).
</p>
<ol><li> Use the legacy Heartbeat v1 style drbddisk resource agent to
move the Primary role. In this case, you <i>have to</i> let
/etc/init.d/drbd load and configure DRBD.
</li><li> Use the DRBD OCF resource agent. In this case, you <i>must not</i>
let init load and configure DRBD, because this resource agent does that
itself.
</li></ol>
<p>This document describes the <i>second</i> option."</p>And you are in option 2 too. See the remaining part of the doc and check.<br><br>My current config for the drbd resource<br><br>primitive nfsdrbd ocf:linbit:drbd \<br>
params drbd_resource="nfsdata" \<br> op monitor interval="60s" \<br> op start interval="0" timeout="240" \<br> op stop interval="0" timeout="100"<br>
<br>Check also /var/log/messages<br><br>HIH,<br>Gianluca<br>