Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.10.0
    • Lustre 2.8.0
    • 3
    • 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.
      

      Attachments

        Activity

          [LU-7131] new options for tunefs.lustre
          pjones Peter Jones added a comment -

          Landed for 2.10

          pjones Peter Jones added a comment - Landed for 2.10

          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

          gerrit Gerrit Updater added a comment - 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
          pjones Peter Jones added a comment -

          Emoly

          Could you please review this patch

          Thanks

          Peter

          pjones Peter Jones added a comment - Emoly Could you please review this patch Thanks Peter

          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

          gerrit Gerrit Updater added a comment - 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

          People

            emoly.liu Emoly Liu
            parinay parinay v kondekar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: