<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:44:07 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-11466] DoM files should not need LSOM sync for valid attributes on the MDS</title>
                <link>https://jira.whamcloud.com/browse/LU-11466</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Currently, Lazy size on MDT (LSOM) creates and stores file attributes on the MDS for Data on MDT files, just like all other files, and we need to llsom_sync to get the file attributes for DoM files to be correct. The file metadata for DoM files is on the MDS already and is valid. Thus, we shouldn&#8217;t have to sync to get the LSOM data to match the DoM file metadata. &lt;/p&gt;

&lt;p&gt;From the example below, we can see that the number of blocks in the LSOM data for the DoM file mdt_file_2 is only updated after we run llsom_sync&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 -E 4M -L mdt /lustre/scratch/mdt_file_2
# dd if=/dev/urandom of=/lustre/scratch/mdt_file_2 bs=25k count=2
2+0 records in
2+0 records out
51200 bytes (51 kB) copied, 0.00100831 s, 50.8 MB/s

# lfs getsom /lustre/scratch/mdt_file_2
file: /lustre/scratch/mdt_file_2 size: 51200 blocks: 0 flags: 4

# llsom_sync /lustre/scratch -vvvv -vvv -u cl1 -m scratch-MDT0000
Start receiving records
Processed changelog record index:5894 type:CREAT(0x1) FID:[0x200000401:0x99d:0x0]
Processed changelog record index:5895 type:LYOUT(0xc) FID:[0x200000401:0x99d:0x0]
Processed changelog record index:5896 type:XATTR(0xf) FID:[0x200000401:0x99d:0x0]
Processed changelog record index:5897 type:CLOSE(0xb) FID:[0x200000401:0x99d:0x0]
Start to sync 1 records.
record 1652041866429631028:5897, updated LSOM for fid [0x200000401:0x99d:0x0] size:51200 blocks:112
Processed changelog record index:5898 type:CLOSE(0xb) FID:[0x200000401:0x99d:0x0]
Start to sync 1 records.
record 1652041866429970184:5898, updated LSOM for fid [0x200000401:0x99d:0x0] size:51200 blocks:112
Processed changelog record index:5909 type:XATTR(0xf) FID:[0x200000401:0x99d:0x0]
Processed changelog record index:5910 type:XATTR(0xf) FID:[0x200000401:0x99d:0x0]
Processed changelog record index:5911 type:CLOSE(0xb) FID:[0x200000401:0x99d:0x0]
Start to sync 1 records.
record 1652041916629724290:5911, updated LSOM for fid [0x200000401:0x99d:0x0] size:51200 blocks:112
finished reading [scratch-MDT0000]
Start to sync 0 records.
[root@trevis-62vm4 ~]# lfs getsom /lustre/scratch/mdt_file_2
file: /lustre/scratch/mdt_file_2 size: 51200 blocks: 112 flags: 4
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;


&lt;p&gt;Also, for DoM files, shouldn&#8217;t the flag = 1; SOM_FL_STRICT = 0x0001 - Known strictly correct, FLR or DoM file (SoM guaranteed). In the case above, the flag never changes from 4, SOM_FL_LAZY = 0x0004 - Approximate, may never have been strictly correct, need to sync SOM data to achieve eventual consistency.&lt;/p&gt;</description>
                <environment></environment>
        <key id="53485">LU-11466</key>
            <summary>DoM files should not need LSOM sync for valid attributes on the MDS</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="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="qian_wc">Qian Yingjin</assignee>
                                    <reporter username="jamesanunez">James Nunez</reporter>
                        <labels>
                            <label>LSOM</label>
                    </labels>
                <created>Wed, 3 Oct 2018 21:20:40 +0000</created>
                <updated>Sat, 12 Oct 2019 15:10:36 +0000</updated>
                            <resolved>Tue, 27 Nov 2018 05:10:26 +0000</resolved>
                                    <version>Lustre 2.12.0</version>
                                    <fixVersion>Lustre 2.12.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="234624" author="qian_wc" created="Tue, 9 Oct 2018 13:26:30 +0000"  >&lt;p&gt;After discussion, we think that there is no need to store the SOM xattr for DoM-only files.&lt;br/&gt;
When scan the MDT image, DoM-only files can be specializied handled, the size and blocks information of the file can be got directly from files&apos; inode directly, no need SoM xattr anymore.&lt;/p&gt;</comment>
                            <comment id="234701" author="gerrit" created="Wed, 10 Oct 2018 08:01:29 +0000"  >&lt;p&gt;Yingjin Qian (qian@ddn.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/33331&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/33331&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11466&quot; title=&quot;DoM files should not need LSOM sync for valid attributes on the MDS&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11466&quot;&gt;&lt;del&gt;LU-11466&lt;/del&gt;&lt;/a&gt; mdt: Skip SOM xattr update for DoM-only files&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 5868e79d8a67af3326b4c8ae2a801cb8c2f76d2b&lt;/p&gt;</comment>
                            <comment id="237497" author="gerrit" created="Tue, 27 Nov 2018 04:56:33 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/33331/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/33331/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11466&quot; title=&quot;DoM files should not need LSOM sync for valid attributes on the MDS&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11466&quot;&gt;&lt;del&gt;LU-11466&lt;/del&gt;&lt;/a&gt; mdt: Skip SOM xattr update for DoM-only files&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 76b9eecdebf830606b021079148eaefa6aab99cc&lt;/p&gt;</comment>
                            <comment id="237506" author="pjones" created="Tue, 27 Nov 2018 05:10:26 +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="46203">LU-9538</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="53524">LU-11479</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|i003hr:</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>