<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:31:15 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-3132] lfsck: failed to recreate /mnt/lustre/d0.lfsck/testfile.7 missing obj 0:12</title>
                <link>https://jira.whamcloud.com/browse/LU-3132</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;b1_8 lfsck test log shows&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;lfsck 1.42.6.wc2 (10-Dec-2012)
lfsck: ost_idx 0: pass1: check for duplicate objects
lfsck: ost_idx 0: pass1 OK (20 files total)
lfsck: ost_idx 0: pass2: check for missing inode objects
[0]: failed to recreate /mnt/lustre/d0.lfsck/testfile.7 missing obj 0:12
lfsck: ost_idx 0: pass2 ERROR: 1 dangling inodes found (21 files total)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The maloo report is at &lt;a href=&quot;https://maloo.whamcloud.com/test_sessions/61ecab6c-a051-11e2-898f-52540035b04c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://maloo.whamcloud.com/test_sessions/61ecab6c-a051-11e2-898f-52540035b04c&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="18293">LU-3132</key>
            <summary>lfsck: failed to recreate /mnt/lustre/d0.lfsck/testfile.7 missing obj 0:12</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="6" iconUrl="https://jira.whamcloud.com/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="emoly.liu">Emoly Liu</assignee>
                                    <reporter username="emoly.liu">Emoly Liu</reporter>
                        <labels>
                    </labels>
                <created>Tue, 9 Apr 2013 03:08:20 +0000</created>
                <updated>Tue, 14 May 2013 00:26:11 +0000</updated>
                            <resolved>Tue, 14 May 2013 00:26:01 +0000</resolved>
                                    <version>Lustre 1.8.9</version>
                                    <fixVersion>Lustre 1.8.9</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="57039" author="emoly.liu" created="Thu, 25 Apr 2013 14:00:15 +0000"  >&lt;p&gt;I added some debugging info to ll_lov_recreate().&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;@@ -2254,6 +2254,8 @@ &lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; ll_lov_recreate(struct inode *inode, obd_id id, obd_gr gr,
 out:
         up(&amp;amp;lli-&amp;gt;lli_size_sem);
         OBDO_FREE(oa);
+        printk(&lt;span class=&quot;code-quote&quot;&gt;&quot;rc=%d: [%u] recreate missing obj &quot;&lt;/span&gt;LPU64&lt;span class=&quot;code-quote&quot;&gt;&quot;:&quot;&lt;/span&gt;LPU64&lt;span class=&quot;code-quote&quot;&gt;&quot;\n&quot;&lt;/span&gt;,
+                rc, (__u32)ost_idx, id, gr);
         &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; rc;
 }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;lfsck output showed that there were 5 dangling inodes,&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;lfsck: ost_idx 0: pass2: check for missing inode objects
[0]: failed to recreate /mnt/lustre/d0.lfsck/testfile.1 missing obj 0:34
[0]: failed to recreate /mnt/lustre/d0.lfsck/testfile.3 missing obj 0:35
[0]: failed to recreate /mnt/lustre/d0.lfsck/testfile.5 missing obj 0:36
[0]: failed to recreate /mnt/lustre/d0.lfsck/testfile.7 missing obj 0:37
[0]: failed to recreate /mnt/lustre/d0.lfsck/testfile.9 missing obj 0:38
lfsck: ost_idx 0: pass2 ERROR: 5 dangling inodes found (76 files total)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;but the debugging info showed ost_idx and id in struct ll_recreate_obj passed from lfsck_recreate_obj() by ioctl is wrong.&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;rc=-22: [0] recreate missing obj 47571424239216:0
rc=-22: [0] recreate missing obj 47571424239216:0
rc=-22: [0] recreate missing obj 47571424239216:0
rc=-22: [0] recreate missing obj 47571424239216:0
rc=-22: [0] recreate missing obj 47571424239216:0
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I will investigate it.&lt;/p&gt;</comment>
                            <comment id="57099" author="emoly.liu" created="Fri, 26 Apr 2013 09:10:39 +0000"  >&lt;p&gt;After looking into lfsck.c, I found something wrong in lfsck_recreate_obj().&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;&lt;span class=&quot;code-comment&quot;&gt;/* If an MDS file is missing an object recreate object using an ioctl call */&lt;/span&gt;
&lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; lfsck_recreate_obj(&lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; cmd, void *creat, struct ost_id *oi,
                              __u32 ost_idx, &lt;span class=&quot;code-object&quot;&gt;char&lt;/span&gt; *path)
{
......
        rc = ioctl(fd, cmd, &amp;amp;creat); 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Here, &quot;creat&quot; is already a pointer to struct ll_recreate_obj variable, so we should pass it into ioctl directly.&lt;/p&gt;

&lt;p&gt;I will push a patch later.&lt;/p&gt;</comment>
                            <comment id="57179" author="emoly.liu" created="Sat, 27 Apr 2013 05:16:20 +0000"  >&lt;p&gt;&lt;a href=&quot;http://review.whamcloud.com/#change,6181&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#change,6181&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="58411" author="emoly.liu" created="Tue, 14 May 2013 00:26:01 +0000"  >&lt;p&gt;patch landed.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="18117">LU-3041</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <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|hzvnev:</customfieldvalue>

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