<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:26:25 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-9462] &quot;lfs setstripe&quot; doesn&apos;t support --component-add/del on a directory</title>
                <link>https://jira.whamcloud.com/browse/LU-9462</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;&quot;lfs setstripe&quot; should support --component-add/del operations on a directory.&lt;/p&gt;</description>
                <environment></environment>
        <key id="45902">LU-9462</key>
            <summary>&quot;lfs setstripe&quot; doesn&apos;t support --component-add/del on a directory</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="emoly.liu">Emoly Liu</assignee>
                                    <reporter username="emoly.liu">Emoly Liu</reporter>
                        <labels>
                    </labels>
                <created>Mon, 8 May 2017 04:16:54 +0000</created>
                <updated>Wed, 25 Oct 2017 22:57:18 +0000</updated>
                            <resolved>Mon, 16 Oct 2017 13:38:23 +0000</resolved>
                                    <version>Lustre 2.10.0</version>
                                    <fixVersion>Lustre 2.11.0</fixVersion>
                    <fixVersion>Lustre 2.10.2</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="194800" author="niu" created="Mon, 8 May 2017 09:02:14 +0000"  >&lt;p&gt;&quot;--component-add/del&quot; was introduced to modify file layout incrementally, so that user can change the file layout and preserve the existing data at the same time. I don&apos;t think it&apos;s necessary for default layout,  because user can simply change the current default layout by &apos;lfs setstripe&apos; without worrying data loss, and I personally think one call to &quot;lfs setstripe $newlayout dir&quot; is simpler than many calls to &quot;lfs setstripe --component-add/del $deltalayout dir&quot;.&lt;/p&gt;

&lt;p&gt;I&apos;m not totally against this feature, I think It&apos;s nice to have, but there is a problem needs be addressed beforehand: current component-del can only delete component by component ID or flags, that are not valid for a default layout, so what kind of argument should be specified for deleting a component of default layout? Using index of component (the index of component array in LOVEA) could be a solution, but it requires &apos;lfs getstripe&apos; to print an &apos;index&apos; for each component, and it needs we to put the array index in protocol, that looks not quite clean to me.&lt;/p&gt;

&lt;p&gt;Andreas, Bobi, any good idea? Thanks in advance.&lt;/p&gt;
</comment>
                            <comment id="194998" author="niu" created="Tue, 9 May 2017 03:05:59 +0000"  >&lt;p&gt;Another solution is that when using &apos;lfs --component-del&apos; to a directory, ignore other arguments, and we just always delete the last component internally. The bad side of this approach is that it complicated the usage and looks bit confusing.&lt;/p&gt;

&lt;p&gt;Both approaches need quite a few code changes in LOD to make the functions to support directory, so I tend to think that we shouldn&apos;t take effort to implement this. What we need to do is to explain it well in Lustre manual, so that user won&apos;t be confused, I think the comment in manual could be:&lt;/p&gt;

&lt;p&gt;&quot;default layout in directory is like config, it can be arbitrarily changed by &apos;lfs setstripe&apos;, layout in file may have data (OST objects) attached, if user want to expand/shrink layout while preserving the data on untouched component, he can use &apos;lfs setstripe --component-add/del.&quot;&lt;/p&gt;

&lt;p&gt;Does it sound ok? If no objections, I&apos;m going to close this ticket as &apos;won&apos;t fix&apos;. Thanks.&lt;/p&gt;</comment>
                            <comment id="195427" author="adilger" created="Thu, 11 May 2017 07:50:36 +0000"  >&lt;blockquote&gt;
&lt;p&gt;default layout in directory is like config, it can be arbitrarily changed by &apos;lfs setstripe&apos;, layout in file may have data (OST objects) attached, if user want to expand/shrink layout while preserving the data on untouched component, he can use &apos;lfs setstripe --component-add/del.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Sorry, I don&apos;t understand this.  It isn&apos;t clear to me what &lt;tt&gt;&amp;#45;&amp;#45;component&amp;#45;add/del&lt;/tt&gt; on a regular file have to do with the same on a directory?  I&apos;m OK with not implementing this feature, now that I realize that &quot;&lt;tt&gt;lfs setstripe&lt;/tt&gt;&quot; on the directory can be used to replace the entire layout immediately.  I guess this is a bit more effort than editing the layout for a regular file, but with the &lt;tt&gt;--yaml&lt;/tt&gt; option it should be enough.&lt;/p&gt;

&lt;p&gt;Definitely there needs to be some discussion of this in the &lt;tt&gt;lfs-setstripe.1&lt;/tt&gt; man page and in the user manual.&lt;/p&gt;</comment>
                            <comment id="195431" author="niu" created="Thu, 11 May 2017 08:38:38 +0000"  >&lt;blockquote&gt;
