<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:34:53 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-17369] Missing OST objects after &quot;lfs migrate&quot;</title>
                <link>https://jira.whamcloud.com/browse/LU-17369</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;During the race between &quot;lfs migrate&quot; and unlink it is possible to get files without appropriate OST objects. Below is a scenario:&lt;/p&gt;

&lt;p&gt;1. &quot;lfs migrate&quot; transfers files from MDT0 to MDT1 for directory &quot;dir&quot;&lt;br/&gt;
2. client1 removes file &quot;f1&quot; from &quot;dir&quot;. It removes object on MDT1 and appropriate objects on OSTs.&lt;br/&gt;
3. client1 disonnected from MDT1&lt;br/&gt;
4. MDT1 failover(probably kernel panic)&lt;br/&gt;
5. MDT1 recovery started&lt;br/&gt;
6. MDT0 resends &quot;replay&quot; request to create a new object for &quot;f1&quot; on MDT1(part of lfs migrate)&lt;/p&gt;

&lt;p&gt;As the client was evicted right before MDT1 failover it doesn&apos;t participate in recovery and doesn&apos;t replay unlink for a new object on MDT1. Thus we have an object on MDT1 but without appropriate objects on OSTs.&lt;/p&gt;

&lt;p&gt;Such files are usually displayed with &quot;???&quot; instead of attributes:&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;vm1:~/lustre2$ ls -l | head -3
ls: cannot access &apos;all_jobs_id&apos;: No such file or directory
total 101100
-????????? ? ? ? ? ? all_jobs_id &lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Below is an example how to distinguish current issue from other cases when file could loose it&apos;s OST objects. As &quot;lfs migrate&quot; copies file attributes crtime will be always newer than ctime, atime and mtime:&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@vm1 logs]# cat stat
debugfs -c -R &quot;stat REMOTE_PARENT_DIR/0x2400013a1:0x1:0x0/f3&quot; /tmp/lustre-mdt2 &amp;gt; statInode: 162 &#160; Type: regular &#160; &#160;Mode: &#160;0644 &#160; Flags: 0x0
Generation: 2069782550 &#160; &#160;Version: 0x00000000:00000000
User: &#160; &#160; 0 &#160; Group: &#160; &#160; 0 &#160; Project: &#160; &#160; 0 &#160; Size: 0
File ACL: 0
Links: 1 &#160; Blockcount: 0
Fragment: &#160;Address: 0 &#160; &#160;Number: 0 &#160; &#160;Size: 0
&#160;ctime: 0x64807111:00000000 -- Wed Jun &#160;7 15:59:13 2023
&#160;atime: 0x64807111:00000000 -- Wed Jun &#160;7 15:59:13 2023
&#160;mtime: 0x64807111:00000000 -- Wed Jun &#160;7 15:59:13 2023
crtime: 0x64807120:b6e87414 -- Wed Jun &#160;7 15:59:28 2023
Size of extra inode fields: 32
Extended attributes:
&#160; lma: fid=[0x2400013a0:0x3:0x0] compat=0 incompat=0
&#160; trusted.lov (56) = d0 0b d1 0b 01 00 00 00 52 00 00 00 00 00 00 00 02 04 00 00 02 00 00 00 00 00 10 00 01 00 00 00 02 04 00 c0 02 00 00 00 04 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00&#160;
&#160; trusted.som (24) = 04 00 00 00 00 00 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00&#160;
&#160; linkea: idx=0 parent=[0x2400013a1:0x1:0x0] name=&apos;f3&apos;
BLOCKS:

[root@vm1 logs]# lfs getstripe /mnt/lustre/dir/f3
/mnt/lustre/dir/f3
lmm_stripe_count:  1
lmm_stripe_size:   1048576
lmm_pattern:       raid0
lmm_layout_gen:    0
lmm_stripe_offset: 1
	obdidx		 objid		 objid		 group
	     1	             4	          0x4	   0x2c0000402

[root@vm1 logs]# debugfs -c -R &quot;stat O/2c0000402/d4/4&quot; /tmp/lustre-ost2
debugfs 1.46.2.wc5 (26-Mar-2022)
/tmp/lustre-ost2: catastrophic mode - not reading inode or group bitmaps
O/2c0000402/d4/4: File not found by ext2_lookup  &lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="79610">LU-17369</key>
            <summary>Missing OST objects after &quot;lfs migrate&quot;</summary>
                <type id="6" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11315&amp;avatarType=issuetype">Story</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="scherementsev">Sergey Cheremencev</reporter>
                        <labels>
                    </labels>
                <created>Fri, 15 Dec 2023 18:30:49 +0000</created>
                <updated>Fri, 15 Dec 2023 18:33:22 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                                        </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|i0453z:</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>