<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:15:06 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-8152] show OST/MDT read-only status in &quot;lctl dl&quot; and/or &quot;lfs df&quot;</title>
                <link>https://jira.whamcloud.com/browse/LU-8152</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;To aid in debugging server problems when the filesystem has gone read-only, it would be useful to print &quot;RO&quot; for the device status in &quot;lctl dl&quot; instead of &quot;UP&quot;, if that is possible without significant layering violations.&lt;/p&gt;

&lt;p&gt;It would also be useful to print out the &lt;tt&gt;OS_STATE_DEGRADED&lt;/tt&gt; and &lt;tt&gt;OS_STATE_READONLY&lt;/tt&gt; flags with &quot;lfs df&quot;, possibly one letter per flag &lt;tt&gt;[DR]&lt;/tt&gt; after the device names, like:&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      584036     8066004   7% /myth[MDT:0]
myth-OST0000_UUID     3880285544  3451122460   235124108  94% /myth[OST:0] DR
myth-OST0001_UUID     3886052008  3362805556   328933836  91% /myth[OST:1]
myth-OST0002_UUID     3880285544  3547714164   216149060  94% /myth[OST:2] D
myth-OST0003_UUID     5840741952  3831815716  1716851948  69% /myth[OST:3]
OST0004             : inactive device
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;We might consider to require a &lt;tt&gt;-v&lt;/tt&gt; flag if there is a concern that this would break the output format, but I don&apos;t think that it will.&lt;/p&gt;</description>
                <environment></environment>
        <key id="36954">LU-8152</key>
            <summary>show OST/MDT read-only status in &quot;lctl dl&quot; and/or &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="1">Fixed</resolution>
                                        <assignee username="yujian">Jian Yu</assignee>
                                    <reporter username="adilger">Andreas Dilger</reporter>
                        <labels>
                    </labels>
                <created>Mon, 16 May 2016 21:57:40 +0000</created>
                <updated>Fri, 20 May 2022 07:32:50 +0000</updated>
                            <resolved>Thu, 6 Apr 2017 03:56:47 +0000</resolved>
                                                    <fixVersion>Lustre 2.10.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>8</watches>
                                                                            <comments>
                            <comment id="155811" author="ghagensen" created="Wed, 15 Jun 2016 17:30:58 +0000"  >&lt;p&gt;an observation on why this should get fixed soon. I am doing a training in Brazil and two of the students had 2 OSTs go read-only on them in their virtual machines. I am assuming because they started using the OSTs when they were still in recovery as there can&apos;t be bad hardware in VMs. IML and lctl dl says everything is happy but  cat  /proc/fs/lustre/lod/Lustre01-MDT0000-mdtlov/target_obd showed two OSTs as INACTIVE.&lt;/p&gt;

&lt;p&gt;They discovered this when setting the stripe count on a directory to 8 and the files under the directory only using 6 OSTs. No complaints from set_stripe, etc that that many where not available. I only knew where to look because of this JIRA.&lt;/p&gt;

&lt;p&gt;I was also a bit surprised that using a OST while in recovery (just doing file operations) would cause the OSTs to go INACTIVE. Nothing in the logs that I could see indicating the transition to inactive. This was the case when this JIRA was generated also.&lt;/p&gt;</comment>
                            <comment id="155821" author="ghagensen" created="Wed, 15 Jun 2016 18:17:38 +0000"  >&lt;p&gt;oops.. did find a entry in dmesg and /var/log/messages on the MDS from LDISK_FS about the read-only transition. ALso noted the time which was in the evening when I was re-creating the cluster. No IO.&lt;/p&gt;</comment>
                            <comment id="155828" author="ghagensen" created="Wed, 15 Jun 2016 18:38:32 +0000"  >&lt;p&gt;However the messages did not make it to the IML aggregated log. Seems like IML should look for LDISKFS entries as well as LUSTRE or there should be a LUSTRE error generated as well.&lt;/p&gt;</comment>
                            <comment id="157187" author="gabriele.paciucci" created="Tue, 28 Jun 2016 21:08:24 +0000"  >&lt;p&gt;/proc/fs/lustre/health_status should report LDISKFS errors and LBUG...not sure ZFS errors.&lt;/p&gt;</comment>
                            <comment id="160333" author="pjones" created="Fri, 29 Jul 2016 17:56:12 +0000"  >&lt;p&gt;Jian&lt;/p&gt;

&lt;p&gt;Could you please look into this issue?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="170550" author="adilger" created="Fri, 21 Oct 2016 01:38:10 +0000"  >&lt;p&gt;Jian, could you please make a patch for &quot;lfs df&quot; to print the OS_STATE_* flags? This should be fairly fast as it only invokes a small change to showdf(), and testing is straight forward since the &quot;obdfilter.*.degraded&quot; tunable can be set directly from the test script. &lt;/p&gt;</comment>
                            <comment id="170583" author="yujian" created="Fri, 21 Oct 2016 14:10:30 +0000"  >&lt;p&gt;Sure, Andreas. I&apos;ll create the patch.&lt;/p&gt;</comment>
                            <comment id="170732" author="gerrit" created="Mon, 24 Oct 2016 13:12:14 +0000"  >&lt;p&gt;Jian Yu (jian.yu@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/23330&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/23330&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8152&quot; title=&quot;show OST/MDT read-only status in &amp;quot;lctl dl&amp;quot; and/or &amp;quot;lfs df&amp;quot;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8152&quot;&gt;&lt;del&gt;LU-8152&lt;/del&gt;&lt;/a&gt; utils: improve &#8220;lfs df&#8221; to show device status&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: f892e9c4b0216b7d48fae0ed06ebab5e84abab1b&lt;/p&gt;</comment>
                            <comment id="190945" author="gerrit" created="Thu, 6 Apr 2017 01:00:11 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/23330/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/23330/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8152&quot; title=&quot;show OST/MDT read-only status in &amp;quot;lctl dl&amp;quot; and/or &amp;quot;lfs df&amp;quot;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8152&quot;&gt;&lt;del&gt;LU-8152&lt;/del&gt;&lt;/a&gt; utils: improve &#8220;lfs df&#8221; to show device status&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 95d7592a9f33f62accade96d81e0cc3ca0fb94e2&lt;/p&gt;</comment>
                            <comment id="190961" author="pjones" created="Thu, 6 Apr 2017 03:56:47 +0000"  >&lt;p&gt;Landed for 2.10&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="42298">LU-8920</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|hzybs7:</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>