<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:16:14 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-15193] qsd_op_begin: more than 8 qids enforced for a transaction?</title>
                <link>https://jira.whamcloud.com/browse/LU-15193</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;This morning, we hit the following problem (new for us) on Fir (2.12.5 servers, 2.12.7 clients):&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;# rmdir /scratch/users/ragoglia/csATAC/For_Rachel
rmdir: failed to remove &#8216;/scratch/users/ragoglia/csATAC/For_Rachel&#8217;: Invalid argument
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;br/&gt;
 More info on this directory:&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@fir-rbh01 ~]# ls -lisa /scratch/users/ragoglia/csATAC/For_Rachel
total 8
198162765779658672 4 drwxr-xr-x  2 atrev    wjg      4096 Oct 20 02:58 .
198162765779658671 4 drwxrwxr-x+ 3 ragoglia hbfraser 4096 Sep  5  2019 ..

[root@fir-rbh01 ~]# lfs getdirstripe /scratch/users/ragoglia/csATAC/For_Rachel
lmv_stripe_count: 0 lmv_stripe_offset: 2 lmv_hash_type: none

[root@fir-rbh01 ~]# lfs project -d /scratch/users/ragoglia/csATAC/For_Rachel
259557 P /scratch/users/ragoglia/csATAC/For_Rachel

[root@fir-rbh01 ~]# lfs getdirstripe /scratch/users/ragoglia/csATAC
lmv_stripe_count: 0 lmv_stripe_offset: 2 lmv_hash_type: none

[root@fir-rbh01 ~]# rmdir /scratch/users/ragoglia/csATAC/For_Rachel
rmdir: failed to remove &#8216;/scratch/users/ragoglia/csATAC/For_Rachel&#8217;: Invalid argument
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;MDS logs show:&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;Nov 03 09:52:49 fir-md1-s3 kernel: LustreError: 103307:0:(qsd_handler.c:884:qsd_op_begin()) fir-MDT0002: more than 8 qids enforced for a transaction?
Nov 03 10:10:09 fir-md1-s3 kernel: LustreError: 103781:0:(qsd_handler.c:884:qsd_op_begin()) fir-MDT0002: more than 8 qids enforced for a transaction?
Nov 03 10:10:35 fir-md1-s3 kernel: LustreError: 103781:0:(qsd_handler.c:884:qsd_op_begin()) fir-MDT0002: more than 8 qids enforced for a transaction?
Nov 03 10:10:52 fir-md1-s3 kernel: LustreError: 103697:0:(qsd_handler.c:884:qsd_op_begin()) fir-MDT0002: more than 8 qids enforced for a transaction?
Nov 03 10:15:55 fir-md1-s3 kernel: LustreError: 103721:0:(qsd_handler.c:884:qsd_op_begin()) fir-MDT0002: more than 8 qids enforced for a transaction?
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Which looks like &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12388&quot; title=&quot;expand QUOTA_MAX_TRANSIDS for Project Quota?&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12388&quot;&gt;&lt;del&gt;LU-12388&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
 &#160;&lt;br/&gt;
 My colleague found a workaround for rmdir: set project ID 0 before rmdir, and it worked:&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 project -d  /scratch/users/ragoglia/csATAC/For_Rachel/
259557 P /scratch/users/ragoglia/csATAC/For_Rachel/
# lfs project -p 0  /scratch/users/ragoglia/csATAC/For_Rachel/
# lfs project -d  /scratch/users/ragoglia/csATAC/For_Rachel/
    0 P /scratch/users/ragoglia/csATAC/For_Rachel/
