<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:19:28 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-1762] mmp.sh gets wrong MMP update interval</title>
                <link>https://jira.whamcloud.com/browse/LU-1762</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Currently, the get_mmp_update_interval() in mmp.sh is implemented as follows:&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;get_mmp_update_interval() {
    local facet=$1
    local device=$2
    local interval

    interval=$(do_facet $facet &quot;$DEBUGFS -c -R dump_mmp $device 2&amp;gt;/dev/null \
                | grep &apos;MMP Update Interval&apos; | cut -d&apos; &apos; -f4&quot;)
    [ -z &quot;$interval&quot; ] &amp;amp;&amp;amp; interval=1

    echo $interval
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The &apos;MMP Update Interval&apos; string is incorrect now since debugfs has changed it to &apos;update_interval&apos;:&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;# debugfs -c -R dump_mmp /dev/vda5
debugfs 1.42.3.wc3 (15-Aug-2012)
/dev/vda5: catastrophic mode - not reading inode or group bitmaps
block_number: 16416
update_interval: 5
check_interval: 5
sequence: ff4d4d50
time: 1345213198 -- Fri Aug 17 07:19:58 2012
node_name: client-16vm3
device_name: /dev/vda5
magic: 0x4d4d50
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;And after the patch for &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-264&quot; title=&quot;MMP update&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-264&quot;&gt;&lt;del&gt;LU-264&lt;/del&gt;&lt;/a&gt; is landed, the default value for MMP update interval has been changed to 5 seconds instead of 1 second.&lt;/p&gt;

&lt;p&gt;The &apos;MMP Check Interval&apos; string in get_mmp_check_interval() is also needed to be updated to &apos;check_interval&apos;.&lt;/p&gt;

&lt;p&gt;In addition, after looking into e2fsck/unix.c and ldiskfs/kernel_patches/patches/ext4-mmp-rhel6.patch, I found there is a more simple and reliable way than using an extra expect script to fix the issue in &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-1689&quot; title=&quot;Test failure on test suite mmp, subtest test_8&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-1689&quot;&gt;&lt;del&gt;LU-1689&lt;/del&gt;&lt;/a&gt;:&lt;/p&gt;

&lt;p&gt;We can just run &quot;tune2fs &amp;#45;E mmp_update_interval=$interval $device&quot; to increase the time of &quot;sleep(2 * mmp_check_interval + 1)&quot; in ext2fs_mmp_start() (which is called by e2fsck in try_open_fs()&amp;#45;&amp;gt;ext2fs_open2()). A new sequence number is written into the MMP block before that sleep. So, after e2fsck goes into ext2fs_mmp_start() and sets a new sequence number successfully, mount operation will always fail before e2fsck goes into ext2fs_mmp_stop() to set EXT4_MMP_SEQ_CLEAN into the MMP block. &lt;/p&gt;</description>
                <environment></environment>
        <key id="15518">LU-1762</key>
            <summary>mmp.sh gets wrong MMP update interval</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="1" iconUrl="https://jira.whamcloud.com/images/icons/priorities/blocker.svg">Blocker</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="yujian">Jian Yu</assignee>
                                    <reporter username="yujian">Jian Yu</reporter>
                        <labels>
                    </labels>
                <created>Fri, 17 Aug 2012 11:23:27 +0000</created>
                <updated>Fri, 22 Feb 2013 11:21:59 +0000</updated>
                            <resolved>Sun, 26 Aug 2012 01:00:54 +0000</resolved>
                                    <version>Lustre 2.3.0</version>
                    <version>Lustre 2.1.3</version>
                                    <fixVersion>Lustre 2.3.0</fixVersion>
                    <fixVersion>Lustre 2.4.0</fixVersion>
                    <fixVersion>Lustre 2.1.4</fixVersion>
                    <fixVersion>Lustre 1.8.9</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="43537" author="yujian" created="Tue, 21 Aug 2012 03:54:52 +0000"  >&lt;p&gt;Patch for b2_1 branch: &lt;a href=&quot;http://review.whamcloud.com/3733&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/3733&lt;/a&gt;&lt;br/&gt;
Patch for b2_3 branch: &lt;a href=&quot;http://review.whamcloud.com/3746&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/3746&lt;/a&gt;&lt;br/&gt;
Patch for master branch: &lt;a href=&quot;http://review.whamcloud.com/3743&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/3743&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="43769" author="pjones" created="Sun, 26 Aug 2012 01:00:54 +0000"  >&lt;p&gt;Landed for 2.3 and 2.4&lt;/p&gt;</comment>
                            <comment id="49948" author="yujian" created="Fri, 4 Jan 2013 10:46:04 +0000"  >&lt;p&gt;Patch for b1_8 branch: &lt;a href=&quot;http://review.whamcloud.com/4953&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/4953&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="15700">LU-1837</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="17093">LU-2578</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|hzv5tb:</customfieldvalue>

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