[LU-1203] When upgrading from Lustre 1.8 to 2.1, if the parameter root_squash is set, Lustre throws an error and denies mounting the filesystem. It's necessary to completely delete the parameter Created: 12/Mar/12  Updated: 16/Apr/13  Resolved: 27/Sep/12

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.1.0, Lustre 2.2.0, Lustre 2.3.0, Lustre 2.1.2
Fix Version/s: Lustre 2.3.0, Lustre 2.4.0, Lustre 2.1.4

Type: Bug Priority: Minor
Reporter: Antonio Sanz Assignee: Jian Yu
Resolution: Fixed Votes: 0
Labels: migration, root_squash,, writeconf
Environment:

Scientific Linux 5.5 (servers), Scientific Linux 5.5 & 6.2 (clients)


Issue Links:
Related
is related to LU-2308 class_process_config() prints confusi... Resolved
Severity: 3
Rank (Obsolete): 4459

 Description   

When upgrading from Lustre 1.8 to 2.1, if the parameter rootsquash is set, Lustre throws an error and denies mounting the filesystem. This is the error from the MDS logs:

Mar 7 20:03:35 mds01 kernel: LustreError: 6610:0:(obd_config.c:1140:class_process_proc_param()) home-MDT0000: unknown param rootsquash=99:99
Mar 7 20:03:35 mds01 kernel: LustreError: 6610:0:(obd_config.c:1361:class_config_llog_handler()) Err -38 on cfg command:
Mar 7 20:03:35 mds01 kernel: Lustre: cmd=cf00f 0:home-MDT0000 1:mdt.rootsquash=99:99
Mar 7 20:03:35 mds01 kernel: LustreError: 15c-8: MGC172.16.4.3 at tcp: The configuration from log 'home-MDT0000' failed (-38). This may be the result of communication errors between this node and the MGS, a bad configuration, or other errors. See the syslog for more information.
Mar 7 20:03:35 mds01 kernel: LustreError: 6124:0:(obd_mount.c:1192:server_start_targets()) failed to start server home-MDT0000: -38
Mar 7 20:03:35 mds01 kernel: LustreError: 6124:0:(obd_mount.c:1723:server_fill_super()) Unable to start targets: -38
Mar 7 20:03:35 mds01 kernel: Lustre: Failing over home-MDT0000

We were able to overcome this using tunefs.lustre with the option --writeconf added. This should be managed automatically (ideally, migrating the configuration) or at least, documented.



 Comments   
Comment by Andreas Dilger [ 12/Mar/12 ]

I agree that this should be handled internally to the MDT code in mdt_process_config() by renaming the parameter. The new parameter is called "mdt.root_squash" (note underscore).

This was done similarly for the quota configuration in LU-110 (http://review.whamcloud.com/354).

Comment by Peter Jones [ 19/Apr/12 ]

YuJian

Could you please look into this one?

Thanks

Peter

Comment by Jian Yu [ 04/May/12 ]

The old "mdt.nosquash_nid" parameter also needs to be renamed to "mdt.nosquash_nids".

Comment by Jian Yu [ 08/May/12 ]

Patch for master branch: http://review.whamcloud.com/2680

Comment by Jian Yu [ 28/Jun/12 ]

Patch for master branch: http://review.whamcloud.com/2680

The above patch was landed on master branch.

Here is the patch for b2_1 branch: http://review.whamcloud.com/3237.

Comment by Jian Yu [ 14/Jul/12 ]

The patches have been landed on master and b2_1 branches.

The remaining work on this ticket is to improve the patch on master branch to handle more parameters as per the suggestion from Andreas on http://review.whamcloud.com/3237 :

File lustre/mdt/mdt_handler.c
Line 4779: strlen(CFG_NOSQUASH_NID_OLD)) == 0 &&
If this list gets any longer (which I suspect it will, due to Di's patch http://review.whamcloud.com/1418 to split the MDT thread handling) then this should be modified to use an array of { "old", "new" } parameters, and if "new" is NULL then the parameter is obsolete and discarded. Then, the above code will just be a loop comparing the parameter against each "old" entry, and ending the loop if it matched, or "old" is NULL.

I don't insist on this today, but since the code is already being changed, and will need to change again in the near future, it would be better to just get it right for the long term.

Comment by Jian Yu [ 31/Aug/12 ]

The remaining work on this ticket is to improve the patch on master branch to handle more parameters as per the suggestion from Andreas.

Patch for master branch: http://review.whamcloud.com/3836

Comment by Jian Yu [ 06/Sep/12 ]

Patch for b2_1 branch: http://review.whamcloud.com/3900

The one for master branch has been landed and also cherry-picked on b2_3 branch.

Comment by Jodi Levi (Inactive) [ 27/Sep/12 ]

Please reopen ticket if there is additional work needed.

Generated at Sat Feb 10 01:14:29 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.