<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:23:43 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-9154] MDS Nodemap filset will be clear to empty after add new nodemap</title>
                <link>https://jira.whamcloud.com/browse/LU-9154</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;I have one nodemapA and set fileset by &quot;lctl set_param -P xxxx&quot;.&lt;br/&gt;
The nodemapA fileset in MDS will be clear to empty when do &lt;br/&gt;
&quot;lctl nodemap_add_range --name nodemapA  --range xxx&quot; or &quot;lctl nodemap_add  nodemapB&quot;&lt;br/&gt;
But the nodemapA fileset still exist in MGS. Does anyone have the same problem?   Thanks.&lt;/p&gt;</description>
                <environment>Centos 7.2.3.10.0-327.22.2.el7.x86_64&lt;br/&gt;
Lustre 2.8.59_25_g40e3986&lt;br/&gt;
ZFS 0.6.5.7</environment>
        <key id="44076">LU-9154</key>
            <summary>MDS Nodemap filset will be clear to empty after add new nodemap</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="3">Duplicate</resolution>
                                        <assignee username="emoly.liu">Emoly Liu</assignee>
                                    <reporter username="sebg-crd-pm">sebg-crd-pm</reporter>
                        <labels>
                    </labels>
                <created>Fri, 24 Feb 2017 09:28:35 +0000</created>
                <updated>Thu, 1 Mar 2018 18:39:36 +0000</updated>
                            <resolved>Thu, 1 Mar 2018 18:39:36 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="186159" author="pjones" created="Fri, 24 Feb 2017 22:22:21 +0000"  >&lt;p&gt;Emoly&lt;/p&gt;

&lt;p&gt;Could you please assist with this issue?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="187274" author="sebg-crd-pm" created="Tue, 7 Mar 2017 01:26:21 +0000"  >&lt;p&gt;Does anyone have the same issue?&lt;/p&gt;</comment>
                            <comment id="187300" author="emoly.liu" created="Tue, 7 Mar 2017 06:12:42 +0000"  >&lt;p&gt;Could you show me your commands in details? Thanks.&lt;/p&gt;</comment>
                            <comment id="188365" author="sebg-crd-pm" created="Wed, 15 Mar 2017 03:29:46 +0000"  >&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;test script &amp;#93;&lt;/span&gt;&lt;br/&gt;
echo &quot;create nodemapA&quot;&lt;br/&gt;
pdsh -S -Rssh -w mgs lctl nodemap_add testnodemapA&lt;br/&gt;
sleep 10&lt;br/&gt;
echo &quot;check mds nodemapA&quot;&lt;br/&gt;
pdsh -S -Rssh -w mds lctl get_param nodemap.testnodemapA &lt;br/&gt;
echo &quot;set nodemapA fileset&quot;&lt;br/&gt;
pdsh -S -Rssh -w mgs lctl set_param -P nodemap.testnodemapA.fileset=/testnodemapA&lt;br/&gt;
sleep 10&lt;br/&gt;
echo &quot;check mgs nodemapA fileset&quot;&lt;br/&gt;
pdsh -S -Rssh -w mgs lctl get_param nodemap.testnodemapA.* | grep fileset&lt;br/&gt;
echo &quot;check mds nodemapA fileset&quot;&lt;br/&gt;
pdsh -S -Rssh -w mds lctl get_param nodemap.testnodemapA.* | grep fileset&lt;br/&gt;
echo &quot;create nodemapB&quot;&lt;br/&gt;
pdsh -S -Rssh -w mgs lctl nodemap_add testnodemapB&lt;br/&gt;
sleep 10&lt;br/&gt;
echo &quot;check mgs nodemapA fileset&quot;&lt;br/&gt;
pdsh -S -Rssh -w mgs lctl get_param nodemap.testnodemapA.* | grep fileset&lt;br/&gt;
echo &quot;check mds nodemapA fileset&quot;&lt;br/&gt;
pdsh -S -Rssh -w mds lctl get_param nodemap.testnodemapA.* | grep fileset&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;result&amp;#93;&lt;/span&gt;&lt;br/&gt;
create nodemapA&lt;br/&gt;
check mds nodemapA&lt;br/&gt;
set nodemapA fileset&lt;br/&gt;
check mgs nodemapA fileset&lt;br/&gt;
mgs: nodemap.testnodemapA.fileset=/testnodemapA&lt;br/&gt;
check mds nodemapA fileset&lt;br/&gt;
mds: nodemap.testnodemapA.fileset=/testnodemapA&lt;br/&gt;
create nodemapB&lt;br/&gt;
check mgs nodemapA fileset&lt;br/&gt;
mgs: nodemap.testnodemapA.fileset=/testnodemapA&lt;br/&gt;
check mds nodemapA fileset&lt;br/&gt;
mds: nodemap.testnodemapA.fileset=&lt;/p&gt;