# rmdir /scratch/users/ragoglia/csATAC/For_Rachel/
#
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;I believe this is the only occurrence we&apos;ve seen of this issue so far. Let me know if additional logs would be helpful the next time we hit this.&lt;br/&gt;
 &#160;&lt;/p&gt;</description>
                <environment>CentOS 7.9, Lustre 2.12.7 on clients</environment>
        <key id="66963">LU-15193</key>
            <summary>qsd_op_begin: more than 8 qids enforced for a transaction?</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="flei">Feng Lei </assignee>
                                    <reporter username="sthiell">Stephane Thiell</reporter>
                        <labels>
                    </labels>
                <created>Wed, 3 Nov 2021 18:33:22 +0000</created>
                <updated>Mon, 11 Dec 2023 07:19:21 +0000</updated>
                            <resolved>Sat, 11 Jun 2022 15:31:20 +0000</resolved>
                                    <version>Lustre 2.12.5</version>
                                    <fixVersion>Lustre 2.16.0</fixVersion>
                    <fixVersion>Lustre 2.15.4</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>7</watches>
                                                                            <comments>
                            <comment id="317392" author="adilger" created="Wed, 3 Nov 2021 18:58:37 +0000"  >&lt;p&gt;It looks like a trivial fix. It would also be useful if the &lt;tt&gt;qsd_op_begin()&lt;/tt&gt; error message was updated to also print the FID, so that this is easier to debug in the future. &lt;/p&gt;</comment>
                            <comment id="317402" author="adilger" created="Wed, 3 Nov 2021 19:22:21 +0000"  >&lt;p&gt;It may not be &lt;em&gt;quite&lt;/em&gt; as trivial as I thought. The trivial solution is to increase the max quotas to 12 - ( &amp;lt;old,new&amp;gt; or &amp;lt;parent,child&amp;gt; x &amp;lt;user,group,project&amp;gt; x &amp;lt;block,inode&amp;gt;, but this may needlessly increase the transaction credits and hurt performance.  &lt;/p&gt;

&lt;p&gt;In the case of &quot;rmdir&quot; it isn&apos;t clear why the quota of the parent directory would be updated (it only removes a name from the leaf block, and updates the link count on the inode, so until we have directory shrink there would be no changes to the parent ID quotas), so (IMHO) there should only be at most 6 different IDs involved in this transaction. &lt;/p&gt;</comment>
                            <comment id="317411" author="sthiell" created="Wed, 3 Nov 2021 20:54:17 +0000"  >&lt;p&gt;Simple reproducer below.&lt;/p&gt;

&lt;p&gt;It looks like the owner/group of the parent directory has to be different than the owner/group of the directory to be removed, and to trigger the problem, the project IDs have to be different too.&lt;/p&gt;

&lt;p&gt;From a directory that has project ID set by default (and inherited):&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@fir-rbh01 LU-15193]# lfs project -d .
282232 P .

[root@fir-rbh01 LU-15193]# mkdir parent
[root@fir-rbh01 LU-15193]# chown atrev.wjg parent
[root@fir-rbh01 LU-15193]# mkdir parent/dir
[root@fir-rbh01 LU-15193]# chown sthiell.ruthm parent/dir

[root@fir-rbh01 LU-15193]# ls -lisa parent
total 12
180150013517627412 4 drwxr-xr-x 3 atrev   wjg   4096 Nov  3 13:50 .
180150013517627393 4 drwxr-xr-x 3 root    root  4096 Nov  3 13:49 ..
180150013517627413 4 drwxr-xr-x 2 sthiell ruthm 4096 Nov  3 13:50 dir

[root@fir-rbh01 LU-15193]# lfs project -p 215845 parent/dir

[root@fir-rbh01 LU-15193]# lfs project -d parent parent/dir
282232 P parent
215845 P parent/dir

[root@fir-rbh01 LU-15193]# rmdir parent/dir
rmdir: failed to remove &apos;parent/dir&apos;: Invalid argument
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;In practice, for us, that&apos;s definitely a very rare case, that&apos;s probably why we haven&apos;t seen it before.&lt;/p&gt;</comment>
                            <comment id="317453" author="gerrit" created="Thu, 4 Nov 2021 12:12:18 +0000"  >&lt;p&gt;&quot;Feng, Lei &amp;lt;flei@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/45456&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/45456&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15193&quot; title=&quot;qsd_op_begin: more than 8 qids enforced for a transaction?&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15193&quot;&gt;&lt;del&gt;LU-15193&lt;/del&gt;&lt;/a&gt; quota: expand QUOTA_MAX_TRANSIDS to 12&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: c995e003c75b15452d48fc94a31165eb194d4455&lt;/p&gt;</comment>
                            <comment id="324171" author="sthiell" created="Thu, 27 Jan 2022 19:15:33 +0000"  >&lt;p&gt;Hello! We are still hitting this problem. Example from this morning using a client running 2.12.8 and servers running 2.12.7:&lt;/p&gt;

&lt;p&gt;Client-side:&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@sh02-hn01 VASP]# pwd
/scratch/users/dasc/Projects/BATT-RIXS/VASP

[root@sh02-hn01 VASP]# ls -al
total 12
drwxrwxr-x+ 3 311749 tpd   4096 May 27  2021 .
drwxrwxr-x+ 4 311749 tpd   4096 Jun 16  2020 ..
drwxr-xr-x  2 292018 32269 4096 May 27  2021 Na2Mn3O7

[root@sh02-hn01 VASP]# rm -Rf Na2Mn3O7/
[root@sh02-hn01 VASP]# ls -al
total 12
drwxrwxr-x+ 3 311749 tpd   4096 May 27  2021 .
drwxrwxr-x+ 4 311749 tpd   4096 Jun 16  2020 ..
drwxr-xr-x  2 292018 32269 4096 May 27  2021 Na2Mn3O7

