<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:01:09 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-13424] unable to migrate mirrored files</title>
                <link>https://jira.whamcloud.com/browse/LU-13424</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;I created a subdirectory and put a mirrored file in it.  When I tried to migrate the mirrored file to another MDT, it returned an error migrating the mirrored file that I didn&apos;t expect:&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;tests# lfs mkdir -i 0 /mnt/testfs/dir1
tests# cp /etc/hosts /mnt/testfs/dir1
tests# lfs mirror extend -N1 /mnt/testfs/dir1/hosts
tests# lfs migrate -m 1 /mnt/testfs/dir1
lfs migrate: /mnt/testfs/dir1/hosts migrate failed: Operation not supported (95)
tests# lfs getstripe -m /mnt/testfs/dir1
1
tests# lfs getstripe -m /mnt/testfs/dir1/hosts
0
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;So it seems like the directory was migrated, but the mirrored file was not.  Is there some reason that the mirrored file could not be migrated?  I don&apos;t think that should be any different than migrating some other composite file.&lt;/p&gt;</description>
                <environment></environment>
        <key id="58679">LU-13424</key>
            <summary>unable to migrate mirrored files</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="tappro">Mikhail Pershin</assignee>
                                    <reporter username="adilger">Andreas Dilger</reporter>
                        <labels>
                            <label>dne3</label>
                    </labels>
                <created>Tue, 7 Apr 2020 23:24:10 +0000</created>
                <updated>Fri, 14 Oct 2022 22:14:02 +0000</updated>
                            <resolved>Thu, 23 Apr 2020 17:08:36 +0000</resolved>
                                    <version>Lustre 2.14.0</version>
                    <version>Lustre 2.12.5</version>
                                    <fixVersion>Lustre 2.14.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="267700" author="emoly.liu" created="Wed, 15 Apr 2020 14:33:31 +0000"  >&lt;p&gt;This error is related to the following code in function mdt_reint_migrate():&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;/* TODO: DoM migration is not supported yet */&lt;/span&gt;
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (S_ISREG(lu_object_attr(&amp;amp;sobj-&amp;gt;mot_obj))) {
                ma-&amp;gt;ma_lmm = info-&amp;gt;mti_big_lmm;
                ma-&amp;gt;ma_lmm_size = info-&amp;gt;mti_big_lmmsize;
                ma-&amp;gt;ma_valid = 0;
                rc = mdt_stripe_get(info, sobj, ma, XATTR_NAME_LOV);
                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (rc)
                        GOTO(put_source, rc);

                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (ma-&amp;gt;ma_valid &amp;amp; MA_LOV &amp;amp;&amp;amp;
                    mdt_lmm_dom_entry(ma-&amp;gt;ma_lmm) != LMM_NO_DOM)
                        GOTO(put_source, rc = -EOPNOTSUPP);
        }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="267763" author="adilger" created="Wed, 15 Apr 2020 22:51:56 +0000"  >&lt;p&gt;I verified that DoM was involved not involved in my test:&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;# lfs getstripe /mnt/testfs/dir1/hosts
/mnt/testfs/dir1/hosts
  lcm_layout_gen:    2
  lcm_mirror_count:  2
  lcm_entry_count:   2
    lcme_id:             65537
    lcme_mirror_id:      1
    lcme_flags:          init
    lcme_extent.e_start: 0
    lcme_extent.e_end:   EOF
      lmm_stripe_count:  1
      lmm_stripe_size:   1048576
      lmm_pattern:       raid0
      lmm_layout_gen:    0
      lmm_stripe_offset: 2
      lmm_objects:
      - 0: { l_ost_idx: 2, l_fid: [0x100020000:0x1f42:0x0] }

    lcme_id:             131073
    lcme_mirror_id:      2
    lcme_flags:          init
    lcme_extent.e_start: 0
    lcme_extent.e_end:   EOF
      lmm_stripe_count:  1
      lmm_stripe_size:   1048576
      lmm_pattern:       raid0
      lmm_layout_gen:    0
      lmm_stripe_offset: 3
      lmm_objects:
      - 0: { l_ost_idx: 3, l_fid: [0x100030000:0x1f82:0x0] }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;so this check &lt;em&gt;shouldn&apos;t&lt;/em&gt; have anything to do with the inode migration to another MDT.  Maybe the check is broken?&lt;/p&gt;

&lt;p&gt;Mike, could you please take a look at this.&lt;/p&gt;</comment>
                            <comment id="267787" author="tappro" created="Thu, 16 Apr 2020 06:11:51 +0000"  >&lt;p&gt;There is mistake in variable initialization:&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;static&lt;/span&gt; inline &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; mdt_lmm_dom_entry(struct lov_mds_md *lmm)
{
	struct lov_comp_md_v1 *comp_v1;
	struct lov_mds_md *v1;
	__u32 off;
	bool has_dom = &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;;
	               ^^^
&#160;&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Default value should be &lt;tt&gt;false&lt;/tt&gt;, because at the end there is:&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;return&lt;/span&gt; has_dom ? LMM_DOM_ONLY : LMM_NO_DOM
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;So even if DOM stripe wasn&apos;t found and &lt;tt&gt;has_dom&lt;/tt&gt; is not set, it is still &lt;tt&gt;true&lt;/tt&gt; by default&lt;/p&gt;</comment>
                            <comment id="267788" author="tappro" created="Thu, 16 Apr 2020 06:18:58 +0000"  >&lt;p&gt;Patch is simple, just initialize that &lt;tt&gt;has_dom&lt;/tt&gt; with &lt;tt&gt;false&lt;/tt&gt;  and it should be fixed in older releases, but I am not sure about master because &lt;a href=&quot;https://review.whamcloud.com/#/c/38152&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/#/c/38152&lt;/a&gt; fixes that already though in different manner.&lt;/p&gt;</comment>
                            <comment id="267792" author="gerrit" created="Thu, 16 Apr 2020 07:58:13 +0000"  >&lt;p&gt;Mike Pershin (mpershin@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/38257&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/38257&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13424&quot; title=&quot;unable to migrate mirrored files&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13424&quot;&gt;&lt;del&gt;LU-13424&lt;/del&gt;&lt;/a&gt; mdt: fix DOM entry check&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: a5aa82d0908a3c3070d7b7ef58ddc2f1f84af533&lt;/p&gt;</comment>
                            <comment id="267795" author="tappro" created="Thu, 16 Apr 2020 08:00:10 +0000"  >&lt;p&gt;I&apos;ve made patch for this issue just to avoid dependencies on alternative patch and to have the example for b2_12 and any other releases &lt;/p&gt;</comment>
                            <comment id="268374" author="gerrit" created="Thu, 23 Apr 2020 16:48:44 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/38257/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/38257/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13424&quot; title=&quot;unable to migrate mirrored files&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13424&quot;&gt;&lt;del&gt;LU-13424&lt;/del&gt;&lt;/a&gt; mdt: fix DOM entry check&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 8f6b0aacc0e905bad7aebddfd838cbd610f17483&lt;/p&gt;</comment>
                            <comment id="268393" author="pjones" created="Thu, 23 Apr 2020 17:08:36 +0000"  >&lt;p&gt;Landed for 2.14&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="58680">LU-13425</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="52253">LU-11025</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                                        </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|i00xcv:</customfieldvalue>

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