<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:38: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-3973] cleanup_large_files may use df incorrectly </title>
                <link>https://jira.whamcloud.com/browse/LU-3973</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;The test in sanity-hsm.sh&apos;s cleanup_large_files is often failing with the following:&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;/share/lustre-release/lustre/tests/sanity-hsm.sh: line 393: [: /mnt/lustre: integer expression expected
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;which is because df is using an unexpected output format:&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;t2:~# cat /etc/centos-release
CentOS release 6.4 (Final)
t2:~# df --version
df (GNU coreutils) 8.4
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later &amp;lt;http://gnu.org/licenses/gpl.html&amp;gt;.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Torbj&#246;rn Granlund, David MacKenzie, and Paul Eggert.
t2:~#
t2:~# MOUNT=/mnt/lustre
t2:~# df /
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/vda1              8255928   3829976   4006576  49% /
t2:~# df / |awk &apos;{print $5}&apos; |sed &apos;s/%//g&apos; |grep -v Use
49
t2:~# df $MOUNT
Filesystem           1K-blocks      Used Available Use% Mounted on
192.168.122.200@tcp:/lustre
                       7873984    465136   7008772   7% /mnt/lustre
t2:~# df $MOUNT |awk &apos;{print $5}&apos; |sed &apos;s/%//g&apos; |grep -v Use

/mnt/lustre
t2:~# df --portability /mnt/lustre
Filesystem         1024-blocks      Used Available Capacity Mounted on
192.168.122.200@tcp:/lustre   7873984    465136   7008772       7% /mnt/lustre
t2:~# df /mnt/lustre |awk &apos;{print $5}&apos; |sed &apos;s/%//g&apos; |grep -v Use^C
t2:~# ^C
t2:~# df --portability /mnt/lustre | awk &apos;{ print $5 }&apos;
Capacity
7%

t2:~# df --portability $MOUNT | awk -v MOUNT=$MOUNT &apos;$1 == MOUNT { print $5 }&apos;
t2:~# df --portability $MOUNT
Filesystem         1024-blocks      Used Available Capacity Mounted on
192.168.122.200@tcp:/lustre   7873984    305344   7165504       5% /mnt/lustre
t2:~# df --portability $MOUNT | awk -v MOUNT=$MOUNT &apos;$6 == MOUNT { print $5 }&apos;
5%
t2:~#
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="21019">LU-3973</key>
            <summary>cleanup_large_files may use df incorrectly </summary>
                <type id="7" iconUrl="https://jira.whamcloud.com/images/icons/issuetypes/task_agile.png">Technical task</type>
                            <parent id="20020">LU-3647</parent>
                                    <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="bfaccini">Bruno Faccini</assignee>
                                    <reporter username="jhammond">John Hammond</reporter>
                        <labels>
                            <label>HSM</label>
                    </labels>
                <created>Wed, 18 Sep 2013 22:40:58 +0000</created>
                <updated>Tue, 3 Jun 2014 12:38:18 +0000</updated>
                            <resolved>Mon, 18 Nov 2013 14:45:42 +0000</resolved>
                                                    <fixVersion>Lustre 2.6.0</fixVersion>
                    <fixVersion>Lustre 2.5.1</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="66991" author="jcl" created="Thu, 19 Sep 2013 07:12:59 +0000"  >&lt;p&gt;Do we add a new small tool in lustre/tests which will do a statfs and use a known format? We can also extend multiop but it is not really ralated.&lt;/p&gt;</comment>
                            <comment id="67125" author="adilger" created="Fri, 20 Sep 2013 16:09:45 +0000"  >&lt;p&gt;This is what &quot;df -P&quot; is for. I don&apos;t see why we need a different tool?&lt;/p&gt;</comment>
                            <comment id="68750" author="bfaccini" created="Thu, 10 Oct 2013 17:55:08 +0000"  >&lt;p&gt;Seems that more and more sanity-hsm auto-tests runs hit this ...&lt;br/&gt;
Patch is at &lt;a href=&quot;http://review.whamcloud.com/7915&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/7915&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="71787" author="bfaccini" created="Mon, 18 Nov 2013 14:45:42 +0000"  >&lt;p&gt;patch has land.&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|hzw34v:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>10591</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>