<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:37:30 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-3856] No volume label updates after registered target</title>
                <link>https://jira.whamcloud.com/browse/LU-3856</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;reproducer&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;mkfs.lustre --mgs --mdt  --fsname=lustre --device-size=100000 --reformat /dev/sdb
mount -t lustre -o nosvc,abort_recov  -n /dev/sdb /mnt/mgt
e2label /dev/sdb
mount -t lustre -o nomgs,abort_recov  -n /dev/sdb /mnt/mdt
e2label /dev/sdb
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;For 2.3 Lustre the result of e2label is&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:MDT0000
lustre-MDT0000
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;For 2.4 Lustre &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:MDT0000
lustre:MDT0000
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Later this cause error ...  index is already in use.&lt;/p&gt;

&lt;p&gt;I think that this part of mount_lustre.c is invalid.&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;    } else if (!mop.mo_nomtab) {
                rc = update_mtab_entry(mop.mo_usource, mop.mo_target, &quot;lustre&quot;,
                                       mop.mo_orig_options, 0,0,0);

                /* change label from &amp;lt;fsname&amp;gt;:&amp;lt;index&amp;gt; to &amp;lt;fsname&amp;gt;-&amp;lt;index&amp;gt;
                 * to indicate the device has been registered. */
                if (mop.mo_ldd.ldd_flags &amp;amp; LDD_F_VIRGIN)
                        (void) osd_label_lustre(&amp;amp;mop);
        }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;The volume label update should be done in any case with update mtab or not.&lt;/p&gt;</description>
                <environment></environment>
        <key id="20705">LU-3856</key>
            <summary>No volume label updates after registered target</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.whamcloud.com/images/icons/priorities/critical.svg">Critical</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="bzzz">Alex Zhuravlev</assignee>
                                    <reporter username="aboyko">Alexander Boyko</reporter>
                        <labels>
                    </labels>
                <created>Thu, 29 Aug 2013 13:00:25 +0000</created>
                <updated>Tue, 24 Sep 2013 17:12:10 +0000</updated>
                            <resolved>Tue, 24 Sep 2013 17:12:10 +0000</resolved>
                                    <version>Lustre 2.4.0</version>
                                    <fixVersion>Lustre 2.5.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>12</watches>
                                                                            <comments>
                            <comment id="65450" author="jlevi" created="Fri, 30 Aug 2013 16:49:54 +0000"  >&lt;p&gt;Alex,&lt;br/&gt;
Can you please comment on this ticket to let us know if this is the correct fix needed?&lt;br/&gt;
Thank you!&lt;/p&gt;</comment>
                            <comment id="65451" author="adilger" created="Fri, 30 Aug 2013 16:53:00 +0000"  >&lt;p&gt;It looks like these few lines of code should just be moved up below the actual mount:&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-keyword&quot;&gt;for&lt;/span&gt; (i = 0, rc = -EAGAIN; i &amp;lt;= mop.mo_retry &amp;amp;&amp;amp; rc != 0; i++) {
                        rc = mount(mop.mo_source, mop.mo_target, &lt;span class=&quot;code-quote&quot;&gt;&quot;lustre&quot;&lt;/span&gt;,
                                   flags, (void *)options);
                        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (rc == 0) {
                                /* change label from &amp;lt;fsname&amp;gt;:&amp;lt;index&amp;gt; to &amp;lt;fsname&amp;gt;-&amp;lt;index&amp;gt;
                                 * to indicate the device has been registered. */
                                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (mop.mo_ldd.ldd_flags &amp;amp; LDD_F_VIRGIN)
                                        (void)osd_label_lustre(&amp;amp;mop);
                        } &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; {
                                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (verbose) {
                                        fprintf(stderr, &lt;span class=&quot;code-quote&quot;&gt;&quot;%s: mount %s at %s &quot;&lt;/span&gt;
                                                :
                                                :
                        }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="65528" author="aboyko" created="Mon, 2 Sep 2013 08:24:14 +0000"  >&lt;p&gt;Yes, this patch fix the problem.&lt;/p&gt;</comment>
                            <comment id="65530" author="bzzz" created="Mon, 2 Sep 2013 08:53:53 +0000"  >&lt;p&gt;iirc, the original reason was that tune2fs can&apos;t access a device with MMP enabled. though probably tune2fs -f will do.&lt;/p&gt;
</comment>
                            <comment id="65582" author="shadow" created="Tue, 3 Sep 2013 08:40:23 +0000"  >&lt;p&gt;Alex,&lt;/p&gt;

&lt;p&gt;we don&apos;t understand - what you mean. You mean tunefs don&apos;t able to change a label as mount finished and MMP will protect a drive? so question - why it&apos;s need to move in userspace if it&apos;s introduce a new regression.&lt;/p&gt;</comment>
                            <comment id="65583" author="bzzz" created="Tue, 3 Sep 2013 08:43:59 +0000"  >&lt;p&gt;because of ZFS support: we use different mechanisms to store mountdata on ldiskfs and ZFS as was requested by LLNL at some point. so if we want to update mountdate from within the kernel we&apos;d have to implement this additional ZFS-specific mechanism in the kernel as well...&lt;/p&gt;
</comment>
                            <comment id="65586" author="shadow" created="Tue, 3 Sep 2013 10:35:34 +0000"  >&lt;p&gt;we may use an any ZFS attribute to store &quot;label&quot; as do in other places...&lt;/p&gt;</comment>
                            <comment id="65587" author="bzzz" created="Tue, 3 Sep 2013 10:38:47 +0000"  >&lt;p&gt;we do use ZFS attributes for that (a separate one for every member of mountdata), but this is currently hidden within ZFS specific parts of the utils.&lt;br/&gt;
if we start to update mountdata from the kernel again we&apos;ll have to bring all these bits (including ldiskfs and zfs specifics) into the kernel.&lt;/p&gt;</comment>
                            <comment id="65590" author="shadow" created="Tue, 3 Sep 2013 10:57:57 +0000"  >&lt;p&gt;it&apos;s was done in kernel already (before adding an regression), i don&apos;t see problem with it.&lt;/p&gt;</comment>
                            <comment id="65592" author="bzzz" created="Tue, 3 Sep 2013 11:02:44 +0000"  >&lt;p&gt;there was no ZFS support at that time.&lt;/p&gt;</comment>
                            <comment id="66900" author="green" created="Wed, 18 Sep 2013 09:58:31 +0000"  >&lt;p&gt;Could somebody submit a patch to gerrit for this, pleaae?&lt;br/&gt;
We need this for 2.5&lt;/p&gt;</comment>
                            <comment id="67103" author="aboyko" created="Fri, 20 Sep 2013 13:07:33 +0000"  >&lt;p&gt;&lt;a href=&quot;http://review.whamcloud.com/7712&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/7712&lt;/a&gt;&lt;br/&gt;
Xyratex-bug-id: MRP-1325&lt;/p&gt;</comment>
                            <comment id="67393" author="pjones" created="Tue, 24 Sep 2013 17:12:10 +0000"  >&lt;p&gt;Landed for 2.5.0&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|hzvzn3:</customfieldvalue>

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