<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:18:18 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-15437] setparam to modify fldb</title>
                <link>https://jira.whamcloud.com/browse/LU-15437</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;extend procfs to let lctl set_param add FLDB entries:&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;
[root@tmp tests]# lctl set_param fld.srv-lustre-MDT0000.fldb=[0x0000000280000400-0x0000000290000400]:0:mdt
fld.srv-lustre-MDT0000.fldb=[0x0000000280000400-0x0000000290000400]:0:mdt
[root@tmp tests]# lctl set_param fld.srv-lustre-MDT0000.fldb=[0x00000002a0000400-0x00000002b0000400]:2:ost
fld.srv-lustre-MDT0000.fldb=[0x00000002a0000400-0x00000002b0000400]:2:ost
[root@tmp tests]# lctl get_param fld.*.fldb
fld.srv-lustre-MDT0000.fldb=
[0x000000000000000c-0x0000000100000000]:0:mdt
[0x0000000200000002-0x0000000200000003]:0:mdt
[0x0000000200000007-0x0000000200000008]:0:mdt
[0x0000000200000400-0x0000000240000400]:0:mdt
[0x0000000280000400-0x0000000290000400]:0:mdt
[0x00000002a0000400-0x00000002b0000400]:2:ost
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="67924">LU-15437</key>
            <summary>setparam to modify fldb</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="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="bzzz">Alex Zhuravlev</reporter>
                        <labels>
                    </labels>
                <created>Tue, 11 Jan 2022 17:12:08 +0000</created>
                <updated>Mon, 21 Feb 2022 19:11:41 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="322347" author="gerrit" created="Tue, 11 Jan 2022 17:15:00 +0000"  >&lt;p&gt;&quot;Alex Zhuravlev &amp;lt;bzzz@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/46042&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/46042&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15437&quot; title=&quot;setparam to modify fldb&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15437&quot;&gt;LU-15437&lt;/a&gt; fld: extend procfs to allow fldb manipulations&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 8b938c541f844e0778e95ff6bf5d1095bb3b2c35&lt;/p&gt;</comment>
                            <comment id="322409" author="adilger" created="Wed, 12 Jan 2022 03:48:46 +0000"  >&lt;p&gt;I realized that there is &lt;b&gt;already&lt;/b&gt; a way to recover the FLDB file with the existing code, since patch &lt;a href=&quot;http://review.whamcloud.com/7027&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/7027&lt;/a&gt; &quot;&lt;tt&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-3565&quot; title=&quot;HSM: Allow specifying minimum FID sequence at format time&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-3565&quot;&gt;&lt;del&gt;LU-3565&lt;/del&gt;&lt;/a&gt; mdt: a new param to allocate sequences&lt;/tt&gt;&quot; was landed in v2_4_54.&lt;/p&gt;

&lt;p&gt;The code is confusing because there is &quot;&lt;tt&gt;lustre/fid/lproc_fid.c&lt;/tt&gt;&quot; which is the &lt;tt&gt;seq.ctl-&amp;#42;.fldb&lt;/tt&gt; SEQ controller, and a separate &quot;&lt;tt&gt;lustre/fld/lproc_fld.c&lt;/tt&gt;&quot; which is the individual &lt;tt&gt;fld.srv-&amp;#42;.fldb&lt;/tt&gt; SEQ servers (and cannot be written without your patch).&lt;/p&gt;

&lt;p&gt;The other thing that is broken is that &lt;tt&gt;seq.ctl-&amp;#42;.fldb&lt;/tt&gt; &lt;b&gt;prints&lt;/b&gt; an entry like:&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; [0x0000000200000400-0x0000000240000400]:0:mdt
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;but &lt;b&gt;reads&lt;/b&gt; an entry like:&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; [0x0000000200000400-0x0000000240000400):0:mdt
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;so it isn&apos;t possible to directly restore an existing &lt;tt&gt;fldb&lt;/tt&gt; backup.  Also, it must be written one entry at a time and in seq order.  I&apos;m working on a patch to fix that to be symmetrical.&lt;/p&gt;</comment>
                            <comment id="322510" author="adilger" created="Wed, 12 Jan 2022 21:25:54 +0000"  >&lt;p&gt;It also &lt;em&gt;appears&lt;/em&gt; that there is a way to change the allocation range for a target, by writing:&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;mds# lctl get_param seq.srv-testfs-MDT0000.space
[0x200000bd0-0x240000000]
mds# lctl set_param seq.srv-testfs-MDT0000.space=&quot;[0x201000000-0x240000000]&quot;
seq.srv-testfs-MDT0000.space=[0x201000000-0x240000000]
mds# lctl get_param seq.srv-testfs-MDT0000.space
[0x201000000-0x240000000]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;so this &lt;b&gt;looks&lt;/b&gt; like it works, but in fact it does not affect sequence allocation for the current mount, nor does it modify the on-disk &lt;tt&gt;seq_srv&lt;/tt&gt; file, whether the client and/or server are remounted:&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;client# mount -t lustre centos7:/testfs /mnt/testfs2
touch /mnt/testfs2/foo; lfs path2fid /mnt/testfs/foo
[0x200000bd4:0x1:0x0]
mds# umount /mnt/testfs-mds2; mount -t lustre /dev/mapper/mds1_flakey /mnt/testfs-mds2
mds# lctl get_param seq.srv-testfs-MDT0000.space
[0x2000013a0-0x240000000]
client# umount /mnt/testfs2; mount -t lustre centos7:/testfs /mnt/testfs2
rm /mnt/testfs2/foo; touch /mnt/testfs2/foo; lfs path2fid /mnt/testfs/foo
[0x2000013a0:0x1:0x0]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="322532" author="adilger" created="Thu, 13 Jan 2022 00:54:04 +0000"  >&lt;p&gt;Note also that if the on-disk &lt;tt&gt;seq_srv&lt;/tt&gt; value is wrong this triggers an &lt;tt&gt;LASSEERT&lt;/tt&gt; from the on-disk data (which happened to me as I was testing things), which isn&apos;t helpful.  Better to return an error and fail the mount:&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;LustreError: 18161:0:(fid_handler.c:579:seq_server_init()) ASSERTION( lu_seq_range_is_sane(&amp;amp;seq-&amp;gt;lss_space) ) failed: 
[21797.990017] LustreError: 18161:0:(fid_handler.c:579:seq_server_init()) LBUG
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="19705">LU-3565</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="67826">LU-15414</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="68780">LU-15580</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|i02ee7:</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>