<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:03:30 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-6818] quiet permanently deactivated OSTs in &quot;lfs df&quot;</title>
                <link>https://jira.whamcloud.com/browse/LU-6818</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;The &lt;tt&gt;lfs df&lt;/tt&gt; output reports inactive OSTs:&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
myth-MDT0000_UUID        9174328      629228     8020812   7% /myth[MDT:0]
myth-OST0000_UUID     3880285544  3431022920   255223648  93% /myth[OST:0]
myth-OST0001_UUID     3886052008  2209970436  1481768956  60% /myth[OST:1]
myth-OST0002_UUID     3880285544  3554012112   209851112  94% /myth[OST:2]
OST0003             : inactive device
myth-OST0004_UUID     3880285544  3688294444   191991100  95% /myth[OST:4]

filesystem summary:  15526908640 12883299912  2138834816  86% /myth
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;However, if the OST is permanently disabled vs. just temporarily deactivated, it would be better not to list them at all as this has been reported several times as annoying to users.&lt;/p&gt;

&lt;p&gt;One option is to return a different error code for OSTs that have been permanently deactivated vs. ones temporarily deactivated via &quot;lctl &amp;#45;&amp;#45;device X deactivate&quot;.  I see in &lt;tt&gt;lov_iocontrol()::IOC_OBD_STATFS&lt;/tt&gt; that devices that have never been configured (lov&amp;#45;&amp;gt;lov_tgts&lt;span class=&quot;error&quot;&gt;&amp;#91;index&amp;#93;&lt;/span&gt; == NULL) return &lt;tt&gt;&amp;#45;EAGAIN&lt;/tt&gt; and that skips all output, vs. inactive devices (lov&amp;#45;&amp;gt;lov_tgts&lt;span class=&quot;error&quot;&gt;&amp;#91;index&amp;#93;&lt;/span&gt;&amp;#45;&amp;gt;ltd_active == 0) return &lt;tt&gt;-ENODATA&lt;/tt&gt;.&lt;/p&gt;</description>
                <environment></environment>
        <key id="31014">LU-6818</key>
            <summary>quiet permanently deactivated OSTs in &quot;lfs df&quot;</summary>
                <type id="4" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11310&amp;avatarType=issuetype">Improvement</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="3">Duplicate</resolution>
                                        <assignee username="wc-triage">WC Triage</assignee>
                                    <reporter username="adilger">Andreas Dilger</reporter>
                        <labels>
                    </labels>
                <created>Wed, 8 Jul 2015 22:34:28 +0000</created>
                <updated>Fri, 1 Dec 2017 02:17:38 +0000</updated>
                            <resolved>Sat, 16 Sep 2017 07:49:14 +0000</resolved>
                                    <version>Lustre 2.7.0</version>
                    <version>Lustre 2.5.3</version>
                    <version>Lustre 2.8.0</version>
                                    <fixVersion>Lustre 2.10.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                            <comments>
                            <comment id="208563" author="adilger" created="Sat, 16 Sep 2017 07:49:14 +0000"  >&lt;p&gt;This was fixed via &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8920&quot; title=&quot;don&amp;#39;t print permanently deactivated OSTs in lfs df output&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8920&quot;&gt;&lt;del&gt;LU-8920&lt;/del&gt;&lt;/a&gt; for the 2.10 release.&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;LU-8920 utils: don&apos;t print deactivated OSTs in &quot;lfs df&quot;
    
    Don&apos;t print deactivated OSTs or MDTs in &quot;lfs df&quot;.  If they have
    been deactivated then the sysadmin knows they are inactive so
    there isn&apos;t much benefit to printing them all the time.  Only
    print deactivated OSTs/MDTs if the new &quot;-v&quot; option is given.
    
    Add long options for &quot;-i&quot; and &quot;-h&quot; (--inodes and --human-readable,
    respectively) and sort the lfs_df() options to be alphabetical by
    short option letter.
    
    Move the &quot;lfs df&quot; manual to a separate &quot;lfs-df.1&quot; man page to
    allow better description of the options and examples.
    
    Add a &quot;flags&quot; argument to showdf() and mntdf() instead of adding
    an every-growing list of boolean arguments to these functions.

Reviewed-on: https://review.whamcloud.com/24228
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="42298">LU-8920</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="34119">LU-7668</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|hzxhrj:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>