<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:39:59 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-68] Add information to enable &apos;dirdata&apos; to Lustre manual (Ch 14, Ch 16)</title>
                <link>https://jira.whamcloud.com/browse/LUDOC-68</link>
                <project id="10070" key="LUDOC">Lustre Documentation</project>
                    <description>&lt;p&gt;The Lustre Manual should be updated to inform users about how to enable &quot;dirdata&quot; on an upgraded 1.8-&amp;gt;2.x MDT, once they are sure that they will not be downgrading the MDS to 1.8 again. This will minimize performance impact on newly created files.&lt;/p&gt;

&lt;p&gt;The command should be `tune2fs -O dirdata /dev/&lt;/p&gt;
{mdtdev}`, and I&apos;ve verified that newly created dir will store FID in it.&lt;br/&gt;
&lt;br/&gt;
The need to be able to downgrade from 2.x to 1.8 is only in the case of &quot;simple&quot; upgrade to 2.x that has hit problems and needs to be able to downgrade. If the upgrade has been successful, and then the admin (separately) enables the &quot;dir_data&quot; feature using tune2fs on the filesystem, this should be enough to allow storing FIDs in the directory entries. After that point, the filesystem should not be downgraded to 1.8 anymore.&lt;br/&gt;
&lt;br/&gt;
What definitely should be avoided is any automatic enabling of the &quot;dir_data&quot; feature on the filesystem when it is first mounted, since this will cause problems if there are FIDs stored in the directory entries, then the filesystem is downgraded to 1.8, the FID-in-LMA is deleted upon access (reverting to IGIF for that inode), and then the filesystem is upgraded again. That would cause the FID-in-dirent to contain invalid data that OI scrub and e2fsck will not fix yet.&lt;br/&gt;
&lt;br/&gt;
So, my understanding is that if you are sure there is no need to downgrade to 1.8, it should be possible with 2.1+ to use &quot;tune2fs -O dir_data /dev/{mdtdev}
&lt;p&gt;&quot; to enable this feature, and then newly-created files/links will store the FID in the directory. I don&apos;t know if we have tested this process or not.&lt;/p&gt;

&lt;p&gt;Assuming this is OK, it would then be possible in that case to &quot;refresh&quot; the directory with a script to re-link filenames that are expected to live for a long time, assuming they are not in use, something like:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;lfs find /mnt/lustre/some/dir -type f | &lt;span class=&quot;code-keyword&quot;&gt;while&lt;/span&gt; read F; &lt;span class=&quot;code-keyword&quot;&gt;do&lt;/span&gt;
        FTMP=&lt;span class=&quot;code-quote&quot;&gt;&quot;$F.XXXXXX.$$.$RANDOM&quot;&lt;/span&gt;
        mv &lt;span class=&quot;code-quote&quot;&gt;&quot;$F&quot;&lt;/span&gt; &lt;span class=&quot;code-quote&quot;&gt;&quot;$FTMP&quot;&lt;/span&gt; &amp;amp;&amp;amp; mv &lt;span class=&quot;code-quote&quot;&gt;&quot;$FTMP&quot;&lt;/span&gt; &lt;span class=&quot;code-quote&quot;&gt;&quot;$F&quot;&lt;/span&gt;
done
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;In a later phase of LFSCK, the FID-in-dirent data will be verified and refreshed if missing, but this is not part of the Phase I deliverable.&lt;/p&gt;

&lt;p&gt;This existing behaviour is not a net performance loss in many use cases, since it is prefetching the inode into MDS memory for use as soon as e.g. &quot;ls&quot; does a stat() on the file. There would only be a visible slowdown in the case of e.g. &quot;find&quot; that is not accessing any of the file attributes, and only generating pathnames.&lt;/p&gt;</description>
                <environment>From &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-1248&quot; title=&quot;all mdt_rdpg_* threads busy in osd_ea_fid_get()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-1248&quot;&gt;&lt;strike&gt;LU-1248&lt;/strike&gt;&lt;/a&gt;</environment>
        <key id="15242">LUDOC-68</key>
            <summary>Add information to enable &apos;dirdata&apos; to Lustre manual (Ch 14, Ch 16)</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="cliffw">Cliff White</assignee>
                                    <reporter username="cliffw">Cliff White</reporter>
                        <labels>
                            <label>QContent</label>
                    </labels>
                <created>Mon, 16 Jul 2012 14:29:30 +0000</created>
                <updated>Tue, 8 Oct 2013 19:05:20 +0000</updated>
                            <resolved>Tue, 8 Oct 2013 19:05:20 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>7</watches>
                                                                            <comments>
                            <comment id="54272" author="jlevi" created="Mon, 18 Mar 2013 16:57:03 +0000"  >&lt;p&gt;Cliff,&lt;br/&gt;
