<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hi Wojciech,<br>
    <br>
    upgrading e2fsprog worked fine.<br>
    <br>
    Thank you<br>
    Christos<br>
    <br>
    <br>
    On 04/13/2011 02:29 PM, Wojciech Turek wrote:
    <blockquote
      cite="mid:BANLkTikHAQqX_4ng8y2UYyU-=FcY4b7EVA@mail.gmail.com"
      type="cite">Hi Christos,<br>
      <br>
      As far as I remember the mmp implementation in the default Lustre
      e2fsprog has a bug where you can not access filesystem in readonly
      mode as long as the filesystem is mounted. I downloaded a newer
      version of the e2fsprog tools which doesn't have that fault and I
      have been successfully using this version for 6 months now.<br>
      <br>
      e2fsprogs-1.41.12.2.ora1-0redhat.x86_64<br>
      e2fsprogs-devel-1.41.12.2.ora1-0redhat.x86_64<br>
      <br>
      So if you upgrade your e2fsprogs to newer version you should not
      have a problem to run fsck with -n<br>
      <br>
      Other option you have is to temporarily disable the MMP protection
      but I am not sure if you can do that while device is mounted.<br>
      <br>
      Best regards,<br>
      <br>
      Wojciech<br>
      <br>
      <br>
      <div class="gmail_quote">On 13 April 2011 09:29, Christos
        Theodosiou <span dir="ltr"><<a moz-do-not-send="true"
            href="mailto:ctheodos@grid.auth.gr">ctheodos@grid.auth.gr</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;">
          Hi all,<br>
          <br>
          I am trying to perform a file-system check on a mounted lustre
          file-system.<br>
          <br>
          The e2fsck fails with the following message:<br>
          <br>
           > e2fsck -n -v --mdsdb /tmp/mdsdb /dev/msavg/lv001<br>
          e2fsck 1.41.10.sun2 (24-Feb-2010)<br>
          device /dev/mapper/msavg-lv001 mounted by lustre per<br>
          /proc/fs/lustre/mds/lustrefs-MDT0000/mntdev<br>
          Warning!  /dev/msavg/lv001 is mounted.<br>
          e2fsck: MMP: device currently active while trying to open
          /dev/msavg/lv001<br>
          <br>
          The superblock could not be read or does not describe a
          correct ext2<br>
          filesystem.  If the device is valid and it really contains an
          ext2<br>
          filesystem (and not swap or ufs or something else), then the
          superblock<br>
          is corrupt, and you might try running e2fsck with an alternate
          superblock:<br>
              e2fsck -b 32744 <device><br>
          <br>
          I tried setting -b argument but the message persists.<br>
          <br>
          Do you have any suggestions on how to proceed.<br>
          <br>
          Best regards<br>
          Christos<br>
          <br>
          --<br>
          Christos Theodosiou<br>
          Scientific Computational Center<br>
          Aristotle University<br>
          54 124 Thessaloniki, Greece<br>
          Tel: +30 2310 99 8988<br>
          Fax: +30 2310 99 4309<br>
          <a moz-do-not-send="true" href="http://www.grid.auth.gr"
            target="_blank">http://www.grid.auth.gr</a><br>
          <br>
          _______________________________________________<br>
          Lustre-discuss mailing list<br>
          <a moz-do-not-send="true"
            href="mailto:Lustre-discuss@lists.lustre.org">Lustre-discuss@lists.lustre.org</a><br>
          <a moz-do-not-send="true"
            href="http://lists.lustre.org/mailman/listinfo/lustre-discuss"
            target="_blank">http://lists.lustre.org/mailman/listinfo/lustre-discuss</a><br>
        </blockquote>
      </div>
      <br>
      <br clear="all">
      <br>
      -- <br>
      Wojciech Turek<br>
      <br>
      Senior System Architect<br>
      <br>
      High Performance Computing Service<br>
      University of Cambridge<br>
      Email: <a moz-do-not-send="true" href="mailto:wjt27@cam.ac.uk"
        target="_blank">wjt27@cam.ac.uk</a><br>
      Tel: (+)44 1223 763517 <br>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Christos Theodosiou
Scientific Computational Center
Aristotle University 
54 124 Thessaloniki, Greece
Tel: +30 2310 99 8988
Fax: +30 2310 99 4309
<a class="moz-txt-link-freetext" href="http://www.grid.auth.gr">http://www.grid.auth.gr</a></pre>
  </body>
</html>