&lt;p&gt;=&amp;gt;the testnodemapA.fileset will be clear to empty &lt;/p&gt;</comment>
                            <comment id="188377" author="emoly.liu" created="Wed, 15 Mar 2017 06:54:10 +0000"  >&lt;p&gt;Here is my local output:&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;[root@centos6-2 tests]# sh lu-9154.sh 
create nodemapA
check mds nodemapA
set nodemapA fileset
check mgs nodemapA fileset
nodemap.testnodemapA.fileset=/testnodemapA
check mds nodemapA fileset
nodemap.testnodemapA.fileset=/testnodemapA
create nodemapB
check mgs nodemapA fileset
nodemap.testnodemapA.fileset=/testnodemapA
check mds nodemapA fileset
nodemap.testnodemapA.fileset=/testnodemapA
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&quot;testnodemapA&quot; is still there. I will try with multiple nodes and the same lustre version to yours(Lustre 2.8.59_25_g40e3986) later.&lt;/p&gt;</comment>
                            <comment id="188744" author="emoly.liu" created="Fri, 17 Mar 2017 08:31:47 +0000"  >&lt;p&gt;Just did a test on multiple nodes. The output of my first run is&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;[root@trevis-73vm6 tests]# sh lu-9154.patch
create nodemapA
check mds nodemapA
set nodemapA fileset
check mgs nodemapA fileset
trevis-73vm3: nodemap.testnodemapA.fileset=
check mds nodemapA fileset
trevis-73vm4: nodemap.testnodemapA.fileset=/testnodemapA
create nodemapB
check mgs nodemapA fileset
trevis-73vm3: nodemap.testnodemapA.fileset=
check mds nodemapA fileset
trevis-73vm4: nodemap.testnodemapA.fileset=

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Then, I found the patch &lt;a href=&quot;http://review.whamcloud.com/18783&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/18783&lt;/a&gt;, which introduced fileset to nodemap, the description says:&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;commit 25420c75e45a91c6131d52a674869d6d30ab36bf
Author: Sebastien Buisson &amp;lt;sbuisson@ddn.com&amp;gt;
Date:   Fri Feb 5 16:44:40 2016 +0100

    LU-7846 nodemap: add fileset info to nodemap
    
    Give the ability to set a fileset information on a nodemap.
    When set, a client pertaining to this nodemap will be allowed to
    mount only the subdirectory represented by this fileset.
    
    Fileset info of nodemap is stored permanently by using
    &apos;lctl set_param -P&apos; commands. It means MDS and OSS will be able to
    retrieve fileset info of nodemap after a restart (when they read
    params llog).
    MGS will not see fileset info after restart, but this does not prevent
    the feature from working.

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;After I restarted mds, I can see fileset info there:&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;[root@trevis-73vm4 ~]# umount /mnt/lustre-mds1
[root@trevis-73vm4 ~]# mount -t lustre -o loop /tmp/lustre-mdt1 /mnt/lustre-mds1
[root@trevis-73vm4 ~]# lctl get_param nodemap.testnodemapA.fileset
nodemap.testnodemapA.fileset=/testnodemapA

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Can you have a try to restart your mds and see if fileset info is there?&lt;/p&gt;</comment>
                            <comment id="188929" author="sebg-crd-pm" created="Mon, 20 Mar 2017 09:19:40 +0000"  >&lt;p&gt;I have tried to restart mds then  get nodemap.testnodemapA.fileset=/testnodemapA after mds started.&lt;/p&gt;