This is also part of the Lustre Manual improvement project.&lt;/p&gt;</comment>
                            <comment id="54609" author="linda" created="Thu, 21 Mar 2013 20:56:19 +0000"  >&lt;p&gt;From email sent to Peter Jones from a contact at LLNL...&lt;br/&gt;
&quot;We just got burned by lack of fid documentation.  &lt;a href=&quot;https://jira.whamcloud.com/browse/LUDOC-68&quot; title=&quot;Add information to enable &amp;#39;dirdata&amp;#39; to Lustre manual (Ch 14, Ch 16)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LUDOC-68&quot;&gt;&lt;del&gt;LUDOC-68&lt;/del&gt;&lt;/a&gt; would be&lt;br/&gt;
excellent.  We probably need a section that explains FIDs independant of&lt;br/&gt;
the changelog section.&lt;/p&gt;</comment>
                            <comment id="54616" author="morrone" created="Thu, 21 Mar 2013 22:15:20 +0000"  >&lt;p&gt;We further learned today that the dirdata option (note that there is no underscore in dirdata, as far as I know) doesn&apos;t actually make fid2path work for new files (we at least knew that it wouldn&apos;t work for existing files).  In order for fid2path to work, both dirdata needs to be set &lt;em&gt;and&lt;/em&gt; the entire path to the file in lustre needs to be newly created.&lt;/p&gt;

&lt;p&gt;In other words, there is really no sane way to update an old filesystem to fully work with fids right now, even for new files.  Xyratex&apos;s solution is probably the only way to do it right now.  Some day LFSCK is planned to do it as well, but that is still a long way off.&lt;/p&gt;

&lt;p&gt;But right now you&apos;re basically out of luck.  This all needs to be explained in the manual.&lt;/p&gt;</comment>
                            <comment id="56984" author="spitzcor" created="Wed, 24 Apr 2013 21:27:54 +0000"  >&lt;p&gt;Chris, I don&apos;t think that that is right.  LFSCK 1.5 should be able to bring the working fid2path functionality once a full scrub is complete (or, presumably, the full path has been scrubbed).  It&apos;s landed for 2.4 so it isn&apos;t a long way off, it is eminent!  Your fid2path use case ought to be a part of the test demonstration.  I think it will work.&lt;/p&gt;</comment>
                            <comment id="56986" author="morrone" created="Wed, 24 Apr 2013 21:53:14 +0000"  >&lt;p&gt;My comment was true for all the 2.X before 2.4.  But yes, we hope things are better with 2.4.&lt;/p&gt;</comment>
                            <comment id="61330" author="linda" created="Tue, 25 Jun 2013 19:07:25 +0000"  >&lt;p&gt;Cliff suggests covering this in a separate section in Ch 14 &quot;Lustre Maintenance&quot; (so it appears in the TOC) and then including a xref to this section from Ch 16 &quot;Upgrading Lustre&quot;. It can be done at the time of the upgrade or at a later time. &lt;/p&gt;</comment>
                            <comment id="65472" author="linda" created="Fri, 30 Aug 2013 19:10:37 +0000"  >&lt;p&gt;Andreas suggests subject experts: Di for FIDs, Fan Yong for dirdata&lt;/p&gt;</comment>
                            <comment id="68254" author="linda" created="Thu, 3 Oct 2013 16:18:34 +0000"  >&lt;p&gt;Changes pushed to gerrit and ready for review. &lt;a href=&quot;http://review.whamcloud.com/#/c/7844/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/7844/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="68626" author="linda" created="Tue, 8 Oct 2013 19:05:20 +0000"  >&lt;p&gt;Changes have been merged. Resolving ticket.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="18520">LUDOC-145</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                    <customfield id="customfield_10003" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Business Value</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6.6</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <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|hzvkw7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7146</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>