<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:08:32 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-7395] lfs and ls failed as: Argument list too long</title>
                <link>https://jira.whamcloud.com/browse/LU-7395</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Not sure if there is any limitation here but running lfs and ls failed &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@onyx-27 lustre]# lfs getstripe -M /mnt/lustre/other_dir/* |grep 1
1
1
1
1
[root@onyx-27 lustre]# lfs getstripe -M /mnt/lustre/other_dir/* |grep 0
0
0
0
[root@onyx-27 lustre]# lfs getstripe -M /mnt/lustre/migrate_dir/* |grep 0
-bash: /bin/lfs: Argument list too long
[root@onyx-27 lustre]# 
[root@onyx-27 lustre]# ls /mnt/lustre/migrate_dir/* |grep 1
-bash: /bin/ls: Argument list too long
[root@onyx-27 lustre]# lfs df -i
UUID                      Inodes       IUsed       IFree IUse% Mounted on
lustre-MDT0000_UUID      1000184         332      999852   0% /mnt/lustre[MDT:0]
lustre-MDT0001_UUID      1000184      522379      477805  52% /mnt/lustre[MDT:1]
lustre-MDT0002_UUID      1000184         236      999948   0% /mnt/lustre[MDT:2]
lustre-MDT0003_UUID      1000184         236      999948   0% /mnt/lustre[MDT:3]
lustre-OST0000_UUID       131072      131072           0 100% /mnt/lustre[OST:0]
lustre-OST0001_UUID       131072      131072           0 100% /mnt/lustre[OST:1]
lustre-OST0002_UUID       131072      131072           0 100% /mnt/lustre[OST:2]
lustre-OST0003_UUID       131072      131072           0 100% /mnt/lustre[OST:3]

filesystem summary:       523183      523183           0 100% /mnt/lustre
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment>client and server: lustre-master #3226 RHEL7</environment>
        <key id="33023">LU-7395</key>
            <summary>lfs and ls failed as: Argument list too long</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="6">Not a Bug</resolution>
                                        <assignee username="wc-triage">WC Triage</assignee>
                                    <reporter username="sarah">Sarah Liu</reporter>
                        <labels>
                    </labels>
                <created>Thu, 5 Nov 2015 19:37:03 +0000</created>
                <updated>Wed, 5 Aug 2020 21:50:28 +0000</updated>
                            <resolved>Wed, 5 Aug 2020 21:50:28 +0000</resolved>
                                    <version>Lustre 2.8.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="132788" author="rread" created="Thu, 5 Nov 2015 20:24:15 +0000"  >&lt;p&gt;That error is actually coming from bash, and yes there is a limitation on command line length so using wildcards on the command line is error prone. &lt;/p&gt;

&lt;p&gt;In the case of lfs, you can use something like &quot;find  /mnt/lustre/other_dir -maxdepth 1 |xargs lfs -M | grep 0&quot; or &quot;lfs --recursive -M /mnt/lustre/dir | grep 0&quot;, depending on how much flexibility you need in limiting the scan. For ls you can just drop the the wildcard so ls will just list that directory or use -R option to enable recursion.&lt;/p&gt;</comment>
                            <comment id="132863" author="jgmitter" created="Fri, 6 Nov 2015 18:24:40 +0000"  >&lt;p&gt;Hi Sarah,&lt;br/&gt;
Is this part of a test script?  At the triage call, it was discussed that the issue is using /* in the commands and should be left off to resolve the problem.  however, it if is part of a test script, the script will need to be updated.&lt;br/&gt;
Thanks.&lt;br/&gt;
Joe&lt;/p&gt;</comment>
                            <comment id="132916" author="adilger" created="Fri, 6 Nov 2015 23:30:30 +0000"  >&lt;p&gt;The &quot;argument list too long&quot; message is from the expansion of &quot;*&quot; on the command line.&lt;/p&gt;

&lt;p&gt;That said, there also appears to be a problem that the 4 MDTs have 1M inodes each, but the OSTs only have 128k inodes each and they have all been used, so the filesystem can only create at most 512k files with objects.  I don&apos;t know if this is also affecting your testing, but I thought I would point it out&lt;/p&gt;</comment>
                            <comment id="133018" author="sarah" created="Mon, 9 Nov 2015 18:43:58 +0000"  >&lt;p&gt;Hi Joe, &lt;br/&gt;
This is not from test script,   I hit it when manually tested migration;  I will try Robert&apos;s way &lt;/p&gt;</comment>
                    </comments>
                    <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|hzxsdz:</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>