&lt;p&gt;Sorry, I don&apos;t understand this. It isn&apos;t clear to me what --component-add/del on a regular file have to do with the same on a directory? I&apos;m OK with not implementing this feature, now that I realize that &quot;lfs setstripe&quot; on the directory can be used to replace the entire layout immediately. I guess this is a bit more effort than editing the layout for a regular file, but with the --yaml option it should be enough.&lt;br/&gt;
Definitely there needs to be some discussion of this in the lfs-setstripe.1 man page and in the user manual.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Yes, I didn&apos;t explain it well, my point is that if we explain the purpose of &quot;--component-add/del&quot; clearly in Lustre manual,  user won&apos;t run into the confusion of &quot;why can&apos;t I apply this command to directory?&quot;&lt;/p&gt;</comment>
                            <comment id="195557" author="adilger" created="Thu, 11 May 2017 19:48:02 +0000"  >&lt;p&gt;I added some words to this effect into my patch &lt;a href=&quot;https://review.whamcloud.com/27066&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/27066&lt;/a&gt; &quot;&lt;tt&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9324&quot; title=&quot;sanity-pfl test 10 needs to reset the file system default layout&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9324&quot;&gt;&lt;del&gt;LU-9324&lt;/del&gt;&lt;/a&gt; doc: update lfs setstripe man page and usage&lt;/tt&gt;&quot;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;lfs setstripe &lt;span class=&quot;error&quot;&gt;&amp;#91;STRIPE_OPTIONS&amp;#93;&lt;/span&gt; &amp;lt;directory|filename&amp;gt;&lt;/p&gt;

&lt;p&gt;Create a file with specified layout, or set &lt;b&gt;or replace&lt;/b&gt; the default file&lt;br/&gt;
layout on an existing directory.&lt;/p&gt;&lt;/blockquote&gt; 

&lt;p&gt;This could be expanded a bit further. That patch will likely need to be refreshed due to conflicts as other PFL patches land, so it can be added in one of the updates.&lt;/p&gt;</comment>
                            <comment id="196386" author="eberglan" created="Thu, 18 May 2017 19:20:59 +0000"  >&lt;p&gt;Is there an update on this? &#160;Just did not want it to get lost. &#160;Thanks!&lt;/p&gt;</comment>
                            <comment id="196417" author="adilger" created="Fri, 19 May 2017 00:17:26 +0000"  >&lt;p&gt;Minor documentation patch needed for this (which I just updated), not critical for the release.  It also needs an update to the user manual to make it clear that changing the default layout on a directory cannot be done with &quot;&lt;tt&gt;&amp;#45;&amp;#45;component&amp;#45;add&lt;/tt&gt;&quot; or &quot;&lt;tt&gt;&amp;#45;&amp;#45;component&amp;#45;del&lt;/tt&gt;&quot;, but rather the whole layout needs to be rewritten, or dumped and restored via &quot;&lt;tt&gt;lfs getstripe &amp;#45;&amp;#45;yaml&lt;/tt&gt;&quot; and &quot;&lt;tt&gt;lfs setstripe &amp;#45;&amp;#45;yaml&lt;/tt&gt;&quot; (&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9324&quot; title=&quot;sanity-pfl test 10 needs to reset the file system default layout&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9324&quot;&gt;&lt;del&gt;LU-9324&lt;/del&gt;&lt;/a&gt;).&lt;/p&gt;</comment>
                            <comment id="211139" author="gerrit" created="Mon, 16 Oct 2017 03:22:07 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/27066/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/27066/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9462&quot; title=&quot;&amp;quot;lfs setstripe&amp;quot; doesn&amp;#39;t support --component-add/del on a directory&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9462&quot;&gt;&lt;del&gt;LU-9462&lt;/del&gt;&lt;/a&gt; doc: update lfs setstripe man page and usage&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: aa83ef5a9ec470d2f6af07d47b3dd763f4a0e7ce&lt;/p&gt;</comment>
                            <comment id="211163" author="pjones" created="Mon, 16 Oct 2017 13:38:23 +0000"  >&lt;p&gt;Landed for 2.11&lt;/p&gt;</comment>
                            <comment id="211198" author="gerrit" created="Mon, 16 Oct 2017 16:24:54 +0000"  >&lt;p&gt;Minh Diep (minh.diep@intel.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/29627&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/29627&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9462&quot; title=&quot;&amp;quot;lfs setstripe&amp;quot; doesn&amp;#39;t support --component-add/del on a directory&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9462&quot;&gt;&lt;del&gt;LU-9462&lt;/del&gt;&lt;/a&gt; doc: update lfs setstripe man page and usage&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_10&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 6a4b611a2db00f220aa48077ea017fc79fd239b2&lt;/p&gt;</comment>
                            <comment id="212008" author="gerrit" created="Wed, 25 Oct 2017 21:54:46 +0000"  >&lt;p&gt;John L. Hammond (john.hammond@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/29627/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/29627/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9462&quot; title=&quot;&amp;quot;lfs setstripe&amp;quot; doesn&amp;#39;t support --component-add/del on a directory&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9462&quot;&gt;&lt;del&gt;LU-9462&lt;/del&gt;&lt;/a&gt; doc: update lfs setstripe man page and usage&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_10&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 27041128dbdced3975185fefcbddb304a1bb21cd&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="45517">LU-9349</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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|hzzc2n:</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>