<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:33:13 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Whamcloud Community JIRA</title>
    <link>https://jira.whamcloud.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.4.14</version>
        <build-number>940014</build-number>
        <build-date>05-12-2023</build-date>
    </build-info>


<item>
            <title>[LU-17169] can&apos;t delete corrupted directory</title>
                <link>https://jira.whamcloud.com/browse/LU-17169</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Users has a courpted directory.&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
ls -l |grep vol
ls: cannot access &lt;span class=&quot;code-quote&quot;&gt;&apos;volcano&apos;&lt;/span&gt;: No such file or directory
d????????? ? ? ? ? ? volcano&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;It is a directory on the 3rd MDT and here is stat output&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
debugfs: ls -l
....
151872827 40000 (18) 0 0 4096 31-Dec-1969 16:00 volcano
....
debugfs: stat volcano
Inode: 151872827 Type: directory Mode: 0000 Flags: 0x80000
Generation: 2866389135 Version: 0x00000000:00000000
User: 0 Group: 0 Project: 0 Size: 4096
File ACL: 0
Links: 2 Blockcount: 8
Fragment: Address: 0 &lt;span class=&quot;code-object&quot;&gt;Number&lt;/span&gt;: 0 Size: 0
ctime: 0x651736e5:ea8ba3cc &#8211; Fri Sep 29 13:43:17 2023
atime: 0x00000000:fffffff8 &#8211; Wed Dec 31 16:00:00 1969
mtime: 0x00000000:fffffff8 &#8211; Wed Dec 31 16:00:00 1969
crtime: 0x651736e5:ea4e9a98 &#8211; Fri Sep 29 13:43:17 2023
Size of extra inode fields: 32
Extended attributes:
lma: fid=[0x28003d638:0x1:0x0] compat=0 incompat=2
EXTENTS:
(0):2357133314

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;How should we delete this? Should we run an lfsck?&lt;/p&gt;</description>
                <environment></environment>
        <key id="78269">LU-17169</key>
            <summary>can&apos;t delete corrupted directory</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.whamcloud.com/images/icons/priorities/major.svg">Major</priority>
                        <status id="5" iconUrl="https://jira.whamcloud.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="5">Cannot Reproduce</resolution>
                                        <assignee username="pjones">Peter Jones</assignee>
                                    <reporter username="mhanafi">Mahmoud Hanafi</reporter>
                        <labels>
                    </labels>
                <created>Thu, 5 Oct 2023 15:53:08 +0000</created>
                <updated>Fri, 3 Nov 2023 14:54:14 +0000</updated>
                            <resolved>Fri, 3 Nov 2023 14:54:08 +0000</resolved>
                                    <version>Lustre 2.15.3</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="388238" author="adilger" created="Thu, 5 Oct 2023 16:26:54 +0000"  >&lt;p&gt;The first thing to do before deleting anything is to check if there are any errors reported on the console logs on the client or MDS?  Depending on the error, it might make sense to run e2fsck or lfsck to see if the directory can be repaired.  You could run a read-only e2fsck to see if this directory inode number is reporting any errors.&lt;/p&gt;</comment>
                            <comment id="388361" author="mhanafi" created="Fri, 6 Oct 2023 15:19:24 +0000"  >&lt;p&gt;I started a lfsck dry-run, there are a lot of&#160;layout_repaire like this&lt;br/&gt;
