<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:31:13 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-3128] filter_fid on OST not updated during layout swap</title>
                <link>https://jira.whamcloud.com/browse/LU-3128</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;LMA on OST is not updated during layout swap.&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;# llmount.sh 
...
# cd /mnt/lustre
# lfs setstripe -c2 f0
# dd if=/dev/zero bs=1M count=2 | tr &apos;\0&apos; &apos;X&apos; &amp;gt; f0
2+0 records in
2+0 records out
2097152 bytes (2.1 MB) copied, 0.0201865 s, 104 MB/s
# lfs getstripe f0
f0
lmm_stripe_count:   2
lmm_stripe_size:    1048576
lmm_layout_gen:     0
lmm_stripe_offset:  0
	obdidx		 objid		 objid		 group
	     0	             1	          0x1	             0
	     1	             1	          0x1	             0

# touch f1
# ls -lh
total 2.0M
-rw-r--r-- 1 root root 2.0M Apr  8 13:54 f0
-rw-r--r-- 1 root root    0 Apr  8 13:54 f1
# lfs path2fid f0
[0x200000400:0x1:0x0]
# lfs path2fid f1
[0x200000400:0x3:0x0]
# umount /mnt/ost1
# mount /tmp/lustre-ost1 /mnt/ost1 -t ldiskfs -o loop
# ls -lh /mnt/ost1/O/0/d1/1
-rw-rw-rw- 1 root root 1.0M Apr  8 13:54 /mnt/ost1/O/0/d1/1
# ll_decode_filter_fid /mnt/ost1/O/0/d1/1
/mnt/ost1/O/0/d1/1: objid=4294967296 seq=1 parent=[0x200000400:0x1:0x0]
# umount /mnt/ost1
# mount /tmp/lustre-ost1  /mnt/ost1 -t lustre -o loop
# lfs swap_layouts f0 f1
# ls -lh
total 2.0M
-rw-r--r-- 1 root root    0 Apr  8 13:57 f0
-rw-r--r-- 1 root root 2.0M Apr  8 13:57 f1
# umount /mnt/ost1
# mount /tmp/lustre-ost1 /mnt/ost1 -t ldiskfs -o loop
# ls -lh /mnt/ost1/O/0/d1/1
-rw-rw-rw- 1 root root 1.0M Apr  8 13:57 /mnt/ost1/O/0/d1/1
# ll_decode_filter_fid /mnt/ost1/O/0/d1/1
/mnt/ost1/O/0/d1/1: objid=4294967296 seq=1 parent=[0x200000400:0x1:0x0]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="18288">LU-3128</key>
            <summary>filter_fid on OST not updated during layout swap</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="3">Duplicate</resolution>
                                        <assignee username="tappro">Mikhail Pershin</assignee>
                                    <reporter username="jhammond">John Hammond</reporter>
                        <labels>
                            <label>mdd</label>
                    </labels>
                <created>Mon, 8 Apr 2013 19:59:02 +0000</created>
                <updated>Mon, 27 Nov 2017 05:36:14 +0000</updated>
                            <resolved>Mon, 27 Nov 2017 05:36:09 +0000</resolved>
                                    <version>Lustre 2.4.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>10</watches>
                                                                            <comments>
                            <comment id="55918" author="pjones" created="Tue, 9 Apr 2013 18:37:05 +0000"  >&lt;p&gt;Bob will look into this&lt;/p&gt;</comment>
                            <comment id="55922" author="bogl" created="Tue, 9 Apr 2013 19:15:35 +0000"  >&lt;p&gt;From the discussion in &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-2677&quot; title=&quot;Adding LMA to OST object&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-2677&quot;&gt;&lt;del&gt;LU-2677&lt;/del&gt;&lt;/a&gt; it isn&apos;t clear if there is more to be done than is in the fix &lt;a href=&quot;http://review.whamcloud.com/#change,5838&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#change,5838&lt;/a&gt; for &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-2677&quot; title=&quot;Adding LMA to OST object&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-2677&quot;&gt;&lt;del&gt;LU-2677&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="56011" author="jhammond" created="Wed, 10 Apr 2013 15:31:18 +0000"  >&lt;p&gt;Hi Bob. After the layout swap ll_decode_filter_fid should return the FID of the new parent.&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 setstripe -c2 f0
