[LU-9154] MDS Nodemap filset will be clear to empty after add new nodemap Created: 24/Feb/17 Updated: 01/Mar/18 Resolved: 01/Mar/18 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | sebg-crd-pm (Inactive) | Assignee: | Emoly Liu |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Centos 7.2.3.10.0-327.22.2.el7.x86_64 |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Severity: | 3 | ||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||
| Description |
|
I have one nodemapA and set fileset by "lctl set_param -P xxxx". |
| Comments |
| Comment by Peter Jones [ 24/Feb/17 ] |
|
Emoly Could you please assist with this issue? Thanks Peter |
| Comment by sebg-crd-pm (Inactive) [ 07/Mar/17 ] |
|
Does anyone have the same issue? |
| Comment by Emoly Liu [ 07/Mar/17 ] |
|
Could you show me your commands in details? Thanks. |
| Comment by sebg-crd-pm (Inactive) [ 15/Mar/17 ] |
|
[test script ] [result] =>the testnodemapA.fileset will be clear to empty |
| Comment by Emoly Liu [ 15/Mar/17 ] |
|
Here is my local output: [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 "testnodemapA" is still there. I will try with multiple nodes and the same lustre version to yours(Lustre 2.8.59_25_g40e3986) later. |
| Comment by Emoly Liu [ 17/Mar/17 ] |
|
Just did a test on multiple nodes. The output of my first run is [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= Then, I found the patch http://review.whamcloud.com/18783, which introduced fileset to nodemap, the description says: commit 25420c75e45a91c6131d52a674869d6d30ab36bf
Author: Sebastien Buisson <sbuisson@ddn.com>
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
'lctl set_param -P' 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.
After I restarted mds, I can see fileset info there: [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 Can you have a try to restart your mds and see if fileset info is there? |
| Comment by sebg-crd-pm (Inactive) [ 20/Mar/17 ] |
|
I have tried to restart mds then get nodemap.testnodemapA.fileset=/testnodemapA after mds started. Emoly, Could you tell me what's your lustre version (test nodemap script)? Thanks. |
| Comment by Emoly Liu [ 21/Mar/17 ] |
|
I used 2.9.53 in my local test and 2.9.0 in multiple nodes test. |
| Comment by sebg-crd-pm (Inactive) [ 27/Mar/17 ] |
|
I have test 2.9.0 and it also have the same problem. |
| Comment by sebg-crd-pm (Inactive) [ 16/Jun/17 ] |
|
Emoly, I have set lctl set_param debug=-1 then test it again. Jun 16 22:01:28 mdsb2 kernel: Lustre: 31848:0:(nodemap_handler.c:1020:nodemap_create()) adding nodemap 'nodemap1' to config without default nodemap |
| Comment by Emoly Liu [ 16/Jun/17 ] |
|
If possible, please post all the steps you did to reproduce this issue. Thanks. |
| Comment by sebg-crd-pm (Inactive) [ 20/Jun/17 ] |
|
nodemap-LU9154.sh build-LU9154.sh |
| Comment by sebg-crd-pm (Inactive) [ 26/Jun/17 ] |
|
Hi Emoly, |
| Comment by Malcolm Haak - NCI (Inactive) [ 07/Feb/18 ] |
|
I am seeing this issue in production with a Lustre 2.10.x system ON MDS0: lctl set_param -P nodemap.test.fileset='/filesystem/test/path' ON ADMIN NODE: cexec -p mds: 'lctl get_param nodemap.test.fileset' ON ADMIN NODE: cexec -p oss: 'lctl get_param nodemap.test.fileset' ON MDS0: lctl set_param nodemap.active=1 ON ADMIN NODE: cexec -p mds: 'lctl get_param nodemap.test.fileset' ON ADMIN NODE: cexec -p oss: 'lctl get_param nodemap.test.fileset' Hope this helps. It looks like its quite broken. Also I'm about to lodge another case because setting fileset twice on the same nodemap kills the MGS. We found that because we tried to enable nodemaps, it cleared the fileset value and we tried setting it again. |
| Comment by sebg-crd-pm (Inactive) [ 21/Feb/18 ] |
|
Hi mhaakddn , *Is there *any further update? |
| Comment by Emoly Liu [ 01/Mar/18 ] |
|
This issue is a duplicate of |
| Comment by Andreas Dilger [ 01/Mar/18 ] |
|
Close as a duplicate of |