Hi Bernd,<br><br>Thanks for the tip.<br>I don't have high hopes for recovering to much but from where I stand I have nothing to loose. Failed OST was a part of the scratch filesystem so in theory the data weren't that sensitive. However some people would be very happy if they could recover any data.<br>
<br>Best regards,<br><br>Wojciech<br><br><div class="gmail_quote">On 21 October 2010 17:45, Bernd Schubert <span dir="ltr"><<a href="mailto:bs_lists@aakef.fastmail.fm">bs_lists@aakef.fastmail.fm</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;">Hello Wojciech Turek,<br>
<div><div></div><div class="h5"><br>
<br>
On Thursday, October 21, 2010, Wojciech Turek wrote:<br>
> Hi Andreas,<br>
><br>
> I have restarted fsck after the segfault and it ran for several hours and<br>
> it segfaulted again.<br>
><br>
> Pass 3A: Optimizing directories<br>
> Failed to optimize directory ??? (73031): EXT2 directory corrupted<br>
> Failed to optimize directory ??? (73041): EXT2 directory corrupted<br>
> Failed to optimize directory ??? (75203): EXT2 directory corrupted<br>
> Failed to optimize directory ??? (75357): EXT2 directory corrupted<br>
> Failed to optimize directory ??? (75744): EXT2 directory corrupted<br>
> Failed to optimize directory ??? (75806): EXT2 directory corrupted<br>
> Failed to optimize directory ??? (75825): EXT2 directory corrupted<br>
> Failed to optimize directory ??? (75913): EXT2 directory corrupted<br>
> Failed to optimize directory ??? (75926): EXT2 directory corrupted<br>
> Failed to optimize directory ??? (76034): EXT2 directory corrupted<br>
> Failed to optimize directory ??? (76083): EXT2 directory corrupted<br>
> Failed to optimize directory ??? (76142): EXT2 directory corrupted<br>
> Failed to optimize directory ??? (76266): EXT2 directory corrupted<br>
> Failed to optimize directory ??? (76501): EXT2 directory corrupted<br>
> Failed to optimize directory ??? (77133): EXT2 directory corrupted<br>
> Failed to optimize directory ??? (77212): EXT2 directory corrupted<br>
> Failed to optimize directory ??? (77817): EXT2 directory corrupted<br>
> Failed to optimize directory ??? (77984): EXT2 directory corrupted<br>
> Failed to optimize directory ??? (77985): EXT2 directory corrupted<br>
> Segmentation fault<br>
<br>
</div></div>Maybe try to disable dirindex?<br>
<div class="im"><br>
><br>
> I noticed that the stack limit was quite low so I now changed it to<br>
> unlimited, also I increased limit for number of open files (maybe it can<br>
> help).<br>
><br>
> Now I have another problem. After last segfault I can not restart the fsck<br>
> due to MMP.<br>
><br>
> e2fsck -fy /dev/scratch2_ost16vg/ost16lv<br>
> e2fsck 1.41.10.sun2 (24-Feb-2010)<br>
> e2fsck: MMP: fsck being run while trying to open<br>
> /dev/scratch2_ost16vg/ost16lv<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 32768 <device><br>
><br>
><br>
> Also when I try to access filesystem via debugfs it fails:<br>
><br>
> debugfs -c -R 'ls' /dev/scratch2_ost16vg/ost16lv<br>
> debugfs 1.41.10.sun2 (24-Feb-2010)<br>
> /dev/scratch2_ost16vg/ost16lv: MMP: fsck being run while opening filesystem<br>
> ls: Filesystem not open<br>
<br>
><br>
> Is there a way to clear teh MMP flag so it allows fsck to run?<br>
<br>
</div>you can try tune2fs -f -E clear-mmp<br>
<br>
However, with a corrupted filesystem, that might not work. You can download a<br>
fixed e2fsprogs from my homepage, that does allow to run read-only operations<br>
(such as 'debugfs -c' or 'dumpe2fs -h') in read-only mode. Then you check<br>
which block is the MMP block and zero that.<br>
<br>
<a href="http://www.pci.uni-heidelberg.de/tc/usr/bernd/downloads/e2fsprogs/" target="_blank">http://www.pci.uni-heidelberg.de/tc/usr/bernd/downloads/e2fsprogs/</a><br>
<br>
(just reminds me, I need to upload it to our DDN download site)<br>
<br>
<br>
Also, do you really want to use data files, that might have been zeroed in<br>
their middle? I think If at all your recovery will only be useful for small<br>
human readable text files....<br>
<br>
<br>
Hope it helps,<br>
Bernd<br>
<font color="#888888"><br>
<br>
--<br>
Bernd Schubert<br>
DataDirect Networkk<br>
</font></blockquote></div>