<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:36:20 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-3719] divide error in ldiskfs_mb_normalize_request on MDT</title>
                <link>https://jira.whamcloud.com/browse/LU-3719</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;IU ran into an issue on their MDT where it would constantly crash after recovery. We finally got a good core dump and were able to get this bt:&lt;br/&gt;
#6 &lt;span class=&quot;error&quot;&gt;&amp;#91;ffff882ff8ded040&amp;#93;&lt;/span&gt; divide_error at ffffffff8100bdfb&lt;br/&gt;
    &lt;span class=&quot;error&quot;&gt;&amp;#91;exception RIP: ldiskfs_mb_normalize_request+244&amp;#93;&lt;/span&gt;&lt;br/&gt;
    &lt;span class=&quot;error&quot;&gt;&amp;#91;exception RIP: ldiskfs_mb_normalize_request+244&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;This looks almost identical to &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-2480&quot; title=&quot;divide error in ldiskfs_mb_normalize_request&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-2480&quot;&gt;&lt;del&gt;LU-2480&lt;/del&gt;&lt;/a&gt;, except that it is occurring on the MDT. &lt;/p&gt;

&lt;p&gt;We were able to get the MDT mounted after running e2fsck and then tune2fs -E stripe_width=0,stride=0. Apparently mke2fs had set them based on values from LVM. &lt;/p&gt;

&lt;p&gt;I checked the line at ldiskfs_mb_normalize_request+244 in mballoc.c:&lt;br/&gt;
                wind = sbi-&amp;gt;s_mb_prealloc_table&lt;span class=&quot;error&quot;&gt;&amp;#91;i - 1&amp;#93;&lt;/span&gt;;&lt;br/&gt;
                tstart = ac-&amp;gt;ac_o_ex.fe_logical;&lt;br/&gt;
                do_div(tstart, wind);&lt;/p&gt;

&lt;p&gt;It looks like the s_mb_prealloc_table isn&apos;t getting fully populated. I inspected it with crash, and that looks to be the case:&lt;br/&gt;
crash&amp;gt; x/3xg 0xffff881822cc4d40&lt;br/&gt;
0xffff881822cc4d40:     0x0000000000000c00      0x0000000000001800&lt;br/&gt;
0xffff881822cc4d50:     0x0000000000000000&lt;/p&gt;

&lt;p&gt;0xc00 (3072) was the reported stripe_width by dumpe2fs. It appears that ldiskfs_mb_init attempts to create three entries in the table, stripe * 1, *2, and * 4. However, ldiskfs_mb_prealloc_table_add can silently fail if the entry value is &amp;gt; (sbi-&amp;gt;s_blocks_per_group - 1 - 1 - sbi-&amp;gt;s_itb_per_group). This can cause a situation where the table size is still 3, but one or more entry is zero.&lt;/p&gt;

