<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:10:00 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-14465] unlink fails when if the metadata migration is running behind</title>
                <link>https://jira.whamcloud.com/browse/LU-14465</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Created 6.4M files and restripe automatically triggered unknown reasons. (this is already filed as a separate ticket &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14464&quot; title=&quot;Auto restripe triggers with none of the reasons&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14464&quot;&gt;LU-14464&lt;/a&gt;)&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@ec01 ~]# salloc -p 40n -N 40 --ntasks-per-node=16  mpirun -mca btl_openib_if_include mlx5_1:1 -x UCX_NET_DEVICES=mlx5_1:1 --bind-to core:overload-allowed --allow-run-as-root /work/tools/bin/mdtest -n 10000 -F -v -d /ai400x/testdir/ -C
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&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@ec01 ~]#  lfs getdirstripe /ai400x/testdir/test-dir.0-0/mdtest_tree.0/
lmv_stripe_count: 4 lmv_stripe_offset: 0 lmv_hash_type: fnv_1a_64,migrating
mdtidx		 FID[seq:oid:ver]
     0		 [0x200000d46:0x1f339:0x0]		
     2		 [0x2c0000c06:0xa6d6:0x0]		
     1		 [0x300000c07:0xa7a1:0x0]		
     3		 [0x340000c07:0xa9d1:0x0]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Anyway, when it removes all files during metadata migration process is running behind, unlink operations fails for some files due to files were already removed.&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@ec01 ~]# salloc -p 40n -N 40 --ntasks-per-node=16  mpirun -mca btl_openib_if_include mlx5_1:1 -x UCX_NET_DEVICES=mlx5_1:1 --bind-to core:overload-allowed --allow-run-as-root /work/tools/bin/mdtest -n 10000 -F -v -d /ai400x/testdir/ -r
salloc: Granted job allocation 7262
V-1: Entering PrintTimestamp...
-- started at 02/23/2021 10:50:03 --

mdtest-3.3.0+dev was launched with 640 total task(s) on 40 node(s)
Command line used: /work/tools/bin/mdtest &apos;-n&apos; &apos;10000&apos; &apos;-F&apos; &apos;-v&apos; &apos;-d&apos; &apos;/ai400x/testdir/&apos; &apos;-r&apos;
V-1: Rank   0 Line   239 Entering parse_dirpath on /ai400x/testdir/...
V-1: Rank   0 Line  1398 Entering valid_tests...
V-1: Rank   0 Line  2015 api                     : (null)
V-1: Rank   0 Line  2016 barriers                : True
V-1: Rank   0 Line  2017 collective_creates      : False
V-1: Rank   0 Line  2018 create_only             : False
V-1: Rank   0 Line  2019 dirpath(s):
V-1: Rank   0 Line  2021 	/ai400x/testdir/
V-1: Rank   0 Line  2023 dirs_only               : False
V-1: Rank   0 Line  2024 read_bytes              : 0
V-1: Rank   0 Line  2025 read_only               : False
V-1: Rank   0 Line  2026 first                   : 1
V-1: Rank   0 Line  2027 files_only              : True
V-1: Rank   0 Line  2031 iterations              : 1
V-1: Rank   0 Line  2032 items_per_dir           : 0
V-1: Rank   0 Line  2033 last                    : 0
V-1: Rank   0 Line  2034 leaf_only               : False
V-1: Rank   0 Line  2035 items                   : 10000
V-1: Rank   0 Line  2036 nstride                 : 0
V-1: Rank   0 Line  2037 pre_delay               : 0
V-1: Rank   0 Line  2038 remove_only             : False
V-1: Rank   0 Line  2039 random_seed             : 0
V-1: Rank   0 Line  2040 stride                  : 1
V-1: Rank   0 Line  2041 shared_file             : False
V-1: Rank   0 Line  2042 time_unique_dir_overhead: False
V-1: Rank   0 Line  2043 stone_wall_timer_seconds: 0
V-1: Rank   0 Line  2044 stat_only               : False
V-1: Rank   0 Line  2045 unique_dir_per_task     : False
V-1: Rank   0 Line  2046 write_bytes             : 0
V-1: Rank   0 Line  2047 sync_file               : False
V-1: Rank   0 Line  2048 call_sync               : False
V-1: Rank   0 Line  2049 depth                   : 0
V-1: Rank   0 Line  2050 make_node               : 0
V-1: Rank   0 Line  1490 Entering show_file_system_size on /ai400x/testdir
Path: /ai400x/testdir
FS: 52.4 TiB   Used FS: 0.0%   Inodes: 316.8 Mi   Used Inodes: 1.9%