# touch f1
# dd if=/dev/zero of=f0 bs=1M count=2
2+0 records in
2+0 records out
2097152 bytes (2.1 MB) copied, 0.02666 s, 78.7 MB/s
# lfs path2fid f0 
[0x200000400:0x5:0x0]
# lfs path2fid f1
[0x200000400:0x6:0x0]
# lfs getstripe f0
f0
lmm_stripe_count:   2
lmm_stripe_size:    1048576
lmm_layout_gen:     0
lmm_stripe_offset:  1
	obdidx		 objid		 objid		 group
	     1	             5	          0x5	             0
	     0	             5	          0x5	             0

# umount /mnt/ost1
# mount /tmp/lustre-ost1 /mnt/ost1 -t ldiskfs -o loop
# ls -l /mnt/ost1/O/0/d5/5
-rw-rw-rw- 1 root root 1048576 Apr 10 10:20 /mnt/ost1/O/0/d5/5
# ll_decode_filter_fid /mnt/ost1/O/0/d5/5
/mnt/ost1/O/0/d5/5: parent=[0x200000400:0x5:0x0] stripe=1 ### Correct.
# umount /mnt/ost1
# mount /tmp/lustre-ost1 /mnt/ost1 -t lustre -o loop
# lfs swap_layouts f0 f1
# ls -lh 
total 2.0M
-rw-r--r-- 1 root root    0 Apr 10 10:22 f0
-rw-r--r-- 1 root root 2.0M Apr 10 10:22 f1
# umount /mnt/ost1
# mount /tmp/lustre-ost1 /mnt/ost1 -t ldiskfs -o loop
# ll_decode_filter_fid /mnt/ost1/O/0/d5/5
/mnt/ost1/O/0/d5/5: parent=[0x200000400:0x5:0x0] stripe=1 ### Incorrect parent should be [0x200000400:0x6:0x0].
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="56132" author="bogl" created="Thu, 11 Apr 2013 18:37:59 +0000"  >&lt;p&gt;Does look like the problem still reproduces with the commit from &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-2677&quot; title=&quot;Adding LMA to OST object&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-2677&quot;&gt;&lt;del&gt;LU-2677&lt;/del&gt;&lt;/a&gt; in.  My results exactly correspond to John&apos;s comment:&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@centos1 lustre]# lfs setstripe -c2 f0
[root@centos1 lustre]# touch f1
[root@centos1 lustre]# dd if=/dev/zero of=f0 bs=1M count=2
2+0 records in
2+0 records out
2097152 bytes (2.1 MB) copied, 0.00989071 s, 212 MB/s
[root@centos1 lustre]# lfs path2fid f0
[0x200000400:0x1:0x0]
[root@centos1 lustre]# lfs path2fid f1
[0x200000400:0x2:0x0]
[root@centos1 lustre]# lfs getstripe f0
f0
lmm_stripe_count:   2
lmm_stripe_size:    1048576
lmm_layout_gen:     0
lmm_stripe_offset:  1
	obdidx		 objid		 objid		 group
	     1	             2	          0x2	             0
	     0	             2	          0x2	             0

[root@centos1 lustre]# umount /mnt/ost1
[root@centos1 lustre]# mount /tmp/lustre-ost1 /mnt/ost1 -t ldiskfs -o loop
[root@centos1 lustre]# ll_decode_filter_fid /mnt/ost1/O/0/d2/2
/mnt/ost1/O/0/d2/2: parent=[0x200000400:0x1:0x0] stripe=1
[root@centos1 lustre]# umount /mnt/ost1
[root@centos1 lustre]# mount /tmp/lustre-ost1 /mnt/ost1 -t lustre -o loop
[root@centos1 lustre]# lfs swap_layouts f0 f1
[root@centos1 lustre]# ls -lh
total 2.0M
-rw-r--r-- 1 root root    0 Apr 11 11:33 f0
-rw-r--r-- 1 root root 2.0M Apr 11 11:33 f1
[root@centos1 lustre]# umount /mnt/ost1
[root@centos1 lustre]# 
[root@centos1 lustre]# mount /tmp/lustre-ost1 /mnt/ost1 -t ldiskfs -o loop
[root@centos1 lustre]# ll_decode_filter_fid /mnt/ost1/O/0/d2/2
/mnt/ost1/O/0/d2/2: parent=[0x200000400:0x1:0x0] stripe=1
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="56539" author="tappro" created="Thu, 18 Apr 2013 13:05:26 +0000"  >&lt;p&gt;John, are you sure this occurred after &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-2677&quot; title=&quot;Adding LMA to OST object&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-2677&quot;&gt;&lt;del&gt;LU-2677&lt;/del&gt;&lt;/a&gt;? I am asking because parent_fid is not in LMA but in filter_fid EA and it is still here. So if that worked before than it should work still. Strictly speaking the bug description is not correct - LMA shouldn&apos;t be changed but filter_fid should.&lt;/p&gt;</comment>
                            <comment id="56541" author="jhammond" created="Thu, 18 Apr 2013 14:12:26 +0000"  >&lt;p&gt;Mike, you&apos;re right about the description and the EAs. Sorry. I sort of copied that from the summary of &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-2677&quot; title=&quot;Adding LMA to OST object&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-2677&quot;&gt;&lt;del&gt;LU-2677&lt;/del&gt;&lt;/a&gt; and realized my mistake later. In any case the  filter_fid is not updated, even after &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-2677&quot; title=&quot;Adding LMA to OST object&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-2677&quot;&gt;&lt;del&gt;LU-2677&lt;/del&gt;&lt;/a&gt; landed.&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;# git describe
2.3.64-7-gc4f7a77
# llmount.sh
...
# cd /mnt/lustre
# lfs setstripe -c2 f0
# dd if=/dev/zero of=f0 bs=1M count=2
2+0 records in
2+0 records out
2097152 bytes (2.1 MB) copied, 0.0128964 s, 163 MB/s
# lfs path2fid f0
[0x200000400:0x1:0x0]
# lfs getstripe f0
f0
lmm_stripe_count:   2
lmm_stripe_size:    1048576
lmm_layout_gen:     0
lmm_stripe_offset:  1
        obdidx           objid           objid           group
             1               2            0x2                0
             0               2            0x2                0

# touch f1
# lfs path2fid f1
[0x200000400:0x3:0x0]
# lfs getstripe f1
f1
lmm_stripe_count:   1
lmm_stripe_size:    1048576
lmm_layout_gen:     0
lmm_stripe_offset:  1
        obdidx           objid           objid           group
             1               3            0x3                0