Lustre: nbp11-MDT0001-osd: layout LFSCK master found bad lmm_oi for &lt;span class=&quot;error&quot;&gt;&amp;#91;0x28000233a:0x46cf:0x0&amp;#93;&lt;/span&gt;: rc = 56&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
layout_mdts_init: 0
layout_mdts_scanning-phase1: 1
layout_mdts_scanning-phase2: 2
layout_mdts_completed: 0
layout_mdts_failed: 0
layout_mdts_stopped: 0
layout_mdts_paused: 0
layout_mdts_crashed: 0
layout_mdts_partial: 0
layout_mdts_co-failed: 0
layout_mdts_co-stopped: 0
layout_mdts_co-paused: 0
layout_mdts_unknown: 0
layout_osts_init: 0
layout_osts_scanning-phase1: 0
layout_osts_scanning-phase2: 69
layout_osts_completed: 0
layout_osts_failed: 0
layout_osts_stopped: 0
layout_osts_paused: 0
layout_osts_crashed: 0
layout_osts_partial: 0
layout_osts_co-failed: 0
layout_osts_co-stopped: 0
layout_osts_co-paused: 0
layout_osts_unknown: 0
layout_repaired: 92227209
namespace_mdts_init: 0
namespace_mdts_scanning-phase1: 1
namespace_mdts_scanning-phase2: 2
namespace_mdts_completed: 0
namespace_mdts_failed: 0
namespace_mdts_stopped: 0
namespace_mdts_paused: 0
namespace_mdts_crashed: 0
namespace_mdts_partial: 0
namespace_mdts_co-failed: 0
namespace_mdts_co-stopped: 0
namespace_mdts_co-paused: 0
namespace_mdts_unknown: 0
namespace_osts_init: 0
namespace_osts_scanning-phase1: 0
namespace_osts_scanning-phase2: 0
namespace_osts_completed: 0
namespace_osts_failed: 0
namespace_osts_stopped: 0
namespace_osts_paused: 0
namespace_osts_crashed: 0
namespace_osts_partial: 0
namespace_osts_co-failed: 0
namespace_osts_co-stopped: 0
namespace_osts_co-paused: 0
namespace_osts_unknown: 0
namespace_repaired: 1051&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="388362" author="mhanafi" created="Fri, 6 Oct 2023 15:20:01 +0000"  >&lt;p&gt;I am also attaching the full lfsck dry-run output.&lt;/p&gt;

&lt;p&gt;We will need to schedule dedicated time to run e2fsck.&lt;/p&gt;</comment>
                            <comment id="388366" author="adilger" created="Fri, 6 Oct 2023 15:44:50 +0000"  >&lt;blockquote&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;Lustre: nbp11-MDT0001-osd: layout LFSCK master found bad lmm_oi for [0x28000233a:0x46cf:0x0]: rc = 56
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;

&lt;p&gt;What does &quot;&lt;tt&gt;lfs getstripe -v /mnt/nbp11/.lustre/fid/0x28000233a:0x46cf:0x0&lt;/tt&gt;&quot; report for the file layout?  The &lt;tt&gt;lmm_oi&lt;/tt&gt; is the old &quot;backpointer&quot; from the file layout to store the FID, but it isn&apos;t really used for anything these days and doesn&apos;t necessarily indicate any sign of problems.  If the filesystem is older then it is possible that it had a bug that wrote the &lt;tt&gt;lmm_oi&lt;/tt&gt; in an incorrect format.&lt;/p&gt;</comment>
                            <comment id="388371" author="mhanafi" created="Fri, 6 Oct 2023 16:20:34 +0000"  >&lt;p&gt;&#160;&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
/nobackupp11/.lustre/fid/0x28000233a:0x46cf:0x0
lmm_magic:         0x0BD10BD0
lmm_seq:           0x2000264db
lmm_object_id:     0x4f02
lmm_fid:           [0x2000264db:0x4f02:0x0]
lmm_stripe_count:  1
lmm_stripe_size:   4194304
lmm_pattern:       raid0
lmm_layout_gen:    0
lmm_stripe_offset: 22
	obdidx		 objid		 objid		 group
	    22	       6466362	     0x62ab3a	             0

&#160;&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;This is a very old filesystem.&lt;/p&gt;</comment>
                            <comment id="388408" author="adilger" created="Fri, 6 Oct 2023 22:08:00 +0000"  >&lt;p&gt;It looks like the FID stored in the layout is different than the FID of the file. That might be because the file was migrated but the layout FID was not updated. That was an old bug which has since been fixed. &lt;/p&gt;</comment>
                            <comment id="390081" author="pjones" created="Fri, 20 Oct 2023 19:23:44 +0000"  >&lt;p&gt;Anything else needed here Mahmoud or can we close this ticket out?&lt;/p&gt;</comment>
                            <comment id="391671" author="pjones" created="Fri, 3 Nov 2023 14:54:08 +0000"  >&lt;p&gt;Seems to be no further questions&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="50564" name="nbp11.lfsck_dry_run.out.gz" size="378391484" author="mhanafi" created="Fri, 6 Oct 2023 15:21:38 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                            <customfield id="customfield_10890" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i03xlz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10060" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Severity</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10022"><![CDATA[3]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>