<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:45:39 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-11642] Data lost after migrate striped dir</title>
                <link>https://jira.whamcloud.com/browse/LU-11642</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;system setup as 2 MDS with 2 MDTs on each, 1 OSS with 1 OST, zfs as underline fs. 1 client . &lt;/p&gt;

&lt;p&gt;test steps:&lt;br/&gt;
1. make striped dir cross MDT0 and MDT1 on MDS1&lt;br/&gt;
2. touch a file and write some data&lt;br/&gt;
3. migrate the dir to MDT1 and MDT3 successful&lt;br/&gt;
4. check the data and it lost.&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@trevis-60vm7 lustre]# lfs mkdir -c 2 -i 0 test
[root@trevis-60vm7 lustre]# lfs getdirstripe test
lmv_stripe_count: 2 lmv_stripe_offset: 0 lmv_hash_type: fnv_1a_64
mdtidx		 FID[seq:oid:ver]
     0		 [0x200000400:0x6:0x0]		
     1		 [0x240000401:0x6:0x0]		
[root@trevis-60vm7 lustre]# cd test/
[root@trevis-60vm7 test]# touch foo
[root@trevis-60vm7 test]# echo abcd &amp;gt; foo
[root@trevis-60vm7 test]# cat foo
abcd
[root@trevis-60vm7 test]# cd ..
[root@trevis-60vm7 lustre]# ls -al test/
total 34
drwxr-xr-x 2 root root 22528 Nov  8 01:29 .
drwxr-xr-x 4 root root 10752 Nov  8 01:29 ..
-rw-r--r-- 1 root root     5 Nov  8 01:29 foo
[root@trevis-60vm7 lustre]# lfs migrate -m 1,3 test/
[root@trevis-60vm7 lustre]# lfs getdirstripe test
lmv_stripe_count: 2 lmv_stripe_offset: 1 lmv_hash_type: fnv_1a_64
mdtidx		 FID[seq:oid:ver]
     1		 [0x240000400:0x6:0x0]		
     3		 [0x2c0000402:0x6:0x0]		
[root@trevis-60vm7 lustre]# ls -al test/
total 33
drwxr-xr-x 2 root root 22528 Nov  8 01:29 .
drwxr-xr-x 4 root root 10752 Nov  8 01:30 ..
-rw-r--r-- 1 root root     0 Nov  8 01:29 foo
[root@trevis-60vm7 lustre]# cat test/foo 
[root@trevis-60vm7 lustre]# 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;5. create another file with data under test dir, the dir is cross MDT1, and MDT3 right now&lt;br/&gt;
6. migrate the dir back to MDT0 and MDT1&lt;br/&gt;
7. check the new file and data is still there&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@trevis-60vm7 lustre]# cd test/
[root@trevis-60vm7 test]# touch foo-2
[root@trevis-60vm7 test]# echo 1234 &amp;gt; foo-2 
[root@trevis-60vm7 test]# cat foo-2 
1234
[root@trevis-60vm7 test]# ls -al
total 34
drwxr-xr-x 2 root root 22528 Nov  8 01:31 .
drwxr-xr-x 4 root root 10752 Nov  8 01:30 ..
-rw-r--r-- 1 root root     0 Nov  8 01:29 foo
-rw-r--r-- 1 root root     5 Nov  8 01:31 foo-2
[root@trevis-60vm7 test]# cd ..
[root@trevis-60vm7 lustre]# lfs migrate -m 0,1 test/
[root@trevis-60vm7 lustre]# lfs getdirstripe test/
lmv_stripe_count: 2 lmv_stripe_offset: 0 lmv_hash_type: fnv_1a_64
mdtidx		 FID[seq:oid:ver]
     0		 [0x200000400:0x7:0x0]		
     1		 [0x240000401:0x7:0x0]		
[root@trevis-60vm7 lustre]# ls -al test/
total 39
drwxr-xr-x 2 root root 22528 Nov  8 01:31 .
drwxr-xr-x 4 root root 10752 Nov  8 01:31 ..
-rw-r--r-- 1 root root     0 Nov  8 01:29 foo
-rw-r--r-- 1 root root     5 Nov  8 01:31 foo-2
[root@trevis-60vm7 lustre]# cat foo-2
cat: foo-2: No such file or directory
[root@trevis-60vm7 lustre]# cat test/foo-2 
1234
[root@trevis-60vm7 lustre]# 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment>server and client are 2.11.56 . tag-2.11.56_55_g4afee32</environment>
        <key id="53964">LU-11642</key>
            <summary>Data lost after migrate striped dir</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="laisiyao">Lai Siyao</assignee>
                                    <reporter username="sarah">Sarah Liu</reporter>
                        <labels>
                    </labels>
                <created>Thu, 8 Nov 2018 01:38:48 +0000</created>
                <updated>Wed, 21 Nov 2018 05:38:14 +0000</updated>
                            <resolved>Wed, 21 Nov 2018 05:38:13 +0000</resolved>
                                    <version>Lustre 2.12.0</version>
                                    <fixVersion>Lustre 2.12.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>7</watches>
                                                                            <comments>
                            <comment id="236621" author="sarah" created="Thu, 8 Nov 2018 01:50:33 +0000"  >&lt;p&gt;the same issue also happened on ldiskfs.&lt;/p&gt;

