<!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.5.7650.5">
<TITLE>Filesystem Inconsisteny</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">Hello list,</FONT></SPAN>
</P>

<P><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">we use an auto-install-mechanism, to install our software load on our systems. One of</FONT></SPAN>

<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">the tasks, that will be accomplished by this routine is to create filesystems on partitions,</FONT></SPAN>

<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">mount them and install the software load.</FONT></SPAN>
</P>

<P><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">The partitions mentioned above will be threaded, respectively used as DRBD-Devices later,</FONT></SPAN>

<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">after the first boot of the systems.</FONT></SPAN>

<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">Therefore the installation-routine will create filesystems, with respect of the metadata-area,</FONT></SPAN>

<BR><SPAN LANG="de"><FONT SIZE=2 FACE="Arial">so the filesystem-size (in fs-blocks) that is given by the &quot;mkfs&quot;-command is reduced about 128MB.</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">After the creation of the filesystem, it is mounted and the software load is installed. Just after rebooting</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">after the installation, the partitions with the existent filesystems, will be setup as drbd-devices. The metadata</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">is held internal.</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">Now the question:</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">We inspected that the filesystem has errors after the auto-install-routine had cleanly unmount the filesystems, which</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">are prepared for the use as drbd-devices.</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">We could give you the following info:</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">Kernel: 2.6.10_mvlcge40</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">DRBD: 0.7.10</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">Filesystem: ext2 (will later be migrated to ext3)</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">Actions which were performed:</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">The software-load is installed on both, primary and secondary node. Only the drbd-content</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">will installed and extracted to the primary node and later after the first boot of both nodes,</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">mirrored using drbd.</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">1. mkfs -t ext2 -b 2048 /dev/discs/disc0/part11 6078976</FONT></SPAN>

<BR><SPAN LANG="en-us">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Arial">(the filesystems original size is 12000MB so only 11873MB will be use for the filesystem)</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">2. mount the lower-level device on temp. mp </FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">3. extract the software-load to it (4.3GB of diskless blades OS - Repositorys)</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">4. unmount the lower-level device</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">5. booting both systems with their freshly installed software-load (node1 will the Sync-Source)</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">6. poweroff node2 (secondary - synctarget)</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">7. unmount the drbd-devices on node1 and checking it for errors (e2fsck) gave the following output:</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">size of /export (/dev/nbd/5)</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">/dev/nbd/5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 11965818&nbsp;&nbsp; 4285744&nbsp;&nbsp; 7072178&nbsp; 38% /export</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">root@sb1-1:~# umount /export/</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">root@sb1-1:~# e2fsck /dev/nbd/5</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">e2fsck 1.35 (28-Feb-2004)</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">/dev/nbd/5 was not cleanly unmounted, check forced.</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Pass 1: Checking inodes, blocks, and sizes</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Inode 1085822, i_blocks is 528, should be 500.&nbsp; Fix&lt;y&gt;? yes</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Inode 1085821, i_blocks is 2588, should be 2572.&nbsp; Fix&lt;y&gt;? yes</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Inode 1139871, i_blocks is 2584, should be 2572.&nbsp; Fix&lt;y&gt;? yes</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Inode 1139872, i_blocks is 520, should be 500.&nbsp; Fix&lt;y&gt;? yes</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Pass 2: Checking directory structure</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Pass 3: Checking directory connectivity</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Pass 4: Checking reference counts</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Pass 5: Checking group summary information</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">/dev/nbd/5: ***** FILE SYSTEM WAS MODIFIED *****</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">/dev/nbd/5: 111035/1523712 files (0.6% non-contiguous), 2238939/6078976 blocks</FONT></SPAN>
</P>
<BR>

<P><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">Who can tell me, why the filesystem has this inconsistency. The filesystem</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Courier New">was never &quot;not cleanly unmounted&quot;. Thanks...</FONT></SPAN>
</P>

<P><SPAN LANG="en-us">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">Stefan </FONT></SPAN>
</P>

</BODY>
</HTML>