[LU-7131] new options for tunefs.lustre Created: 10/Sep/15  Updated: 30/Mar/17  Resolved: 30/Mar/17

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.8.0
Fix Version/s: Lustre 2.10.0

Type: Bug Priority: Minor
Reporter: parinay v kondekar (Inactive) Assignee: Emoly Liu
Resolution: Fixed Votes: 0
Labels: patch

Issue Links:
Related
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Sometimes it requires to modify lustre parameters in a batch job, for example High Speed Network (HSN) (re)configuration requires to change MGS and failover NIDs, and AD support adds/replaces mdt.identity_upcall option.
Currently the only option is to read all options already applied to a target, modify this list externally, then write them back with --erase-params flag. It's fine to do that for a single target update, but mass updates require non-trivial workarounds.
I propose to add the following option to tunefs.lustre:

--replace-param - it will replace or add parameters given in the command line, keeping the rest of them unchanged
The other useful option may be "--erase-param", with removes parameter that follows from the target.

--param ... - adds a parameter, possibly leaving multiple copies (may have "--add-param" alias)
--replace-param ... sets parameter, removing all previous values
--erase-param ... - removes parameter, keeping the rest

--replace-param p=v1 --param p=v2 should lead to two values saved.


 Comments   
Comment by Gerrit Updater [ 10/Sep/15 ]

Parinay Kondekar (parinay.kondekar@seagate.com) uploaded a new patch: http://review.whamcloud.com/16359
Subject: LU-7131 utils: add erase-param change param in tunefs.lustre
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 01a3cc3a4b6f71d2c3dfa249bae8e4b33117bd0f

Comment by Peter Jones [ 14/Jul/16 ]

Emoly

Could you please review this patch

Thanks

Peter

Comment by Gerrit Updater [ 30/Mar/17 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/16359/
Subject: LU-7131 utils: add "--erase-param" option to tunefs.lustre
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 107bf3389aed435c7148463817984af1a22200e7

Comment by Peter Jones [ 30/Mar/17 ]

Landed for 2.10

Generated at Sat Feb 10 02:06:15 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.