<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:41:52 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>[LUDOC-305] &quot;lctl deactivate/activate&quot; does not work as expected in 19.1. Handling Full OSTs</title>
                <link>https://jira.whamcloud.com/browse/LUDOC-305</link>
                <project id="10070" key="LUDOC">Lustre Documentation</project>
                    <description>&lt;p&gt;In Lustre manual section 19.1. Handling Full OSTs, lctl deactivate and activate commands were documented to be used to take a full OST offline and return an inactive OST back online.&lt;/p&gt;

&lt;p&gt;However, many bugs (&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4825&quot; title=&quot;lfs migrate not freeing space on OST&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4825&quot;&gt;&lt;del&gt;LU-4825&lt;/del&gt;&lt;/a&gt;, &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4295&quot; title=&quot;removing files on deactivated OST doesn&amp;#39;t free up space&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4295&quot;&gt;&lt;del&gt;LU-4295&lt;/del&gt;&lt;/a&gt;, &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-5931&quot; title=&quot;Deactivated  OST still contains data&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-5931&quot;&gt;&lt;del&gt;LU-5931&lt;/del&gt;&lt;/a&gt;, DDN-172 and &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7012&quot; title=&quot;files not being deleted from OST after being re-activated&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7012&quot;&gt;&lt;del&gt;LU-7012&lt;/del&gt;&lt;/a&gt;) showed that after deactivating the full OST, migrating data and reactivating the OST, the orphan objects on the OST were not destroyed.&lt;/p&gt;

&lt;p&gt;As per the comments from Andreas in &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4825&quot; title=&quot;lfs migrate not freeing space on OST&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4825&quot;&gt;&lt;del&gt;LU-4825&lt;/del&gt;&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;One problem here is that the documented procedure for migrating objects off of an OST is to use &quot;lctl --device XXX deactivate&quot; on the MDS for the OST(s), but this disconnects the MDS from the OST entirely and disables RPC sending at a low level in the code (RPC layer) so it isn&apos;t necessarily practical to special-case that code to allow only OST_DESTROY RPCs through from the MDS, since the MDS doesn&apos;t even know whether the OST is alive or dead at that point.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;And he suggested:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;One option that works on a variety of different Lustre versions is to mark an OST as degraded:&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 set_param obdfilter.{OST_name}.degraded=1
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;This means that the MDS will skip the degraded OST(s) during most allocations, but will not skip them if someone requested a widely striped file and not enough non-degraded OSTs to fill the request.&lt;/p&gt;

&lt;p&gt;I think we need to allow setting &lt;tt&gt;osp.&amp;#42;.max_create_count=0&lt;/tt&gt; to inform the MDS to skip object precreation on the OST(s), instead of using the old &lt;tt&gt;lctl --device &amp;#42; deactivate&lt;/tt&gt; method, so that the MDS can still destroy OST objects for unlinked files.  While it appears &lt;em&gt;possible&lt;/em&gt; to set &lt;tt&gt;max_create_count=0&lt;/tt&gt; today, the MDS still tries to create objects on that OST if specified via &lt;tt&gt;lfs setstripe -i &amp;lt;idx&amp;gt;&lt;/tt&gt; and it waits for a timeout (100s) trying to create files there before moving to the next OST (at &amp;lt;idx + 1&amp;gt;).&lt;/p&gt;

&lt;p&gt;If max_create_count==0 then the LOD/OSP should skip this OSP immediately instead of waiting for a full timeout.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;So, after patch &lt;a href=&quot;http://review.whamcloud.com/16105&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/16105&lt;/a&gt; lands, could you please update Lustre manual accordingly?&lt;/p&gt;</description>
                <environment></environment>
        <key id="31891">LUDOC-305</key>
            <summary>&quot;lctl deactivate/activate&quot; does not work as expected in 19.1. Handling Full OSTs</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="1">Fixed</resolution>
                                        <assignee username="LM-Triage">Lustre Manual Triage</assignee>
                                    <reporter username="yujian">Jian Yu</reporter>
                        <labels>
                            <label>easy</label>
                    </labels>
                <created>Thu, 3 Sep 2015 01:06:09 +0000</created>
                <updated>Tue, 10 Nov 2020 16:45:37 +0000</updated>
                            <resolved>Tue, 23 Jan 2018 21:55:34 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>7</watches>
                                                                            <comments>
                            <comment id="176959" author="adilger" created="Wed, 7 Dec 2016 21:31:10 +0000"  >&lt;p&gt;This was fixed for Lustre 2.9 and the manual should be updated to describe setting &lt;tt&gt;max_create_count=0&lt;/tt&gt; instead of deactivating the OST on the MDS.&lt;/p&gt;</comment>
                            <comment id="189020" author="adilger" created="Mon, 20 Mar 2017 20:15:42 +0000"  >&lt;p&gt;Joe or Lai, could you please update the manual for this. &lt;/p&gt;</comment>
                            <comment id="218187" author="gerrit" created="Sun, 14 Jan 2018 00:44:19 +0000"  >&lt;p&gt;Andreas Dilger (andreas.dilger@intel.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/30864&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/30864&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LUDOC-305&quot; title=&quot;&amp;quot;lctl deactivate/activate&amp;quot; does not work as expected in 19.1. Handling Full OSTs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LUDOC-305&quot;&gt;&lt;del&gt;LUDOC-305&lt;/del&gt;&lt;/a&gt; maintenance: handling full/failed OSTs&lt;br/&gt;
Project: doc/manual&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 0d0aa56251b435cbc81fb25f6ca62353e19e47b8&lt;/p&gt;</comment>
                            <comment id="218938" author="gerrit" created="Tue, 23 Jan 2018 21:50:49 +0000"  >&lt;p&gt;Joseph Gmitter (joseph.gmitter@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/30864/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/30864/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LUDOC-305&quot; title=&quot;&amp;quot;lctl deactivate/activate&amp;quot; does not work as expected in 19.1. Handling Full OSTs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LUDOC-305&quot;&gt;&lt;del&gt;LUDOC-305&lt;/del&gt;&lt;/a&gt; maintenance: handling full/failed OSTs&lt;br/&gt;
Project: doc/manual&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: feb018cdf25683c6ebbb0982f6b5c12040c0b9ec&lt;/p&gt;</comment>
                            <comment id="218939" author="jgmitter" created="Tue, 23 Jan 2018 21:55:34 +0000"  >&lt;p&gt;Patch has landed.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="23911">LU-4825</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|hzxmb3:</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>