<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:09:26 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-14403] lctl dl UP and lfs df problem with conf_param osc.active=0 after client remount</title>
                <link>https://jira.whamcloud.com/browse/LU-14403</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;This is related to &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7668&quot; title=&quot;permanently remove deactivated OSTs from configuration log&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7668&quot;&gt;&lt;del&gt;LU-7668&lt;/del&gt;&lt;/a&gt;. The Lustre Manual, in section &lt;a href=&quot;https://build.whamcloud.com/job/lustre-manual/lastSuccessfulBuild/artifact/lustre_manual.xhtml#lustremaint.remove_ost&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;14.9.3. Removing an OST from the File System&lt;/a&gt;, recommends to use&#160;&lt;tt&gt;lctl conf_param ost_name.osc.active=0&lt;/tt&gt; to permanently disable OSTs.&lt;/p&gt;

&lt;p&gt;We are trying to permanently disable 12 old empty OSTs on our Oak filesystem. We used commands like these:&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;lctl conf_param oak-OST0000.osc.active=0
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Lustre logs seem to indicate it works OK:&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;20000000:02000400:16.0:1612760209.795689:0:334624:0:(mgs_llog.c:3964:mgs_write_log_param()) Permanently deactivating oak-OST0000
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;On already mounted clients, &lt;tt&gt;lctl dl&lt;/tt&gt; shows the OBD status inactive:&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@oak-rbh01 ~]# lctl dl | grep oak-OST0000
  9 IN osc oak-OST0000-osc-ffff9125e10c3800 f532ae1d-6c67-fa34-deaa-5a130b24844f 4
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Also, &lt;tt&gt;lfs df&lt;/tt&gt; works as expected for already mounted 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;[root@oak-rbh01 ~]# lfs df -v  /oak | grep OST0000
OST0000             : inactive device
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;However, we have observed the following when using Lustre 2.12.6 after &lt;b&gt;client remount&lt;/b&gt;:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;the OBD state as reported by &lt;tt&gt;lctl dl&lt;/tt&gt; comes back to UP instead of IN&lt;/li&gt;
&lt;/ul&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@oak-h01v10 ~]# lctl dl | grep oak-OST0000
  9 UP osc oak-OST0000-osc-ffff9c5b6b90f800 523b8803-837d-acf8-a8e6-aae2d47585ac 3
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;the OSC state, however, is properly set to 0&lt;/li&gt;
&lt;/ul&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@oak-h01v10 ~]# cat /sys/fs/lustre/osc/oak-OST0000-osc-ffff9c5b6b90f800/active 
0
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;a &lt;tt&gt;lfs check osts&lt;/tt&gt; reports the following error:
&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@oak-h01v10 ~]# lfs check osts
lfs check: error: check &apos;oak-OST0000-osc-ffff9c5b6b90f800&apos;: Cannot allocate memory (12)
...
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;&lt;tt&gt;lfs df&lt;/tt&gt; shows the following error for the permanently deactivated OST:
&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;OST0000             : Invalid argument
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;I&apos;m attaching client logs of a remounting client. We can see that the OST is disabled:&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;00020000:01000000:0.0:1612805236.515621:0:2155:0:(lov_obd.c:166:lov_connect_obd()) not connecting OSC oak-OST0000_UUID; administratively disabled
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;It looks like at some point, the status of the OBD is not updated properly at mount time and this seems to be causing the confusion. Ideally, we would like to see the same behavior after client remount (IN in lctl dl and lfs df -v showing inactive device). Any ideas on how best to fix/improve this? Thanks!&lt;/p&gt;</description>
                <environment>CentOS 7.6</environment>
        <key id="62770">LU-14403</key>
            <summary>lctl dl UP and lfs df problem with conf_param osc.active=0 after client remount</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.whamcloud.com/images/icons/priorities/major.svg">Major</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="sthiell">Stephane Thiell</assignee>
                                    <reporter username="sthiell">Stephane Thiell</reporter>
                        <labels>
                    </labels>
                <created>Mon, 8 Feb 2021 18:32:20 +0000</created>
                <updated>Wed, 10 May 2023 17:52:05 +0000</updated>
                            <resolved>Wed, 10 May 2023 17:52:05 +0000</resolved>
                                    <version>Lustre 2.13.0</version>
                    <version>Lustre 2.12.6</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="291457" author="adilger" created="Mon, 8 Feb 2021 21:51:10 +0000"  >&lt;p&gt;Stephane,&lt;br/&gt;
it is possible to permanently remove/deactivate the configuration records for those OSTs from the config record itself, so that they are no longer even present in &quot;&lt;tt&gt;lctl dl&lt;/tt&gt;&quot;, rather than being present but inactive.  Please see instructions in &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7668&quot; title=&quot;permanently remove deactivated OSTs from configuration log&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7668&quot;&gt;&lt;del&gt;LU-7668&lt;/del&gt;&lt;/a&gt;, which I&apos;ve just updated to have examples.  If that process works for you, I can add this information into the manual, though it would be better in the long term to actually implement the logic for &quot;&lt;tt&gt;lctl del_ost&lt;/tt&gt;&quot; as described in that ticket.&lt;/p&gt;</comment>
                            <comment id="291459" author="sthiell" created="Mon, 8 Feb 2021 21:54:47 +0000"  >&lt;p&gt;Thanks Andreas. I will try and report back!&lt;/p&gt;</comment>
                            <comment id="291499" author="sthiell" created="Tue, 9 Feb 2021 06:57:23 +0000"  >&lt;p&gt;Andreas,&lt;/p&gt;

&lt;p&gt;Using &lt;tt&gt;lctl llog_cancel&lt;/tt&gt; seems to work on my test system. We haven&apos;t tried on Oak yet though.&lt;/p&gt;

&lt;p&gt;I&apos;ve also pushed a patch with a proposal for&#160;&lt;tt&gt;lctl del_ost&lt;/tt&gt;&#160;as described in &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7668&quot; title=&quot;permanently remove deactivated OSTs from configuration log&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7668&quot;&gt;&lt;del&gt;LU-7668&lt;/del&gt;&lt;/a&gt;, happy to improve it and add some tests if you think this could make sense.&lt;/p&gt;</comment>
                            <comment id="371809" author="adilger" created="Wed, 10 May 2023 17:52:05 +0000"  >&lt;p&gt;The &quot;&lt;tt&gt;lctl del_ost&lt;/tt&gt;&quot; command was included into Lustre 2.15 via &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7668&quot; title=&quot;permanently remove deactivated OSTs from configuration log&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7668&quot;&gt;&lt;del&gt;LU-7668&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="34119">LU-7668</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="37411" name="oak-h01v10-client-dk.log" size="1777217" author="sthiell" created="Mon, 8 Feb 2021 18:31:55 +0000"/>
                    </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|i01lyf:</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>