<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.12.0">
</HEAD>
<BODY>
Thanks Mark. I currently run heartbeat from the distro init script, I was more interested in the drbd startup. I had originally tried using the Heartbeat master/slave configuration of drbd, using the heartbeat-supplied drbd OCF script, but there's some issues that need working out in heartbeat's master/slave resource handling. The master/slave config handles drbd startup and well as the primary/master and secondary/slave promotes and demotes. I was trying to think of a way to handle the restart of drbd outside of heartbeat to avoid the master/slave issues. drbd comes up fine via init scripts, just wanted a way to monitor and restart if necessary the drbd process, but outside of heartbeat. Make sense?<BR>
<BR>
Doug<BR>
<BR>
On Mon, 2007-05-14 at 14:40 +0100, Mark Watts wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">&gt; Hi,</FONT>
<FONT COLOR="#000000">&gt; I recently posted the following email on the HA-Linux email list, and</FONT>
<FONT COLOR="#000000">&gt; after considering the topic of the email decided that it is probaly more</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; appropriate on the DRBD-user list. So here it is:</FONT>
<FONT COLOR="#000000">&gt; &gt; Thanks, and drbddisk seems to be working great through all of my test</FONT>
<FONT COLOR="#000000">&gt; &gt; cases so far. So, how do most people configure the DRBD</FONT>
<FONT COLOR="#000000">&gt; &gt; startup, /etc/rc.d S script or define in inittab? Does it matter?</FONT>

<FONT COLOR="#000000">The way I do it is using the init scripts provided by my distro (Mandriva, in </FONT>
<FONT COLOR="#000000">this case) to start drbd and then start heartbeat.</FONT>

<FONT COLOR="#000000">I don't see a particular benefit to starting said software from /etc/inittab </FONT>
<FONT COLOR="#000000">for a couple of reasons:</FONT>

<FONT COLOR="#000000">1) The drbd init script only needs to run once (as far as I can see) on each </FONT>
<FONT COLOR="#000000">node; if your system can't run a script reliably at boot then you have bigger </FONT>
<FONT COLOR="#000000">things to worry about.</FONT>

<FONT COLOR="#000000">2) If heartbeat crashes, I'd rather know about it so I can analyse why it </FONT>
<FONT COLOR="#000000">crashed, rather than it be respawned automatically by init and potentially </FONT>
<FONT COLOR="#000000">cause more damage.</FONT>

<FONT COLOR="#000000">Mark.</FONT>

<FONT COLOR="#000000">_______________________________________________</FONT>
<FONT COLOR="#000000">drbd-user mailing list</FONT>
<FONT COLOR="#000000"><A HREF="mailto:drbd-user@lists.linbit.com">drbd-user@lists.linbit.com</A></FONT>
<FONT COLOR="#000000"><A HREF="http://lists.linbit.com/mailman/listinfo/drbd-user">http://lists.linbit.com/mailman/listinfo/drbd-user</A></FONT>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>