<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:27:17 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-16467] lod_trans_space_check() fails with -28 during file unlink</title>
                <link>https://jira.whamcloud.com/browse/LU-16467</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;We have situation with striped directories and full MDTs. File unlink fails with &lt;tt&gt;-ENOSPC&lt;/tt&gt; error. &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 df
UUID                   1K-blocks        Used   Available Use% Mounted on
ai200x-MDT0000_UUID    139539628   133404116     3719624  98% /lustre/ai200x/client[MDT:0]
ai200x-MDT0001_UUID    139539628   123157904    13966032  90% /lustre/ai200x/client[MDT:1]
ai200x-MDT0002_UUID    139539628   137217096           0 100% /lustre/ai200x/client[MDT:2]
ai200x-MDT0003_UUID    139539628   124383568    12740368  91% /lustre/ai200x/client[MDT:3]
# rm -rf 542162
rm: cannot remove &apos;542162&apos;: No space left on device
[root@ai200x-001 blogbench]# lfs getdirstripe 542162
lmv_stripe_count: 3 lmv_stripe_offset: 1 lmv_hash_type: fnv_1a_64
mdtidx		 FID[seq:oid:ver]
     1		 [0x240002b16:0x11cec:0x0]
     2		 [0x2c0001bba:0x11cec:0x0]
     3		 [0x280000c3e:0x86b8:0x0]

[43349.098414] LustreError: 470595:0:(file.c:249:ll_close_inode_openhandle()) ai200x-clilmv-ff47cef76496c800: inode [0x240001b78:0x8a9c:0x0] mdc close failed: rc = -28
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;File itself is placed on MDT0001 which has space but unlink operation calls OSP and failed on &lt;tt&gt;osp_statfs()&lt;/tt&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;osp_statfs()) ai200x-MDT0002-osp-MDT0001: 34884907 blocks, 598078 free, 0 avail
...
lod_trans_space_check()) ai200x-MDT0002-osp-MDT0001: fail - target state 220: rc = -28

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;So as result file is not removed because MDT0002 is full. This is the result of &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14179&quot; title=&quot;lfs find: error: llapi_semantic_traverse: string buffer too small&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14179&quot;&gt;&lt;del&gt;LU-14179&lt;/del&gt;&lt;/a&gt; patch it seems and solution could be skipping &lt;tt&gt;lod_trans_space_check()&lt;/tt&gt; for unlink operation.&lt;/p&gt;</description>
                <environment></environment>
        <key id="73960">LU-16467</key>
            <summary>lod_trans_space_check() fails with -28 during file unlink</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="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="laisiyao">Lai Siyao</assignee>
                                    <reporter username="tappro">Mikhail Pershin</reporter>
                        <labels>
                    </labels>
                <created>Thu, 12 Jan 2023 20:49:57 +0000</created>
                <updated>Fri, 13 Jan 2023 17:22:35 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="358862" author="tappro" created="Thu, 12 Jan 2023 20:55:23 +0000"  >&lt;p&gt;I&apos;ve just added lustre debug log collected around &lt;tt&gt;rm&lt;/tt&gt; operation:&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;# rm /lustre/ai200x/client/blogbench/542327/blog-8/article-7.xml

and &apos;blog-8&apos; info just in case:
# lfs getdirstripe /lustre/ai200x/client/blogbench/542327/blog-8
lmv_stripe_count: 4 lmv_stripe_offset: 0 lmv_hash_type: fnv_1a_64
mdtidx		 FID[seq:oid:ver]
&#160;&#160; &#160; 0		 [0x200004a50:0x12072:0x0]		
&#160;&#160; &#160; 1		 [0x240002b21:0x12072:0x0]		
&#160;&#160; &#160; 2		 [0x2c0001bc2:0x839d:0x0]		
&#160;&#160; &#160; 3		 [0x280000c45:0x11af:0x0]&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="359010" author="adilger" created="Fri, 13 Jan 2023 17:22:35 +0000"  >&lt;p&gt;I think the straight forward solution here is for &lt;tt&gt;lod_trans_space_check()&lt;/tt&gt; to skip the space check for unlink and rmdir operations, or at least to check &quot;free&quot; instead of &quot;avail&quot; space for those operation types. &lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="64446">LU-14719</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="47654" name="lustre2.log" size="5385113" author="tappro" created="Thu, 12 Jan 2023 20:52:26 +0000"/>
                    </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|i039s7:</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>