<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:30: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-16806] mkdir: cannot create directory &#8216;test5&#8217;: Object is remote</title>
                <link>https://jira.whamcloud.com/browse/LU-16806</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Attempts to create directories are intermittently failing when using &quot;mkdir&quot;.&lt;/p&gt;

&lt;p&gt;So far, &quot;lfs mkdir&quot; succeeds every time, so does file creation using &quot;touch&quot;.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment>server (garter): &lt;br/&gt;
toss 4.5-6rc6 &lt;br/&gt;
4.18.0-425.19.2.1toss.t4.x86_64&lt;br/&gt;
2.14.0_19.llnl&lt;br/&gt;
&lt;br/&gt;
client (mutt):&lt;br/&gt;
toss 4.5-6&lt;br/&gt;
4.18.0-425.19.2.1toss.t4.x86_64&lt;br/&gt;
2.15.2_5.llnl</environment>
        <key id="75956">LU-16806</key>
            <summary>mkdir: cannot create directory &#8216;test5&#8217;: Object is remote</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="6" iconUrl="https://jira.whamcloud.com/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="laisiyao">Lai Siyao</assignee>
                                    <reporter username="defazio">Gian-Carlo Defazio</reporter>
                        <labels>
                            <label>llnl</label>
                    </labels>
                <created>Tue, 9 May 2023 00:15:48 +0000</created>
                <updated>Fri, 2 Feb 2024 13:25:01 +0000</updated>
                            <resolved>Wed, 5 Jul 2023 16:04:24 +0000</resolved>
                                    <version>Lustre 2.14.0</version>
                    <version>Lustre 2.15.2</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>9</watches>
                                                                            <comments>
                            <comment id="371574" author="defazio" created="Tue, 9 May 2023 00:21:55 +0000"  >&lt;p&gt;For my notes, local issue is TOSS-6002&lt;/p&gt;</comment>
                            <comment id="371575" author="defazio" created="Tue, 9 May 2023 00:52:31 +0000"  >&lt;p&gt;the llnl lustre versions are at&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/LLNL/lustre/tree/2.14.0_19.llnl&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/LLNL/lustre/tree/2.14.0_19.llnl&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/LLNL/lustre/tree/2.15.2_5.llnl&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/LLNL/lustre/tree/2.15.2_5.llnl&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="371577" author="defazio" created="Tue, 9 May 2023 00:58:41 +0000"  >&lt;p&gt;Here&apos;s an example of a few failures followed by a successful create&lt;/p&gt;

&lt;p&gt;&#160;&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;(mutt12):mdts_3_osts_3$ pwd
/p/lflood/defazio1/mdtest/mdts_3_osts_3
(mutt12):mdts_3_osts_3$ mkdir junk20
mkdir: cannot create directory &#8216;junk20&#8217;: Object is remote
(mutt12):mdts_3_osts_3(1)$ mkdir junk20
mkdir: cannot create directory &#8216;junk20&#8217;: Object is remote
(mutt12):mdts_3_osts_3(1)$ mkdir junk20
mkdir: cannot create directory &#8216;junk20&#8217;: Object is remote
(mutt12):mdts_3_osts_3(1)$ mkdir junk20
(mutt12):mdts_3_osts_3$ ls -ld junk20
drwx------ 2 defazio1 defazio1 26624 May &#160;8 17:53 junk20
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;The parent directory is /p/lflood/defazio1/mdtest/mdts_3_osts_3&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;(mutt12):mdts_3_osts_3$ stat .
&#160; File: .
&#160; Size: 26624 &#160; &#160; &#160; &#160; &#160; Blocks: 52 &#160; &#160; &#160; &#160; IO Block: 131072 directory
Device: 11602e98h/291516056d &#160; &#160;Inode: 198161923999531372 &#160;Links: 16
Access: (0700/drwx------) &#160;Uid: (28153/defazio1) &#160; Gid: (28153/defazio1)
Access: 2023-05-08 16:51:39.000000000 -0700
Modify: 2023-05-08 17:53:11.000000000 -0700
Change: 2023-05-08 17:53:11.000000000 -0700
&#160;Birth: 2023-05-08 11:43:54.000000000 -0700
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;it was created with the commands&lt;/p&gt;

