<!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/1.0.4">
</HEAD>
<BODY>
Hello,
<BR>

<BR>
Maybe my input can help you convince. Indeed mounting read only does come in very handy for database logfiles.
<BR>

<BR>
This is the situation:
<BR>
A masterdatabase which is online
<BR>
A slavedatabase which is in standby
<BR>

<BR>
In normal operations:
<BR>
------------------------
<BR>
The masterdatabase writes duplexed log files and archived log files to the primary drbd device. 
<BR>
At night the slavedatabase &quot;wakes up&quot; mounts the secondary drbd device read only and applies the past 24 hours of changes captured in the archived and the online redo log files. When done, the database goes back to standby and the device is umounted.
<BR>
To be more precise, in reality, I mount the device, copy the changes since last night to a local device, unmount, and then work with the local copies. The reason? I don't know how the slavedatabase would react if the online redologfiles changed will rolling forward. 
<BR>
So far this could also be done with NFS
<BR>

<BR>
When a failure happens on the masterdatabase and it goes down:
<BR>
---------------------------------------------------------------------------
<BR>
the slavedatabase kicks in (via heartbeat) mounts the drbd device in primary, applies the changes since midnight and fires up in online state.
<BR>
This could not be done with NFS because you wouldn't have access anymore. rsync is not an option either because you need the committed changes up to the very last second.
<BR>

<BR>
I think this is a very common setup and drbd is a magnificent tool to reach the goal for this.&nbsp; 
<BR>
So hope this is convincing enough ;)
<BR>

<BR>
Regards,
<BR>

<BR>
Filip Sergeys
<BR>

<BR>

<BR>

<BR>

<BR>

<BR>
On Tue, 2005-03-22 at 17:05, Philipp Reisner wrote:
    <BLOCKQUOTE>
<PRE><FONT COLOR="#737373"><FONT SIZE="3"><I>Am Dienstag, 22. M&#228;rz 2005 14:53 schrieb Reine Larsson:</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&gt; Hi,</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&gt;</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&gt; After uplifting from 0.6.12 to 0.7.6 we discover a change in behaviour.</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&gt; When did this change happen?</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>from 0.6 -&gt; 0.7</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&gt; Is there something that can be done about it?</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>Well, since users kept on mounting it read only on the secondary</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>and Linux-2.6.x allows us to prohibit read accesses, we decided</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>to do so.</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>  There are Filesystem out there that may crash the kernel when </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>  mounted on a self-changing device ;)</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>Short answer: no</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>Long answer:  </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I> Just convince me that it I want this feature as well,</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I> and it might come back (as runtime configuration)</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I> in 0.7.11.</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>-Philipp</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>-- </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>: Dipl-Ing Philipp Reisner                      Tel +43-1-8178292-50 :</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>: LINBIT Information Technologies GmbH          Fax +43-1-8178292-82 :</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>: Sch&#246;nbrunnerstr 244, 1120 Vienna, Austria    http://www.linbit.com :</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>_______________________________________________</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>drbd-user mailing list</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>drbd-user@lists.linbit.com</FONT></FONT></I></PRE>
    </BLOCKQUOTE>
<A HREF="http://lists.linbit.com/mailman/listinfo/drbd-user"><FONT SIZE="3"><I>http://lists.linbit.com/mailman/listinfo/drbd-user</FONT></I></A>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<PRE>-- 
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
* System Engineer, Verzekeringen NV *
* www.verzekeringen.be              *
* Oostkaai 23 B-2170 Merksem        *
* 03/6416673 - 0477/340942          *
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*</PRE>
</TD>
</TR>
</TABLE>

</BODY>
</HTML>