&lt;p&gt;Emoly,  Could you tell me what&apos;s  your lustre version (test nodemap script)? Thanks.&lt;/p&gt;</comment>
                            <comment id="189062" author="emoly.liu" created="Tue, 21 Mar 2017 02:07:35 +0000"  >&lt;p&gt;I used 2.9.53 in my local test and 2.9.0 in multiple nodes test.&lt;/p&gt;</comment>
                            <comment id="189732" author="sebg-crd-pm" created="Mon, 27 Mar 2017 10:21:13 +0000"  >&lt;p&gt;I have test 2.9.0 and it also have the same problem.&lt;br/&gt;
Did you set nodemap.active ? I test it  with &quot;lctl set_param nodemap.active=1&quot;&lt;/p&gt;</comment>
                            <comment id="199442" author="sebg-crd-pm" created="Fri, 16 Jun 2017 11:12:26 +0000"  >&lt;p&gt;Emoly,&lt;/p&gt;

&lt;p&gt;I have set lctl set_param debug=-1 then  test it again.&lt;br/&gt;
Thereis somethiong wrong. (This log get form mds. )  Should I get something else?&lt;/p&gt;

&lt;p&gt;Jun 16 22:01:28 mdsb2 kernel: Lustre: 31848:0:(nodemap_handler.c:1020:nodemap_create()) adding nodemap &apos;nodemap1&apos; to config without default nodemap&lt;br/&gt;
Jun 16 22:01:28 mdsb2 kernel: Lustre: 31848:0:(nodemap_handler.c:1020:nodemap_create()) Skipped 1 previous similar message&lt;br/&gt;
Jun 16 22:05:01 mdsb2 kernel: LustreError: 32302:0:(nodemap_storage.c:404:nodemap_idx_nodemap_update()) cannot add nodemap config to non-existing MGS.&lt;/p&gt;</comment>
                            <comment id="199446" author="emoly.liu" created="Fri, 16 Jun 2017 12:11:39 +0000"  >&lt;p&gt;If possible, please post all the steps you did to reproduce this issue. Thanks.&lt;/p&gt;</comment>
                            <comment id="199669" author="sebg-crd-pm" created="Tue, 20 Jun 2017 03:29:13 +0000"  >&lt;p&gt; &lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;https://jira.whamcloud.com/secure/attachment/27061/27061_nodemap-LU9154.sh&quot; title=&quot;nodemap-LU9154.sh attached to LU-9154&quot;&gt;nodemap-LU9154.sh&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://jira.whamcloud.com/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt;  &lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;https://jira.whamcloud.com/secure/attachment/27062/27062_build-LU9154.sh&quot; title=&quot;build-LU9154.sh attached to LU-9154&quot;&gt;build-LU9154.sh&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://jira.whamcloud.com/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt; &lt;br/&gt;
Hi Emoly,&lt;br/&gt;
I  simplified the my build lustre steps and nodemap test scripts.&lt;br/&gt;
The issue can be reprodced in my site only execute these 2 scripts. &lt;/p&gt;

&lt;p&gt;build-LU9154.sh  &lt;br/&gt;
    create 3 nodes lustre system(based on zfs) , mgs:mdsb1, mds:mdsb2, oss:ossb1&lt;br/&gt;
nodemap-LU915.sh  &lt;br/&gt;
   create nodemapA( set fileset)  then create nodemapB =&amp;gt;mds nodemapA fileset  missing &lt;/p&gt;</comment>
                            <comment id="200192" author="sebg-crd-pm" created="Mon, 26 Jun 2017 09:46:51 +0000"  >&lt;p&gt;Hi Emoly,&lt;br/&gt;
          Is it ok to reproduce this issue by build-LU9154.sh/nodemap-LU915.sh ?&lt;/p&gt;