&lt;p&gt;&#160;&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 setdirstripe --mdt-index 3 /p/lflood/defazio1/mdtest/mdts_3_osts_3
lfs setstripe --ost 3 /p/lflood/defazio1/mdtest/mdts_3_osts_3
chown defazio1:defazio1 /p/lflood/defazio1/mdtest/mdts_3_osts_3&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&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;(mutt12):mdts_3_osts_3(4)$ lfs &#160;getdirstripe &#160;.
lmv_stripe_count: 0 lmv_stripe_offset: 3 lmv_hash_type: none

(mutt12):mdts_3_osts_3$ lfs &#160;getstripe &#160;-d .
stripe_count: &#160;1 stripe_size: &#160; 1048576 pattern: &#160; &#160; &#160; raid0 stripe_offset: 3



&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="371580" author="defazio" created="Tue, 9 May 2023 01:08:55 +0000"  >&lt;p&gt;In this case some directories are created on the first try, but most fail&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;(mutt12):mdts_3_osts_3$ for x in {1..20}; do mkdir test_name$x; done
mkdir: cannot create directory &#8216;test_name1&#8217;: Object is remote
mkdir: cannot create directory &#8216;test_name2&#8217;: Object is remote
mkdir: cannot create directory &#8216;test_name3&#8217;: Object is remote
mkdir: cannot create directory &#8216;test_name4&#8217;: Object is remote
mkdir: cannot create directory &#8216;test_name5&#8217;: Object is remote
mkdir: cannot create directory &#8216;test_name6&#8217;: Object is remote
mkdir: cannot create directory &#8216;test_name8&#8217;: Object is remote
mkdir: cannot create directory &#8216;test_name9&#8217;: Object is remote
mkdir: cannot create directory &#8216;test_name10&#8217;: Object is remote
mkdir: cannot create directory &#8216;test_name11&#8217;: Object is remote
mkdir: cannot create directory &#8216;test_name12&#8217;: Object is remote
mkdir: cannot create directory &#8216;test_name13&#8217;: Object is remote
mkdir: cannot create directory &#8216;test_name14&#8217;: Object is remote
mkdir: cannot create directory &#8216;test_name15&#8217;: Object is remote
mkdir: cannot create directory &#8216;test_name16&#8217;: Object is remote
mkdir: cannot create directory &#8216;test_name18&#8217;: Object is remote
mkdir: cannot create directory &#8216;test_name19&#8217;: Object is remote
mkdir: cannot create directory &#8216;test_name20&#8217;: Object is remote
(mutt12):mdts_3_osts_3(1)$ for x in {1..20}; do mkdir test_name$x; done
mkdir: cannot create directory &#8216;test_name1&#8217;: Object is remote
mkdir: cannot create directory &#8216;test_name2&#8217;: Object is remote
mkdir: cannot create directory &#8216;test_name3&#8217;: Object is remote
mkdir: cannot create directory &#8216;test_name4&#8217;: Object is remote
mkdir: cannot create directory &#8216;test_name5&#8217;: Object is remote
mkdir: cannot create directory &#8216;test_name7&#8217;: File exists
mkdir: cannot create directory &#8216;test_name8&#8217;: Object is remote
mkdir: cannot create directory &#8216;test_name9&#8217;: Object is remote
mkdir: cannot create directory &#8216;test_name10&#8217;: Object is remote
mkdir: cannot create directory &#8216;test_name12&#8217;: Object is remote
mkdir: cannot create directory &#8216;test_name13&#8217;: Object is remote
mkdir: cannot create directory &#8216;test_name14&#8217;: Object is remote
mkdir: cannot create directory &#8216;test_name16&#8217;: Object is remote
mkdir: cannot create directory &#8216;test_name17&#8217;: File exists
mkdir: cannot create directory &#8216;test_name18&#8217;: Object is remote
mkdir: cannot create directory &#8216;test_name19&#8217;: Object is remote
mkdir: cannot create directory &#8216;test_name20&#8217;: Object is remote
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;The directories that are created inherit the striping (this was done after more mkdir attempts, so more directories exist than the 2 indicated above)&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;(mutt12):mdts_3_osts_3$ lfs getdirstripe test_name*
lmv_stripe_count: 0 lmv_stripe_offset: 3 lmv_hash_type: none
lmv_stripe_count: 0 lmv_stripe_offset: 3 lmv_hash_type: none
lmv_stripe_count: 0 lmv_stripe_offset: 3 lmv_hash_type: none
lmv_stripe_count: 0 lmv_stripe_offset: 3 lmv_hash_type: none
lmv_stripe_count: 0 lmv_stripe_offset: 3 lmv_hash_type: none
lmv_stripe_count: 0 lmv_stripe_offset: 3 lmv_hash_type: none
lmv_stripe_count: 0 lmv_stripe_offset: 3 lmv_hash_type: none
lmv_stripe_count: 0 lmv_stripe_offset: 3 lmv_hash_type: none
lmv_stripe_count: 0 lmv_stripe_offset: 3 lmv_hash_type: none&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;However, using lfs mkdir seems to work fine&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;(mutt12):mdts_3_osts_3$ for x in {1..20}; do lfs mkdir -i $(($x % 4)) lfs_name$x; done
(mutt12):mdts_3_osts_3$ ls lfs_name*
lfs_name1:
lfs_name10:
lfs_name11:
lfs_name12:
lfs_name13:
lfs_name14:
lfs_name15:
lfs_name16:
lfs_name17:
lfs_name18:
lfs_name19:
lfs_name2:
lfs_name20:
lfs_name3:
lfs_name4:
lfs_name5:
lfs_name6:
lfs_name7:
lfs_name8:
lfs_name9:
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="371582" author="defazio" created="Tue, 9 May 2023 01:26:42 +0000"  >&lt;p&gt;I&apos;ve uploaded debug logs for the attempted creation of the directory junk8&lt;/p&gt;

