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 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 href="http://www.grid.auth.gr" target="_blank">http://www.grid.auth.gr</a><br>
<br>
_______________________________________________<br>
Lustre-discuss mailing list<br>
<a href="mailto:Lustre-discuss@lists.lustre.org">Lustre-discuss@lists.lustre.org</a><br>
<a 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 href="mailto:wjt27@cam.ac.uk" target="_blank">wjt27@cam.ac.uk</a><br>
Tel: (+)44 1223 763517 <br>