[root@sh02-hn01 VASP]# ls -al Na2Mn3O7/
total 8
drwxr-xr-x  2 292018 32269 4096 May 27  2021 .
drwxrwxr-x+ 3 311749 tpd   4096 May 27  2021 ..

[root@sh02-hn01 VASP]# rmdir Na2Mn3O7/
rmdir: failed to remove &apos;Na2Mn3O7/&apos;: Invalid argument
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&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 getdirstripe /scratch/users/dasc/Projects/BATT-RIXS
lmv_stripe_count: 0 lmv_stripe_offset: 2 lmv_hash_type: none
# lfs getdirstripe /scratch/users/dasc/Projects/BATT-RIXS/VASP
lmv_stripe_count: 0 lmv_stripe_offset: 2 lmv_hash_type: none
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Server-side:&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;fir-md1-s3: Jan 27 11:04:36 fir-md1-s3 kernel: LustreError: 24993:0:(qsd_handler.c:884:qsd_op_begin()) fir-MDT0002: more than 8 qids enforced for a transaction?
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="337391" author="gerrit" created="Sat, 11 Jun 2022 05:31:56 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/45456/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/45456/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15193&quot; title=&quot;qsd_op_begin: more than 8 qids enforced for a transaction?&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15193&quot;&gt;&lt;del&gt;LU-15193&lt;/del&gt;&lt;/a&gt; quota: expand QUOTA_MAX_TRANSIDS to 12&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 61481796ac85e9ab2469b8d2f4cc75088c65d298&lt;/p&gt;</comment>
                            <comment id="337493" author="pjones" created="Sat, 11 Jun 2022 15:31:20 +0000"  >&lt;p&gt;Landed for 2.16&lt;/p&gt;</comment>
                            <comment id="358727" author="sthiell" created="Thu, 12 Jan 2023 02:05:06 +0000"  >&lt;p&gt;It would be nice to have this patch backported to 2.15 LTS. Thanks!&lt;/p&gt;</comment>
                            <comment id="358741" author="adilger" created="Thu, 12 Jan 2023 04:32:51 +0000"  >&lt;blockquote&gt;
&lt;p&gt;It would be nice to have this patch backported to 2.15 LTS. Thanks!&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;For simple patches like this you can usually cherry-pick the patch directly to b2_15 within Gerrit.  Click the &quot;&lt;tt&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;Cherry-pick&amp;#93;&lt;/span&gt;&lt;/tt&gt;&quot; button on the patch, add &quot;&lt;tt&gt;b2_15&lt;/tt&gt;&quot; for the branch name, edit the commit message to add labels &quot;&lt;tt&gt;Lustre-change:&lt;/tt&gt;&quot; (from &quot;&lt;tt&gt;Reviewed-on:&lt;/tt&gt;&quot;) and &quot;&lt;tt&gt;Lustre-commit:&lt;/tt&gt;&quot; (from the &quot;&lt;tt&gt;cherry-picked&lt;/tt&gt;&quot; line at the end), and remove the &quot;&lt;tt&gt;Tested-by:&lt;/tt&gt;&quot; and &quot;&lt;tt&gt;Reviewed-by: Oleg Drokin&lt;/tt&gt;&quot; lines.&lt;/p&gt;

&lt;p&gt;As an added benefit, if I don&apos;t do the cherry-pick the patch myself, I&apos;m able to review it and it can be landed more quickly instead of waiting for someone else to review it.&lt;/p&gt;</comment>
                            <comment id="358742" author="gerrit" created="Thu, 12 Jan 2023 05:06:55 +0000"  >&lt;p&gt;&quot;Feng Lei &amp;lt;flei@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/49611&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/49611&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15193&quot; title=&quot;qsd_op_begin: more than 8 qids enforced for a transaction?&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15193&quot;&gt;&lt;del&gt;LU-15193&lt;/del&gt;&lt;/a&gt; quota: expand QUOTA_MAX_TRANSIDS to 12&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_15&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 44db441ca5ce7395cd059e3230b4ae684db01830&lt;/p&gt;</comment>
                            <comment id="358882" author="sthiell" created="Fri, 13 Jan 2023 02:06:02 +0000"  >&lt;p&gt;Sounds good, makes sense, I will remember for next time, thanks Andreas and Feng!&lt;/p&gt;</comment>
                            <comment id="389928" author="gerrit" created="Thu, 19 Oct 2023 13:48:54 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/49611/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/49611/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15193&quot; title=&quot;qsd_op_begin: more than 8 qids enforced for a transaction?&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15193&quot;&gt;&lt;del&gt;LU-15193&lt;/del&gt;&lt;/a&gt; quota: expand QUOTA_MAX_TRANSIDS to 12&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_15&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: c20d23cd92c5bc748a618e9ed96e6eddd794ab45&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="55855">LU-12388</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|i02967:</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>