&lt;p&gt;debug log which contains failed attempt for junk8 is&lt;br/&gt;
dk.mutt12.1683589208&lt;/p&gt;

&lt;p&gt;It then succeeded (after failing about 10 times) in&lt;br/&gt;
dk.mutt12.1683589684&lt;/p&gt;</comment>
                            <comment id="371634" author="pjones" created="Tue, 9 May 2023 12:33:55 +0000"  >&lt;p&gt;Serguei&lt;/p&gt;

&lt;p&gt;Can you please advise?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="371682" author="ssmirnov" created="Tue, 9 May 2023 16:46:29 +0000"  >&lt;p&gt;It looks like this one needs attention of experts in higher-level Lustre.&#160;&lt;/p&gt;

&lt;p&gt;For example, is&#160;&lt;a href=&quot;https://jira.whamcloud.com/browse/LUDOC-289&quot; title=&quot;remote directory don&amp;#39;t work for non-root users&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LUDOC-289&quot;&gt;&lt;del&gt;LUDOC-289&lt;/del&gt;&lt;/a&gt; relevant here?&lt;/p&gt;</comment>
                            <comment id="372029" author="ofaaland" created="Thu, 11 May 2023 23:11:19 +0000"  >&lt;p&gt;Hi Serguei or Peter,&lt;/p&gt;

&lt;p&gt;Can you ask an appropriate Whamcloud-er to advise?&#160; The two test clusters involved will be taken away from us for other testing on Tuesday or Wednesday of next week.&lt;/p&gt;

&lt;p&gt;thanks&lt;/p&gt;</comment>
                            <comment id="372054" author="laisiyao" created="Fri, 12 May 2023 02:54:54 +0000"  >&lt;p&gt;Could you collect MDS debug logs upon failure? I&apos;m afraid some patch for backward compatibility is missing, maybe it&apos;s on server side. &lt;/p&gt;</comment>
                            <comment id="372643" author="defazio" created="Wed, 17 May 2023 20:46:19 +0000"  >&lt;p&gt;I&apos;ve added mkdir-attempt-client-and-mds.tar.gz which has debug logs for the client and mds&apos;s with debug=-1.&lt;/p&gt;</comment>
                            <comment id="372695" author="gerrit" created="Thu, 18 May 2023 10:05:15 +0000"  >&lt;p&gt;&quot;Lai Siyao &amp;lt;lai.siyao@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/51045&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/51045&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16806&quot; title=&quot;mkdir: cannot create directory &#8216;test5&#8217;: Object is remote&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16806&quot;&gt;&lt;del&gt;LU-16806&lt;/del&gt;&lt;/a&gt; lod: access DMV when it&apos;s valid&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_14&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 65887f6728d68d8b2e10969df25e5303603a4797&lt;/p&gt;</comment>
                            <comment id="372696" author="laisiyao" created="Thu, 18 May 2023 10:07:23 +0000"  >&lt;p&gt;This is caused by a bug in 2.14 code, but it&apos;s not an issue in the following release because related code has been removed.&lt;/p&gt;</comment>
                            <comment id="372702" author="pjones" created="Thu, 18 May 2023 12:25:07 +0000"  >&lt;p&gt;So LLNL&apos;s exposure to this issue will disappear once they upgrade to 2.15.x?&lt;/p&gt;</comment>
                            <comment id="372795" author="laisiyao" created="Fri, 19 May 2023 01:44:58 +0000"  >&lt;p&gt;Yes, upgrading to 2.15.x can get around this issue since related code has been removed.&lt;/p&gt;</comment>
                            <comment id="373395" author="defazio" created="Wed, 24 May 2023 22:44:07 +0000"  >&lt;p&gt;The patch fixed the issue on 2.14.&lt;/p&gt;