&lt;p&gt;I&apos;m not sure what the best fix is. It seems as if returning an error from ldiskfs_mb_prealloc_table_add and adjusting the table size would be ideal. Alternatively, ldiskfs_mb_normalize_request could check to make sure the table doesn&apos;t have a zero, something like:&lt;br/&gt;
&lt;del&gt;+      for (i = 0; i &amp;lt; sbi&lt;/del&gt;&amp;gt;s_mb_prealloc_table_size; i++) {&lt;br/&gt;
++      for (i = 0; i &amp;lt; sbi-&amp;gt;s_mb_prealloc_table_size &amp;amp;&amp;amp; sbi-&amp;gt;s_mb_prealloc_table&lt;span class=&quot;error&quot;&gt;&amp;#91;i&amp;#93;&lt;/span&gt;; i++) {&lt;/p&gt;

&lt;p&gt;Thanks.&lt;/p&gt;</description>
                <environment></environment>
        <key id="20225">LU-3719</key>
            <summary>divide error in ldiskfs_mb_normalize_request on MDT</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="1">Fixed</resolution>
                                        <assignee username="bobijam">Zhenyu Xu</assignee>
                                    <reporter username="kitwestneat">Kit Westneat</reporter>
                        <labels>
                            <label>mn1</label>
                    </labels>
                <created>Wed, 7 Aug 2013 15:16:40 +0000</created>
                <updated>Thu, 26 Oct 2017 16:47:07 +0000</updated>
                            <resolved>Mon, 30 Sep 2013 14:33:42 +0000</resolved>
                                    <version>Lustre 2.1.5</version>
                                    <fixVersion>Lustre 2.5.0</fixVersion>
                    <fixVersion>Lustre 2.4.2</fixVersion>
                    <fixVersion>Lustre 2.11.0</fixVersion>
                    <fixVersion>Lustre 2.10.2</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>8</watches>
                                                                            <comments>
                            <comment id="63785" author="pjones" created="Wed, 7 Aug 2013 16:41:20 +0000"  >&lt;p&gt;Thanks for the report Kit.&lt;/p&gt;</comment>
                            <comment id="64006" author="pjones" created="Fri, 9 Aug 2013 19:34:15 +0000"  >&lt;p&gt;Bobijam&lt;/p&gt;

&lt;p&gt;Could you please advise on this one?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="64058" author="bobijam" created="Mon, 12 Aug 2013 04:19:10 +0000"  >&lt;p&gt;patch tracking at &lt;a href=&quot;http://review.whamcloud.com/7297&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/7297&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="66175" author="bobijam" created="Tue, 10 Sep 2013 12:47:33 +0000"  >&lt;p&gt;master version &lt;a href=&quot;http://review.whamcloud.com/7591&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/7591&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="67417" author="pjones" created="Tue, 24 Sep 2013 18:17:26 +0000"  >&lt;p&gt;Landed for 2.5.0&lt;/p&gt;</comment>
                            <comment id="67437" author="bogl" created="Tue, 24 Sep 2013 19:02:14 +0000"  >&lt;p&gt;I notice only the 6.4 version of the ldiskfs patch has been changed.  Do other versions also need adjustment with similar changes?&lt;/p&gt;</comment>
                            <comment id="67439" author="simmonsja" created="Tue, 24 Sep 2013 19:05:17 +0000"  >&lt;p&gt;Yes the SLES11 platforms need to be updated as well.&lt;/p&gt;</comment>
                            <comment id="67456" author="bogl" created="Tue, 24 Sep 2013 20:42:40 +0000"  >&lt;p&gt;Reopened to address other versions of the ldiskfs patch. In particular need similar changes in the sles11 version.&lt;/p&gt;</comment>
                            <comment id="67766" author="bogl" created="Thu, 26 Sep 2013 20:43:01 +0000"  >&lt;p&gt;sles11 sp2/sp3 version&lt;br/&gt;
&lt;a href=&quot;http://review.whamcloud.com/7781&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/7781&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="67942" author="pjones" created="Mon, 30 Sep 2013 14:33:42 +0000"  >&lt;p&gt;Landed for 2.5&lt;/p&gt;</comment>
                            <comment id="199793" author="gerrit" created="Wed, 21 Jun 2017 04:15:43 +0000"  >&lt;p&gt;Yang Sheng (yang.sheng@intel.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/27748&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/27748&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-3719&quot; title=&quot;divide error in ldiskfs_mb_normalize_request on MDT&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-3719&quot;&gt;&lt;del&gt;LU-3719&lt;/del&gt;&lt;/a&gt; ldiskfs: adjust s_mb_prealloc_table_size correctly&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: cd2ab45b96718107d20cb95fcf91ef1a8ac2c41d&lt;/p&gt;</comment>
                            <comment id="202581" author="gerrit" created="Wed, 19 Jul 2017 03:29:04 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/27748/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/27748/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-3719&quot; title=&quot;divide error in ldiskfs_mb_normalize_request on MDT&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-3719&quot;&gt;&lt;del&gt;LU-3719&lt;/del&gt;&lt;/a&gt; ldiskfs: adjust s_mb_prealloc_table_size correctly&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: b9ecf2671cba08530cc49d47713a360f2c6c25ca&lt;/p&gt;</comment>
                            <comment id="203620" author="gerrit" created="Wed, 26 Jul 2017 18:22:13 +0000"  >&lt;p&gt;Minh Diep (minh.diep@intel.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/28228&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/28228&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-3719&quot; title=&quot;divide error in ldiskfs_mb_normalize_request on MDT&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-3719&quot;&gt;&lt;del&gt;LU-3719&lt;/del&gt;&lt;/a&gt; ldiskfs: adjust s_mb_prealloc_table_size correctly&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_10&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: f6cc8c6f7825cefa7a33ed8438cc203cbe8d7183&lt;/p&gt;</comment>
                            <comment id="212082" author="gerrit" created="Thu, 26 Oct 2017 16:08:01 +0000"  >&lt;p&gt;John L. Hammond (john.hammond@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/28228/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/28228/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-3719&quot; title=&quot;divide error in ldiskfs_mb_normalize_request on MDT&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-3719&quot;&gt;&lt;del&gt;LU-3719&lt;/del&gt;&lt;/a&gt; ldiskfs: adjust s_mb_prealloc_table_size correctly&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_10&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: ec1dfdfae8b860af54ca0fdc4d035870e6338017&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="47606">LU-9814</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="46568">LU-9617</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|hzvxcv:</customfieldvalue>

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