<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:01:10 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-13425] &quot;run &apos;lfs migrate -m 1 -c 1 -H 3 dir1&apos; to finish migration&quot; is broken</title>
                <link>https://jira.whamcloud.com/browse/LU-13425</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;While testing &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; I hit an error during directory migration.  Then, I tried mirroring the directory back to the original, just to check what would happen:&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 migrate -m 1 /mnt/testfs/dir1
lfs migrate: /mnt/testfs/dir1/hosts migrate failed: Operation not supported (95)
tests# lfs migrate -m 0 /mnt/testfs/dir1
LustreError: 30963:0:(mdd_dir.c:4209:mdd_migrate()) testfs-MDD0000: &apos;dir1&apos; migration was interrupted, run &apos;lfs migrate -m 1 -c 1 -H 3 dir1&apos; to finish migration.
tests# lfs migrate -m1 -c 1 -H 3 /mnt/testfs/dir1
lfs migrate migrate: bad stripe hash type &apos;3&apos;
tests# lfs getdirstripe /mnt/testfs/dir1
lmv_stripe_count: 2 lmv_stripe_offset: 1 lmv_hash_type: crush,migrating
mdtidx           FID[seq:oid:ver]
     1           [0x240001b71:0xf:0x0]          
     0           [0x200001b72:0xe480:0x0]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;so it printed the &quot;&lt;tt&gt;run &apos;lfs migrate ...&apos;&lt;/tt&gt;&quot; error to the console, but in fact that command doesn&apos;t work because the numeric hash value &quot;&lt;tt&gt;-H 3&lt;/tt&gt;&quot; is not accepted by &quot;&lt;tt&gt;lfs migrate&lt;/tt&gt;&quot;. &lt;/p&gt;

&lt;p&gt;The simplest fix is to allow specifying the numeric hash type like &quot;&lt;tt&gt;lfs migrate ... -H 3&lt;/tt&gt;&quot; in order to resume directory migration, as stated in the error message.&lt;/p&gt;

&lt;p&gt;I don&apos;t think that &quot;&lt;tt&gt;lfs&lt;/tt&gt;&quot; or the client should even &lt;em&gt;try&lt;/em&gt; to validate this hash type before passing it to the MDS, since the client may be old, and the directory is using a new hash that it doesn&apos;t know about.  The MDS should reject invalid hash types from the client anyway (e.g. malicious user, or new client and old server).&lt;/p&gt;

&lt;p&gt;The MDS really shouldn&apos;t even need the hash type or other arguments to be passed, since it already knows this information itself (since it generated the message in the first place). It would be better (if possible) to just print &quot;&lt;tt&gt;run &apos;lfs migrate &amp;lt;full_path&amp;gt;&apos; to finish migration&lt;/tt&gt;&quot; (maybe using &lt;tt&gt;fid2path&lt;/tt&gt; to generate the pathname?).  Best would be to restart the migration automatically if this is hit (at least once, but not repeatedly if it is broken for some reason like &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;).&lt;/p&gt;</description>
                <environment></environment>
        <key id="58680">LU-13425</key>
            <summary>&quot;run &apos;lfs migrate -m 1 -c 1 -H 3 dir1&apos; to finish migration&quot; is broken</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="emoly.liu">Emoly Liu</assignee>
                                    <reporter username="adilger">Andreas Dilger</reporter>
                        <labels>
                            <label>dne3</label>
                    </labels>
                <created>Tue, 7 Apr 2020 23:42:26 +0000</created>
                <updated>Tue, 5 Apr 2022 19:03:00 +0000</updated>
                            <resolved>Sun, 19 Apr 2020 14:08:30 +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="267109" author="laisiyao" created="Wed, 8 Apr 2020 02:07:51 +0000"  >&lt;p&gt;Because directory migration is done recursively, which means the same arguments will be used to migrate sub-directories, while only MDS can know whether argument is correct, and can adjust it, it can&apos;t notify client to use the correct arguments to migrate sub-directories.&lt;/p&gt;</comment>
                            <comment id="267134" author="adilger" created="Wed, 8 Apr 2020 08:45:14 +0000"  >&lt;p&gt;I&apos;m thinking the client shouldn&apos;t even need to specify what the arguments are, since the MDS already knows the correct values for each directory.  The client can specify any values at all (or none) and they would be ignored for directories that have partial migration.  It isn&apos;t clear whether we need to resume recursive migration, just finish off the partially-migrated directory.&lt;/p&gt;</comment>
                            <comment id="267178" author="gerrit" created="Wed, 8 Apr 2020 16:22:10 +0000"  >&lt;p&gt;Emoly Liu (emoly@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/38182&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/38182&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13425&quot; title=&quot;&amp;quot;run &amp;#39;lfs migrate -m 1 -c 1 -H 3 dir1&amp;#39; to finish migration&amp;quot; is broken&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13425&quot;&gt;&lt;del&gt;LU-13425&lt;/del&gt;&lt;/a&gt; lfs: support numeric hash type by &quot;lfs migrate -H&quot;&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 6ecbf3ae1373762516ccf7e1cdeb0b1d0fb6c3ca&lt;/p&gt;</comment>
                            <comment id="267966" author="gerrit" created="Sun, 19 Apr 2020 08:45:12 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/38182/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/38182/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13425&quot; title=&quot;&amp;quot;run &amp;#39;lfs migrate -m 1 -c 1 -H 3 dir1&amp;#39; to finish migration&amp;quot; is broken&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13425&quot;&gt;&lt;del&gt;LU-13425&lt;/del&gt;&lt;/a&gt; lfs: support numeric hash type by &quot;lfs migrate -H&quot;&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: bf952126b6adf54d164720dc10379478a62a1b2b&lt;/p&gt;</comment>
                            <comment id="267985" author="pjones" created="Sun, 19 Apr 2020 14:08:30 +0000"  >&lt;p&gt;Landed for 2.14&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="58964">LU-13492</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="58679">LU-13424</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|i00xd3:</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>