<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:48:04 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-11918] Allow setting default file layout on root directory at mkfs time</title>
                <link>https://jira.whamcloud.com/browse/LU-11918</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;It is useful to enable newer features like PFL, DoM, and FLR at format time, so that users unfamiliar with Lustre can have a default filesystem configuration that is most useful.  In particular, enabling PFL for new filesystems is desirable for new releases, and if the MDT is configured with a large amount of space per inode (using e.g. &quot;&lt;tt&gt;--mkfsoptions=&apos;-i 65536&apos;&lt;/tt&gt;&quot; for ldiskfs, or always for ZFS) then a DoM component could be added.&lt;/p&gt;

&lt;p&gt;Some options for implementing this exist:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;after formatting the MDT, when it is mounted as type ldiskfs use &quot;&lt;tt&gt;lfs setstripe&lt;/tt&gt;&quot; to generate an xattr and write it to the &lt;tt&gt;ROOT/&lt;/tt&gt; directory using &lt;tt&gt;setxattr()&lt;/tt&gt; instead of &lt;tt&gt;ioctl()&lt;/tt&gt;.  Allowing &lt;tt&gt;mkfs.lustre&lt;/tt&gt; to accept an arbitrary layout would be most flexible.&lt;/li&gt;
	&lt;li&gt;have &quot;pre-built&quot; xattrs that are written to the &lt;tt&gt;ROOT/&lt;/tt&gt; directory at format time (either inside the kernel or from &lt;tt&gt;mkfs.lustre&lt;/tt&gt;.  This would likely handle most of the cases, and for expert users that know they want a different default, they can set it after mount.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;I don&apos;t think that mounting the MDT as type &lt;tt&gt;lustre&lt;/tt&gt;, and then mounting a local client and using &quot;&lt;tt&gt;lfs setstripe&lt;/tt&gt;&quot; is practical.&lt;/p&gt;</description>
                <environment></environment>
        <key id="54758">LU-11918</key>
            <summary>Allow setting default file layout on root directory at mkfs time</summary>
                <type id="4" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11310&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="3" iconUrl="https://jira.whamcloud.com/images/icons/priorities/major.svg">Major</priority>
                        <status id="1" iconUrl="https://jira.whamcloud.com/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="wc-triage">WC Triage</assignee>
                                    <reporter username="adilger">Andreas Dilger</reporter>
                        <labels>
                            <label>medium</label>
                    </labels>
                <created>Sat, 2 Feb 2019 00:21:38 +0000</created>
                <updated>Fri, 5 Jan 2024 23:55:11 +0000</updated>
                                            <version>Lustre 2.12.0</version>
                    <version>Lustre 2.13.0</version>
                                    <fixVersion>Lustre 2.16.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="250842" author="adilger" created="Mon, 8 Jul 2019 17:43:49 +0000"  >&lt;p&gt;The first step would be to change &lt;tt&gt;test-framework.sh&lt;/tt&gt; to enable PFL layout on the root directory when the filesystem is formatted.  This will allow testing and fixing test script breakage where the default layout is assumed to be a plain file before we enable this by default for all filesystems.&lt;/p&gt;</comment>
                            <comment id="252334" author="jamesanunez" created="Wed, 31 Jul 2019 17:12:57 +0000"  >&lt;p&gt;James Nunez (james.a.nunez@intel.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/26576&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/26576&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11918&quot; title=&quot;Allow setting default file layout on root directory at mkfs time&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11918&quot;&gt;LU-11918&lt;/a&gt; tests: modify file system layout in testing&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 30fce57cef946ffcf980c62c6a7d732de503dd07&lt;/p&gt;</comment>
                            <comment id="307305" author="adilger" created="Wed, 14 Jul 2021 03:32:44 +0000"  >&lt;p&gt;According to patch &lt;a href=&quot;https://review.whamcloud.com/35068&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/35068&lt;/a&gt; &quot;&lt;tt&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12390&quot; title=&quot;allow custom filesystem layout for tests&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12390&quot;&gt;&lt;del&gt;LU-12390&lt;/del&gt;&lt;/a&gt; tests: customise mdsrate tests&lt;/tt&gt;&quot; it is possible to specify &quot;&lt;tt&gt;$fs_STRIPEPARAMS&lt;/tt&gt;&quot; to set the default filesystem layout in &lt;tt&gt;check_and_setup_lustre()&lt;/tt&gt;.  However, there is nothing in the current autotest framework that is using this option.&lt;/p&gt;

&lt;p&gt;What is still needed is to push patches that:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;verify each test script will pass with &quot;$fs_STRIPEPARAMS&quot; set to a PFL layout (e.g. &quot;-E 2M -c 1 -S 1M -E eof -c 4&quot; or similar)&lt;/li&gt;
	&lt;li&gt;verify that the test script preserves the filesystem default layout to the end. I &lt;em&gt;think&lt;/em&gt; &lt;tt&gt;sanity.sh&lt;/tt&gt; will currently clobber the filesystem default layout in some subtests and does not correctly restore it via &lt;tt&gt;stack_trap()&lt;/tt&gt;. Those subtests should be fixed to restore the default.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Once all test scripts are passing with a default PFL layout, the next step would be to set a default &lt;tt&gt;fs_STRIPEPARAMS&lt;/tt&gt; value in &lt;tt&gt;init_test_env()&lt;/tt&gt; so this is permanently used, and then (separately) have &lt;tt&gt;mkfs.lustre&lt;/tt&gt; (or first MDT mount of a new filesystem creating &quot;&lt;tt&gt;ROOT/&lt;/tt&gt;&quot;) set a default PFL layout on the root directory (similar to patch &lt;a href=&quot;https://review.whamcloud.com/38553&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/38553&lt;/a&gt; &quot;&lt;tt&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13417&quot; title=&quot;DNE3: mkdir() automatically create remote directory on MDS which has more space&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13417&quot;&gt;&lt;del&gt;LU-13417&lt;/del&gt;&lt;/a&gt; mdd: set default LMV on ROOT&lt;/tt&gt;&quot;).&lt;/p&gt;</comment>
                            <comment id="307306" author="adilger" created="Wed, 14 Jul 2021 03:35:59 +0000"  >&lt;p&gt;One way that &lt;tt&gt;mkfs.lustre&lt;/tt&gt; could set the default layout is directly via setxattr from userspace to the &lt;tt&gt;ROOT/&lt;/tt&gt; directory while it is mounted locally as type ldiskfs.  However, that would not work for ZFS.&lt;/p&gt;</comment>
                            <comment id="398721" author="adilger" created="Fri, 5 Jan 2024 23:54:56 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16904&quot; title=&quot;initial test script to run sanity.sh and sanityn.sh with PFL layout &quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16904&quot;&gt;LU-16904&lt;/a&gt; has added the &lt;tt&gt;sanity-compr.sh&lt;/tt&gt; test script, which is a wrapper that runs &lt;tt&gt;sanity&lt;/tt&gt; and &lt;tt&gt;sanityn&lt;/tt&gt; with a different file layout.  The initial patch landed with a 1-stripe PFL layout &lt;tt&gt;COMPR_EXTRA_LAYOUT=&quot;-E eof -c 1&quot;&lt;/tt&gt; and fixed a number of issues related to that.  Some more work is needed to take this further to allow passing the tests with a more complex PFL layout. &lt;/p&gt;

&lt;p&gt;Once testing with PFL layouts is working, then it should be possible to actually implement the &lt;tt&gt;mkfs.lustre&lt;/tt&gt; support for setting the PFL layout.  The test-framework code should pass the default layout from &lt;tt&gt;$fs_STRIPEPARAMS&lt;/tt&gt; to &quot;&lt;tt&gt;mkfs.lustre --setstripe&lt;/tt&gt;&quot; &lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10120">
                    <name>Blocker</name>
                                                                <inwardlinks description="is blocked by">
                                        <issuelink>
            <issuekey id="53999">LU-11656</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="50077">LU-10465</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="55857">LU-12390</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="45439">LU-9324</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="34363">LU-7723</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="36957">LU-8154</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="76588">LU-16904</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="57575">LU-13058</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="62142">LU-14274</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|i00avb:</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>