<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><br></div><div>

<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">


<div>If you move them to CORRUPTED (either inside the namespace or outside) then Lustre shouldn't do anything further to them. That would also prevent the blocks from being reallocated.</div>
<div><br>
</div>
<div>The other option would be to run "e2fsck -l" and feed it the bad block numbers and have those stored in the ext4 bad blocks inode. That should prevent ext4 from ever reallocating those blocks again, but note that the badblocks feature is rarely used these
 days as most devices had internal bad block remapping. <br>
<br>
<div>Cheers, Andreas</div>
</div>
<div><br>
On Dec 21, 2016, at 08:03, Tommi T <<a href="mailto:tommi_t77@yahoo.com">tommi_t77@yahoo.com</a>> wrote:<br>
<br>
</div>
<blockquote type="cite">
<div>
<div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px">
<div id="yui_3_16_0_ym19_1_1482326904442_3476">Hi,</div>
<div id="yui_3_16_0_ym19_1_1482326904442_3476"><br>
</div>
<div id="yui_3_16_0_ym19_1_1482326904442_3476" dir="ltr">We have 33 files/inodes which we'd like to move out MDT ROOT/ directory due to FS corruption issue. If I mount MDT as as ldiskfs and create some directory (e.g. CORRUPTED) and move corrupted files from
 ROOT/path/file to CORRUPTED, will lustre ignore those files? </div>
<div id="yui_3_16_0_ym19_1_1482326904442_3476" dir="ltr"><br>
</div>
<div id="yui_3_16_0_ym19_1_1482326904442_3476" dir="ltr">Another option is just mark those inodes as a used with debugfs so that e2fsck could "fix" the fs.</div>
<div id="yui_3_16_0_ym19_1_1482326904442_3476" dir="ltr"><br>
</div>
<div id="yui_3_16_0_ym19_1_1482326904442_3476" dir="ltr">Corruption is not lustre fault, something writes EFI partition label on top of lustre fs. It's exactly at $(fs size) - 2 TB location so atm. we suspect Qlogic FC card bios settings. </div>
<div id="yui_3_16_0_ym19_1_1482326904442_3476" dir="ltr"><br>
</div>
<div id="yui_3_16_0_ym19_1_1482326904442_3476" dir="ltr">TIA,</div>
<div id="yui_3_16_0_ym19_1_1482326904442_3476" dir="ltr">Tommi</div>
</div>
</div>
</blockquote>
<blockquote type="cite">
<div><span>_______________________________________________</span><br>
<span>lustre-discuss mailing list</span><br>
<span><a href="mailto:lustre-discuss@lists.lustre.org">lustre-discuss@lists.lustre.org</a></span><br>
<span><a href="http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org">http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org</a></span><br></div></blockquote></div><blockquote type="cite"><div><blockquote type="cite"><div>
</div>
</blockquote>


</div></blockquote></body></html>