<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:56:55 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-6066] lfsck_namespace_repair_nlink() ASSERTION( (((lfsck_object_type(obj)) &amp; 00170000) == 0100000) ) failed</title>
                <link>https://jira.whamcloud.com/browse/LU-6066</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;I was testing out some filesystem corruption (mounted MDT as type ldiskfs, copied MDT file and all xattrs from &lt;tt&gt;hosts&lt;/tt&gt; to &lt;tt&gt;hosts.clone&lt;/tt&gt;, then modified LMA FID and LOV ostid f_oid=0x1 to f_oid=0x2) so that they would share the same OST object but have different FIDs.&lt;/p&gt;

&lt;p&gt;When remounting the MDT as type lustre and listing the files, it detected OI corruption due to the missing FID and started OI scrub:&lt;/p&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: testfs-MDT0000: trigger OI scrub by RPC for [0x2c00059f0:0x2:0x0], rc = 0 [2]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;which appeared to be successful since I could list all the files.&lt;/p&gt;

&lt;p&gt;I deleted the &lt;tt&gt;hosts.clone&lt;/tt&gt; file, and then observed (as expected) that &lt;tt&gt;ls&lt;/tt&gt; returned an error because the referenced OST objects no longer existed. However, I was unable to unlink the original filename, even when using &lt;tt&gt;munlink&lt;/tt&gt; which should ignore any errors.  This was apparently because I had (accidentally) made the cloned file share the same FID f_oid=0x2 as a third file &lt;tt&gt;hosts2&lt;/tt&gt;, and figured that the duplication of the MDT FID was causing problems since it couldn&apos;t find this FID in the OI anymore.&lt;/p&gt;

&lt;p&gt;I tried running &lt;tt&gt;lctl lfsck_start -M testfs-MDT0000 -A&lt;/tt&gt; to rebuild the OI to contain the original f_oid=0x2 inode (which still existed in the &lt;tt&gt;host2&lt;/tt&gt; LMA), but immediately hit the below assertions on two different LFSCK threads:&lt;/p&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;LustreError: 20102:0:(lfsck_namespace.c:2921:lfsck_namespace_repair_nlink()) ASSERTION( (((lfsck_object_type(obj)) &amp;amp; 00170000) == 0100000) ) failed:
LustreError: 20102:0:(lfsck_namespace.c:2921:lfsck_namespace_repair_nlink()) LBUG
Pid: 20102, comm: lfsck_namespace
Call Trace:
 [&amp;lt;ffffffffa0812895&amp;gt;] libcfs_debug_dumpstack+0x55/0x80 [libcfs]
 [&amp;lt;ffffffffa0812e97&amp;gt;] lbug_with_loc+0x47/0xb0 [libcfs]
 [&amp;lt;ffffffffa0f06bf1&amp;gt;] lfsck_namespace_repair_nlink+0x6b1/0xa60 [lfsck]
 [&amp;lt;ffffffffa0f1b9bf&amp;gt;] lfsck_namespace_double_scan_one+0x23f/0x1410 [lfsck]
 [&amp;lt;ffffffffa0f1d899&amp;gt;] lfsck_namespace_assistant_handler_p2+0xd09/0x11b0 [lfsck]
 [&amp;lt;ffffffffa0eff399&amp;gt;] lfsck_assistant_engine+0x14e9/0x1e00 [lfsck]
 [&amp;lt;ffffffff8109abf6&amp;gt;] kthread+0x96/0xa0

LustreError: 20097:0:(lfsck_namespace.c:2921:lfsck_namespace_repair_nlink()) ASSERTION( (((lfsck_object_type(obj)) &amp;amp; 00170000) == 0100000) ) failed:
Pid: 20097, comm: lfsck_namespace
Call Trace:
 [&amp;lt;ffffffffa0812895&amp;gt;] libcfs_debug_dumpstack+0x55/0x80 [libcfs]
 [&amp;lt;ffffffffa0812e97&amp;gt;] lbug_with_loc+0x47/0xb0 [libcfs]
 [&amp;lt;ffffffffa0f06bf1&amp;gt;] lfsck_namespace_repair_nlink+0x6b1/0xa60 [lfsck]
 [&amp;lt;ffffffffa0f1b9bf&amp;gt;] lfsck_namespace_double_scan_one+0x23f/0x1410 [lfsck]
 [&amp;lt;ffffffffa0f1d899&amp;gt;] lfsck_namespace_assistant_handler_p2+0xd09/0x11b0 [lfsck]
 [&amp;lt;ffffffffa0eff399&amp;gt;] lfsck_assistant_engine+0x14e9/0x1e00 [lfsck]
 [&amp;lt;ffffffff8109abf6&amp;gt;] kthread+0x96/0xa0
LustreError: dumping log to /tmp/lustre-log.1419280935.20097
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;We definitely shouldn&apos;t be LASSERTing on data from the filesystem.&lt;/p&gt;</description>
                <environment>Single node test system (MDTx2, OSTx3, client), RHEL 2.6.32-431.29.2.el6 kernel, Lustre master v2_6_91_0-49-ge0ece89</environment>
        <key id="28005">LU-6066</key>
            <summary>lfsck_namespace_repair_nlink() ASSERTION( (((lfsck_object_type(obj)) &amp; 00170000) == 0100000) ) failed</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</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="1">Fixed</resolution>
                                        <assignee username="yong.fan">nasf</assignee>
                                    <reporter username="adilger">Andreas Dilger</reporter>
                        <labels>
                            <label>HB</label>
                    </labels>
                <created>Mon, 22 Dec 2014 21:04:50 +0000</created>
                <updated>Sat, 10 Jan 2015 04:53:49 +0000</updated>
                            <resolved>Sat, 10 Jan 2015 04:53:49 +0000</resolved>
                                    <version>Lustre 2.7.0</version>
                                    <fixVersion>Lustre 2.7.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="102286" author="gerrit" created="Wed, 24 Dec 2014 07:37:56 +0000"  >&lt;p&gt;Fan Yong (fan.yong@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/13181&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/13181&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6066&quot; title=&quot;lfsck_namespace_repair_nlink() ASSERTION( (((lfsck_object_type(obj)) &amp;amp; 00170000) == 0100000) ) failed&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6066&quot;&gt;&lt;del&gt;LU-6066&lt;/del&gt;&lt;/a&gt; lfsck: handle file&apos;s nlink attribute properly&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 47013f40c4aa2c853de5675e2a632cf1e7613be0&lt;/p&gt;</comment>
                            <comment id="103133" author="gerrit" created="Sat, 10 Jan 2015 04:40:14 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/13181/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/13181/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6066&quot; title=&quot;lfsck_namespace_repair_nlink() ASSERTION( (((lfsck_object_type(obj)) &amp;amp; 00170000) == 0100000) ) failed&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6066&quot;&gt;&lt;del&gt;LU-6066&lt;/del&gt;&lt;/a&gt; lfsck: handle file&apos;s nlink attribute properly&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 85be1fae82b515094b60bb20eb48f88989ccc6e9&lt;/p&gt;</comment>
                            <comment id="103137" author="yong.fan" created="Sat, 10 Jan 2015 04:53:49 +0000"  >&lt;p&gt;The patch has been landed to master.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </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|hzx2zr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>16885</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>