[LUDOC-377] Lustre Manual Bug Report: 25.2.2. Enabling and Tuning Root Squash Created: 06/Jun/17 Updated: 25/Jan/19 Resolved: 25/Jan/19 |
|
| Status: | Resolved |
| Project: | Lustre Documentation |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | Faye Gibbins | Assignee: | Joseph Gmitter (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Epic/Theme: | Lustre-2.8.0 |
| Severity: | 3 |
| Epic: | server |
| Rank (Obsolete): | 9223372036854775807 |
| Description |
|
Hi, I think I’ve found a bug in the manual: https://build.hpdd.intel.com/job/lustre-manual/lastSuccessfulBuild/artifact/lustre_manual.xhtml#dbdoclet.50438221_48757 I’ve included it below in case this is the correct place to report it. If not please let me know and I’ll submit it elsewhere. In section 25.2.2. Enabling and Tuning Root Squash, the bit that says: Root squash parameters can also be changed with the lctl conf_param command. For example: mgs# lctl conf_param testfs.mdt.root_squash="1000:101" mgs# lctl conf_param testfs.mdt.nosquash_nids="*@tcp" Should be IMHO: Root squash parameters can also be changed with the lctl conf_param command. For example: mgs# lctl conf_param mdt.testfs-MDT0000.root_squash="1000:101" mgs# lctl conf_param mdt.testfs-MDT0000.nosquash_nids="*@tcp" Here is an example of me using my version compared to the documentation version using Lustre 2.8 on RHEL 7: 0 edi-vf-1-5:audiodb-MDT0000# lctl get_param mdt.audiodb-MDT0000.root_squash mdt.audiodb-MDT0000.root_squash=0:0 0 edi-vf-1-5:audiodb-MDT0000# lctl set_param mdt.audiodb-MDT0000.root_squash="0:1" mdt.audiodb-MDT0000.root_squash=0:1 0 edi-vf-1-5:audiodb-MDT0000# lctl get_param mdt.audiodb-MDT0000.root_squash mdt.audiodb-MDT0000.root_squash=0:1 0 edi-vf-1-5:audiodb-MDT0000# lctl set_param mdt.audiodb-MDT0000.root_squash="0:0" mdt.audiodb-MDT0000.root_squash=0:0 # Using the documented version. 0 edi-vf-1-5:audiodb-MDT0000# lctl set_param audiodb.mdt.root_squash="0:1" error: set_param: param_path 'audiodb/mdt/root_squash': No such file or directory 0 edi-vf-1-5:audiodb-MDT0000# Yours |
| Comments |
| Comment by Faye Gibbins [ 06/Jun/17 ] |
|
I might be wrong but maybe conf_param should be set_param? |
| Comment by Joseph Gmitter (Inactive) [ 06/Jul/17 ] |
|
There are two ways to setting root_squash: conf_param and set_param. For conf_param, the documetation is correct on how to permanently set it (must be run on the mgs): [root@rh73-mds1 ~]# lctl conf_param testfs.mdt.root_squash="1:0" [ 5260.733978] Lustre: Setting parameter testfs-MDT0000.mdt.root_squash in log testfs-MDT0000 [root@rh73-mds1 ~]# [ 5269.090417] Lustre: testfs-MDT0000: root_squash is set to 1:0 To retrieve the setting, the documentation is lacking. From the mgs, it should be: [root@rh73-mds1 ~]# lctl get_param mdt.*.root_squash mdt.testfs-MDT0000.root_squash=1:0 As you noted, you can also set it temporarily with set_param (or permanent with set_param -P). This is not documented in the manual and the syntax you noted is correct: [root@rh73-mds1 ~]# lctl set_param mdt.testfs-MDT0000.root_squash="1:0" [ 5189.989945] Lustre: testfs-MDT0000: root_squash is set to 1:0 mdt.testfs-MDT0000.root_squash=1:0 [root@rh73-mds1 ~]# lctl get_param mdt.*.root_squash mdt.testfs-MDT0000.root_squash=1:0 |
| Comment by Gerrit Updater [ 06/Jul/17 ] |
|
Joseph Gmitter (joseph.gmitter@intel.com) uploaded a new patch: https://review.whamcloud.com/27954 |
| Comment by Gerrit Updater [ 08/Nov/18 ] |
|
Andreas Dilger (adilger@whamcloud.com) merged in patch https://review.whamcloud.com/27954/ |
| Comment by Joseph Gmitter (Inactive) [ 25/Jan/19 ] |
|
Patch was landed a few months ago. |