&lt;p&gt;I also tried migrate the dir from MDT 0,1 to MDT 2,3, data was still there&lt;/p&gt;</comment>
                            <comment id="236624" author="adilger" created="Thu, 8 Nov 2018 03:02:30 +0000"  >&lt;p&gt;It would be useful to put the above testing into a sanity test that is expected to fail, as described in &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11520&quot; title=&quot;separate tests and bugfixes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11520&quot;&gt;LU-11520&lt;/a&gt;.  Then we have a reproducer for the problem, which makes it easier for developers to be sure they have a fix.&lt;/p&gt;</comment>
                            <comment id="236744" author="jgmitter" created="Fri, 9 Nov 2018 18:18:07 +0000"  >&lt;p&gt;Hi Lai,&lt;/p&gt;

&lt;p&gt;Can you please have a look into this as a priority since it involved data correction?&lt;/p&gt;

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

&lt;p&gt;Joe&lt;/p&gt;</comment>
                            <comment id="236833" author="gerrit" created="Mon, 12 Nov 2018 08:20:56 +0000"  >&lt;p&gt;Lai Siyao (lai.siyao@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/33640&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/33640&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11642&quot; title=&quot;Data lost after migrate striped dir&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11642&quot;&gt;&lt;del&gt;LU-11642&lt;/del&gt;&lt;/a&gt; mdt: revoke remote LOOKUP lock in dir layout shrink&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 9af7de4dde63782028440c3b5862136bff4ff60d&lt;/p&gt;</comment>
                            <comment id="236834" author="gerrit" created="Mon, 12 Nov 2018 08:20:57 +0000"  >&lt;p&gt;Lai Siyao (lai.siyao@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/33641&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/33641&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11642&quot; title=&quot;Data lost after migrate striped dir&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11642&quot;&gt;&lt;del&gt;LU-11642&lt;/del&gt;&lt;/a&gt; lmv: allocate fid on parent MDT in migrate&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 5dac67893433c2882470aed210eabef048909760&lt;/p&gt;</comment>
                            <comment id="236835" author="laisiyao" created="Mon, 12 Nov 2018 08:25:17 +0000"  >&lt;p&gt;Hi Sarah, I just uploaded two patches, will you apply them and test again?&lt;/p&gt;</comment>
                            <comment id="236856" author="sarah" created="Mon, 12 Nov 2018 17:21:37 +0000"  >&lt;p&gt;Sure, I will test it again and update the ticket, thank you.&lt;/p&gt;</comment>
                            <comment id="236947" author="sarah" created="Tue, 13 Nov 2018 21:22:21 +0000"  >&lt;p&gt;I have tested with lustre-reviews build 59952, the issue has been fixed.&lt;/p&gt;</comment>
                            <comment id="237305" author="gerrit" created="Wed, 21 Nov 2018 04:05:54 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/33640/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/33640/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11642&quot; title=&quot;Data lost after migrate striped dir&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11642&quot;&gt;&lt;del&gt;LU-11642&lt;/del&gt;&lt;/a&gt; mdt: revoke remote LOOKUP lock in dir layout shrink&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 640ed6104453e912a5c7766d265a36a30a31761d&lt;/p&gt;</comment>
                            <comment id="237306" author="gerrit" created="Wed, 21 Nov 2018 04:05:58 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/33641/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/33641/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11642&quot; title=&quot;Data lost after migrate striped dir&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11642&quot;&gt;&lt;del&gt;LU-11642&lt;/del&gt;&lt;/a&gt; lmv: allocate fid on parent MDT in migrate&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: a857446dc6480841ab1e832970d3958f3962a885&lt;/p&gt;</comment>
                            <comment id="237317" author="pjones" created="Wed, 21 Nov 2018 05:38:14 +0000"  >&lt;p&gt;Landed for 2.12&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="53602">LU-11520</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|i00607:</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>