# ls -lh
total 2.0M
-rw-r--r-- 1 root root 2.0M Apr 18 08:59 f0
-rw-r--r-- 1 root root    0 Apr 18 08:59 f1
#
# umount /mnt/ost1
# mount /tmp/lustre-ost1 /mnt/ost1 -t ldiskfs -o loop
#
# ls -lh /mnt/ost1/O/0/d2/2
-rw-rw-rw- 1 root root 1.0M Apr 18 08:59 /mnt/ost1/O/0/d2/2
# sys_listxattr /mnt/ost1/O/0/d2/2
&apos;trusted.lma&apos; &apos;000000000000000000000000010000000200000000000000&apos;
&apos;trusted.fid&apos; &apos;00040000020000000100000001000000&apos;
# ll_decode_filter_fid /mnt/ost1/O/0/d2/2
/mnt/ost1/O/0/d2/2: objid=4294967296 seq=1 parent=[0x200000400:0x1:0x1]
#
# umount /mnt/ost1
# mount /tmp/lustre-ost1 /mnt/ost1 -t lustre -o loop
#
# lfs swap_layouts f0 f1
# ls -lh
total 2.0M
-rw-r--r-- 1 root root    0 Apr 18 08:59 f0
-rw-r--r-- 1 root root 2.0M Apr 18 08:59 f1
#
# umount /mnt/ost1
# mount /tmp/lustre-ost1 /mnt/ost1 -t ldiskfs -o loop
#
# lfs swap_layouts f0 f1
# ls -lh
total 2.0M
-rw-r--r-- 1 root root    0 Apr 18 08:59 f0
-rw-r--r-- 1 root root 2.0M Apr 18 08:59 f1
#
# umount /mnt/ost1
# mount /tmp/lustre-ost1 /mnt/ost1 -t ldiskfs -o loop
#
# ls -lh /mnt/ost1/O/0/d2/2
-rw-rw-rw- 1 root root 1.0M Apr 18 08:59 /mnt/ost1/O/0/d2/2
# sys_listxattr /mnt/ost1/O/0/d2/2
&apos;trusted.lma&apos; &apos;000000000000000000000000010000000200000000000000&apos;
&apos;trusted.fid&apos; &apos;00040000020000000100000001000000&apos;
# ll_decode_filter_fid /mnt/ost1/O/0/d2/2
/mnt/ost1/O/0/d2/2: objid=4294967296 seq=1 parent=[0x200000400:0x1:0x1]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="56609" author="tappro" created="Fri, 19 Apr 2013 04:26:18 +0000"  >&lt;p&gt;John, am I right that it was not update before &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-2677&quot; title=&quot;Adding LMA to OST object&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-2677&quot;&gt;&lt;del&gt;LU-2677&lt;/del&gt;&lt;/a&gt; as well? So this is not side effect of &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-2677&quot; title=&quot;Adding LMA to OST object&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-2677&quot;&gt;&lt;del&gt;LU-2677&lt;/del&gt;&lt;/a&gt; but just issue in master?&lt;/p&gt;</comment>
                            <comment id="56610" author="bzzz" created="Fri, 19 Apr 2013 04:59:43 +0000"  >&lt;p&gt;is this really a blocker? I would hope it&apos;s not. I think LOD replacing layout should take care of filter_fid: call -&amp;gt;do_xattr_set(XATTR_NAME_FID, ..), then osp should llog the change and set appropriate OST_SET_ATTR?&lt;br/&gt;
ideally, this should be done by means of OUT, but it&apos;s not quite ready to run on OST, unfortunately.&lt;/p&gt;</comment>
                            <comment id="56737" author="adilger" created="Mon, 22 Apr 2013 20:34:49 +0000"  >&lt;p&gt;Alex, you are completely right - this &lt;em&gt;should&lt;/em&gt; be handled by layout swap code, but this isn&apos;t done yet.  The LFSCK Phase 2 code will correct the parent FID on the OST objects, but I&apos;d rather that it be done correctly during swap under normal conditions.&lt;/p&gt;</comment>
                            <comment id="81446" author="tappro" created="Fri, 11 Apr 2014 18:57:32 +0000"  >&lt;p&gt;I need to check if bug exists in the master to fix this or close the bug otherwise, lower priority to the Major&lt;/p&gt;</comment>
                            <comment id="214655" author="jay" created="Mon, 27 Nov 2017 05:36:09 +0000"  >&lt;p&gt;This problem will be fixed in &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10248&quot; title=&quot;Need to update PFID of OST objects after layout change&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10248&quot;&gt;&lt;del&gt;LU-10248&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="17294">LU-2677</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="49347">LU-10248</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|hzvndr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7599</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>