<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:54:35 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-12665] moving files between MDTs by mv(1) doesn&apos;t work with Lustre-2.7 servers.</title>
                <link>https://jira.whamcloud.com/browse/LU-12665</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Using 2.7 servers and 2.12 client:&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;[root@devvm1 tests]# ../utils/lctl set_param debug=-1; ../utils/lctl clear; mv /mnt/lustre/mdt1dir/foo /mnt/lustre/mdt0dir/ ; ../utils/lctl dk foo.log
debug=-1
mv: cannot move &#8216;/mnt/lustre/mdt1dir/foo&#8217; to &#8216;/mnt/lustre/mdt0dir/foo&#8217;: Protocol error
Debug log: 3860 lines, 3860 kept, 0 dropped, 0 bad.
[root@devvm1 tests]#
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt; It appears that -EPROTO(71) error is returned from mdt_object_lock_internal()&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;00000004:00000001:1.0:1565721044.423035:0:4601:0:(mdt_handler.c:2708:mdt_object_lock_internal()) Process leaving (rc=18446744073709551545 : -71 : ffffffffffffffb9)
00000004:00000001:1.0:1565721044.423036:0:4601:0:(mdt_reint.c:1788:mdt_rename_parents_lock()) Process leaving via err_tgt_put (rc=18446744073709551545 : -71 : 0xffffffffffffffb9)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;the object is attempted to lock is the source dir. &lt;/p&gt;

&lt;p&gt;It gives us the following:&lt;/p&gt;

&lt;p&gt;Lustre 2.7 doesn&apos;t support cross-target renames but a rename rpc should return -EXDEV code .&lt;br/&gt;
EXDEV is returned to the client application.  In case of mv(1), the utility fails back to a file copy, w/o informing &lt;br/&gt;
user that rename() syscall failed.&lt;/p&gt;

&lt;p&gt;As I see,  new clients (2.11, 2.12) are sending reint rename RPC to another MDT, i.e. to the target MDT. So the target dir becoming local and the request  passes &quot;target-is-remote&quot; check in mdt_rename_lock_parents() , however the rename op fails later, attempting to lock source dir, which surprisedly is remote. Server sends -EPROTO to the client , the mv(1) just fails w/o failing back to file copy.&lt;/p&gt;</description>
                <environment></environment>
        <key id="56662">LU-12665</key>
            <summary>moving files between MDTs by mv(1) doesn&apos;t work with Lustre-2.7 servers.</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="wc-triage">WC Triage</assignee>
                                    <reporter username="zam">Alexander Zarochentsev</reporter>
                        <labels>
                    </labels>
                <created>Wed, 14 Aug 2019 10:48:27 +0000</created>
                <updated>Fri, 14 Aug 2020 12:26:09 +0000</updated>
                            <resolved>Fri, 14 Aug 2020 12:26:09 +0000</resolved>
                                    <version>Lustre 2.12.0</version>
                    <version>Lustre 2.13.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="253016" author="zam" created="Wed, 14 Aug 2019 10:49:58 +0000"  >&lt;p&gt;Looks like the compatibility is broken since Luste-2.8. the patch from &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-3537&quot; title=&quot;allow cross-MDT for all metadata operations &quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-3537&quot;&gt;&lt;del&gt;LU-3537&lt;/del&gt;&lt;/a&gt; contains the following change:&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;
diff --git a/lustre/lmv/lmv_obd.c b/lustre/lmv/lmv_obd.c
index 300710d970..a2c9e1f594 100644
--- a/lustre/lmv/lmv_obd.c
+++ b/lustre/lmv/lmv_obd.c
... 
-       rc = md_rename(src_tgt-&amp;gt;ltd_exp, op_data, old, oldlen, &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt;, newlen,
+       rc = md_rename(target_exp, op_data, old, oldlen, &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt;, newlen,
                       request);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;it chooses another MDT to send a reint rename RPC to.&lt;/p&gt;</comment>
                            <comment id="258479" author="spitzcor" created="Mon, 18 Nov 2019 20:53:53 +0000"  >&lt;p&gt;L2.7 is increasingly dated.  We should consider closing this as WONT FIX.&lt;/p&gt;</comment>
                            <comment id="277513" author="pjones" created="Fri, 14 Aug 2020 12:26:09 +0000"  >&lt;p&gt;Yes agreed&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="19633">LU-3537</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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|i00l87:</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>