<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6603.0">
<TITLE>mount r/w and r/o</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">I have an ext3 filesystem mounted r/w on 1 host and r/o on multiple hosts.  Dangerous but cost effective.  I recently implemented some protection through a fc switch that restricts some hosts to r/o access to the data luns.  So if someone types mount -o rw or something, all is not lost.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">The issue occurs when it's mounted r/w on 1 host and another host attempts to mount it r/o.  The mount command takes about a minute to complete, it successfully mounts, and several error messages are reported...</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Nov  3 12:52:26 lax kernel: EXT3-fs: INFO: recovery required on readonly filesystem.</FONT>

<BR><FONT SIZE=2 FACE="Arial">Nov  3 12:52:26 lax kernel: EXT3-fs: write access will be enabled during recovery.</FONT>

<BR><FONT SIZE=2 FACE="Arial">Nov  3 12:52:27 lax kernel: cfq: depth 4 reached, tagging now on</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">...reports this for about 260 different sectors (makes sense, fc switch is preventing write access)...</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Nov  3 12:52:27 lax kernel: SCSI error : <494 0 0 1> return code = 0x8000002</FONT>

<BR><FONT SIZE=2 FACE="Arial">Nov  3 12:52:27 lax kernel: sdl: Current: sense key: Data Protect</FONT>

<BR><FONT SIZE=2 FACE="Arial">Nov  3 12:52:27 lax kernel:     Additional sense: Logical unit software write protected</FONT>

<BR><FONT SIZE=2 FACE="Arial">Nov  3 12:52:27 lax kernel: end_request: I/O error, dev sdl, sector 496</FONT>

<BR><FONT SIZE=2 FACE="Arial">Nov  3 12:52:27 lax kernel: Buffer I/O error on device sdl, logical block 62</FONT>

<BR><FONT SIZE=2 FACE="Arial">Nov  3 12:52:27 lax kernel: lost page write due to I/O error on sdl</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">then completes...</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Nov  3 12:52:44 laxl kernel: EXT3-fs: recovery complete. (how???)</FONT>

<BR><FONT SIZE=2 FACE="Arial">Nov  3 12:52:44 laxl kernel: EXT3-fs: mounted filesystem with ordered data mode.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">This also happens on other filesystems and other devices under the same circumstances.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">When the filesystem is umounted from the r/w host, it mounts w/ out error on r/o host.  It's interesting to note that after that's done, you can remount the filesystem on the r/w host, and then mount it on the r/o w/ just a few errors and w/ in seconds.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">My questions are...</FONT>

<BR><FONT SIZE=2 FACE="Arial">Should I be concerned by this?</FONT>

<BR><FONT SIZE=2 FACE="Arial">Is there a way to automatically skip the recovery attempt, and if so, should I use it?</FONT>

<BR><FONT SIZE=2 FACE="Arial">Am I going about this all wrong, is there a better way to do this (other than GFS)?</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Thanks.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial"> - Jeff</FONT>
</P>

</BODY>
</HTML>