</comment>
                            <comment id="220294" author="mhaakddn" created="Wed, 7 Feb 2018 01:57:42 +0000"  >&lt;p&gt;&lt;tt&gt;I am seeing this issue in production with a Lustre 2.10.x system&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;ON MDS0: lctl set_param -P nodemap.test.fileset=&apos;/filesystem/test/path&apos;&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;ON ADMIN NODE: cexec -p mds: &apos;lctl get_param nodemap.test.fileset&apos;&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;mds0: }}{{nodemap.test.fileset=/filesystem/test/path&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;mds1: }}{{nodemap.test.fileset=/filesystem/test/path&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;mds2: }}{{nodemap.test.fileset=/filesystem/test/path&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;mds3: }}{{nodemap.test.fileset=/filesystem/test/path&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;ON ADMIN NODE: &lt;tt&gt;cexec -p oss: &apos;lctl get_param nodemap.test.fileset&apos;&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;oss0: }}{{nodemap.test.fileset=/filesystem/test/path&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;oss1: }}{{nodemap.test.fileset=/filesystem/test/path&lt;/tt&gt;&lt;br/&gt;
.............&lt;/p&gt;

&lt;p&gt;ON MDS0: lctl set_param nodemap.active=1&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;ON ADMIN NODE: cexec -p mds: &apos;lctl get_param nodemap.test.fileset&apos;&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;mds0: }}{{nodemap.test.fileset=&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;mds1: }}{{nodemap.test.fileset=&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;mds2: }}{{nodemap.test.fileset=&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;mds3: }}{{nodemap.test.fileset=&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;ON ADMIN NODE: &lt;tt&gt;cexec -p oss: &apos;lctl get_param nodemap.test.fileset&apos;&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;oss0: }}{{nodemap.test.fileset=&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;oss1: }}{{nodemap.test.fileset=&lt;/tt&gt;&lt;br/&gt;
.............&lt;/p&gt;


&lt;p&gt;Hope this helps.&lt;/p&gt;

&lt;p&gt;It looks like its quite broken.&lt;/p&gt;

&lt;p&gt;Also I&apos;m about to lodge another case because setting fileset twice on the same nodemap kills the MGS.&lt;/p&gt;

&lt;p&gt;We found that because we tried to enable nodemaps, it cleared the fileset value and we tried setting it again.&lt;/p&gt;</comment>
                            <comment id="221356" author="sebg-crd-pm" created="Wed, 21 Feb 2018 09:26:43 +0000"  >&lt;p&gt;Hi&#160;&lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=mhaakddn&quot; class=&quot;user-hover&quot; rel=&quot;mhaakddn&quot;&gt;mhaakddn&lt;/a&gt;&#160;,&lt;/p&gt;

&lt;p&gt;*Is there&#160;*any further update?&lt;/p&gt;</comment>
                            <comment id="222019" author="emoly.liu" created="Thu, 1 Mar 2018 05:06:35 +0000"  >&lt;p&gt;This issue is a duplicate of &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10703&quot; title=&quot;All mds Nodemap filset will be cleared when do some nodemap operations (lustre 2.10.3)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10703&quot;&gt;&lt;del&gt;LU-10703&lt;/del&gt;&lt;/a&gt;. I created a patch at &lt;a href=&quot;https://review.whamcloud.com/31450&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/31450&lt;/a&gt; .&lt;/p&gt;</comment>
                            <comment id="222078" author="adilger" created="Thu, 1 Mar 2018 18:39:36 +0000"  >&lt;p&gt;Close as a duplicate of &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10703&quot; title=&quot;All mds Nodemap filset will be cleared when do some nodemap operations (lustre 2.10.3)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10703&quot;&gt;&lt;del&gt;LU-10703&lt;/del&gt;&lt;/a&gt;, since that has a patch.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="50918">LU-10703</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="27062" name="build-LU9154.sh" size="602" author="sebg-crd-pm" created="Tue, 20 Jun 2017 03:14:34 +0000"/>
                            <attachment id="27061" name="nodemap-LU9154.sh" size="535" author="sebg-crd-pm" created="Tue, 20 Jun 2017 03:14:33 +0000"/>
                    </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|hzz4uf:</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>