&lt;p&gt;I&apos;m a bit confused by what the patch is doing.&lt;/p&gt;

&lt;p&gt;Is the idea that when (lds-&amp;gt;lds_dir_def_striping_set == 0) that means that the parent directory doesn&apos;t have default striping set for its sub-directories, so when the sub-directory is created it should instead inherit from the root of the whole filesystem?&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="373396" author="ofaaland" created="Wed, 24 May 2023 22:54:40 +0000"  >&lt;p&gt;Hi Lai,&lt;/p&gt;

&lt;p&gt;Please also confirm whether you believe 2.14 servers with this patch will work properly with both Lustre 2.12 and 2.15 clients.&#160; As we work to switch to Lustre 2.15, we will have&lt;/p&gt;

&lt;p&gt;Clients: Lustre 2.12, 2.15&lt;br/&gt;
Routers: Lustre 2.12, 2.15&lt;/p&gt;

&lt;p&gt;thanks&lt;/p&gt;</comment>
                            <comment id="373413" author="laisiyao" created="Thu, 25 May 2023 02:59:37 +0000"  >&lt;p&gt;Gian, these code is to check whether client sends mkdir request to wrong MDT. If parent has default LMV (2.14 code doesn&apos;t check this), and this default LMV is not space balanced, it&apos;s not allowed to mkdir on remote MDT.&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;if&lt;/span&gt; (hint-&amp;gt;dah_parent &amp;amp;&amp;amp;
				    dt_object_remote(hint-&amp;gt;dah_parent) &amp;amp;&amp;amp; lds &amp;amp;&amp;amp;
				    lds-&amp;gt;lds_dir_def_striping_set &amp;amp;&amp;amp;
				    lds-&amp;gt;lds_dir_def_stripe_offset !=
				    LMV_OFFSET_DEFAULT)
					GOTO(out, rc = -EREMOTE);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;As for your question, yes, if parent doesn&apos;t have default LMV, the filesystem default LMV will be applied.&lt;/p&gt;</comment>
                            <comment id="373414" author="laisiyao" created="Thu, 25 May 2023 03:01:52 +0000"  >&lt;p&gt;Olaf, yes, it works with both 2.12 and 2.15 clients.&lt;/p&gt;</comment>
                            <comment id="377261" author="pjones" created="Mon, 3 Jul 2023 13:57:26 +0000"  >&lt;p&gt;Is there any further work outstanding here? AFAIK the b2_14 fix has been proven to work and this issue does not exist on more current releases, so I would think that we can close out the ticket...&lt;/p&gt;</comment>
                            <comment id="377507" author="defazio" created="Wed, 5 Jul 2023 15:58:36 +0000"  >&lt;p&gt;This issue is fixed for us on 2.14 and has been pulled into our local branch.&lt;/p&gt;</comment>
                            <comment id="377509" author="defazio" created="Wed, 5 Jul 2023 16:03:57 +0000"  >&lt;p&gt;reopening to remove topllnl&lt;/p&gt;</comment>
                            <comment id="377510" author="defazio" created="Wed, 5 Jul 2023 16:04:24 +0000"  >&lt;p&gt;reclosing after removing topllnl&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="49025" name="dk.mutt12.1683589208" size="671363" author="defazio" created="Tue, 9 May 2023 01:26:53 +0000"/>
                            <attachment id="49026" name="dk.mutt12.1683589684" size="11377681" author="defazio" created="Tue, 9 May 2023 01:26:59 +0000"/>
                            <attachment id="49152" name="mkdir-attempt-client-and-mds.tar.gz" size="2146789" author="defazio" created="Wed, 17 May 2023 20:42:56 +0000"/>
                    </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|i03ksv:</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>