Nodemap: 1111111111111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
640 tasks, 6400000 files
V-1: Rank   0 Line  2238 
V-1: Rank   0 Line  2239    Operation               Duration              Rate
V-1: Rank   0 Line  2240    ---------               --------              ----
V-1: Rank   0 Line  1648 main: * iteration 1 *
V-1: Rank   0 Line   481 Entering create_remove_items on /ai400x/testdir/test-dir.0-0/mdtest_tree.0, currDepth = 0...
V-1: Rank   0 Line   412 Entering create_remove_items_helper on /ai400x/testdir/test-dir.0-0/mdtest_tree.0
ior WARNING: [RANK 550]: unlink() of file &quot;/ai400x/testdir/test-dir.0-0/mdtest_tree.0/file.mdtest.550.4111&quot; failed
, errno 2, No such file or directory 
V-1: Rank   0 Line  1223   File creation     :          0.000 sec,          0.000 ops/sec
V-1: Rank   0 Line  1227   File stat         :          0.000 sec,          0.000 ops/sec
V-1: Rank   0 Line  1228   File read         :          0.000 sec,          0.000 ops/sec
V-1: Rank   0 Line  1229   File removal      :       1230.781 sec,       5199.949 ops/sec
V-1: Rank   0 Line  1573 Entering create_remove_directory_tree on /ai400x/testdir/test-dir.0-0, currDepth = 0...
V-1: Rank   0 Line  1573 Entering create_remove_directory_tree on /ai400x/testdir/test-dir.0-0/mdtest_tree.0/, currDepth = 1...
V-1: Entering PrintTimestamp...
02/23/2021 11:10:33: Process 0: FAILED in create_remove_directory_tree, Unable to remove directory /ai400x/testdir/test-dir.0-0/mdtest_tree.0/: Directory not empty
--------------------------------------------------------------------------
MPI_ABORT was invoked on rank 0 in communicator MPI COMMUNICATOR 3 CREATE FROM 0
with errorcode 1.

NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.
You may or may not see output from other processes, depending on
exactly when Open MPI kills them.
--------------------------------------------------------------------------
salloc: Relinquishing job allocation 7262
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;what mdtest claimed alraedy removed file, was not revmoed yet.&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;# ls /ai400x/testdir/test-dir.0-0/mdtest_tree.0/file.mdtest.550.4111 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="62994">LU-14465</key>
            <summary>unlink fails when if the metadata migration is running behind</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</priority>
                        <status id="1" iconUrl="https://jira.whamcloud.com/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="wc-triage">WC Triage</assignee>
                                    <reporter username="sihara">Shuichi Ihara</reporter>
                        <labels>
                    </labels>
                <created>Tue, 23 Feb 2021 02:28:21 +0000</created>
                <updated>Tue, 23 Feb 2021 15:26:31 +0000</updated>
                                            <version>Lustre 2.14.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="292766" author="laisiyao" created="Tue, 23 Feb 2021 14:15:34 +0000"  >&lt;p&gt;This was tracked under &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7607&quot; title=&quot;Preserve inode number after MDT migration &quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7607&quot;&gt;LU-7607&lt;/a&gt;, and I&apos;ll update the patch set &lt;a href=&quot;https://review.whamcloud.com/#/c/38233/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/#/c/38233/&lt;/a&gt;&#160;later when I think over how to implement distributed index file.&lt;/p&gt;</comment>
                            <comment id="292769" author="adilger" created="Tue, 23 Feb 2021 15:19:20 +0000"  >&lt;p&gt;I think if directory split happens earlier then there will be fewer files migrated (a few thousand instead of millions), so the chance of hitting this is reduced.&lt;/p&gt;

&lt;p&gt;Most importantly, leaving &quot;&lt;tt&gt;dir_restripe_nsonly=1&lt;/tt&gt;&quot; should avoid this problem because the auto-split will only move the names and not the inodes. I don&apos;t think we should set &quot;&lt;tt&gt;dir_restripe_nsonly=0&lt;/tt&gt;&quot; until &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7607&quot; title=&quot;Preserve inode number after MDT migration &quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7607&quot;&gt;LU-7607&lt;/a&gt; is finished, so that the FIDs do not change when migrated. &lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="33845">LU-7607</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="62998">LU-14466</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|i01nbr:</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>