Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-7735

No way to revert the "no_primnode" flag on targets

Details

    • Bug
    • Resolution: Fixed
    • Trivial
    • Lustre 2.10.0
    • Lustre 2.6.0, Lustre 2.7.0, Lustre 2.5.3, Lustre 2.8.0
    • 4
    • 9223372036854775807

    Description

      When formatting a target or modifying an existing one with the parameter "--servicenode", the flag no_primnode is set on the target, modifying the way the target is then registered on the MGS to avoid adding the NID of the node actually registering and let only the nids given with --servicenode parameters.

      However, if someone wants to revert to the older behavior with the "--failnode" parameter, the no_primnode flag is never unset, and the primary node NID is never added to the mountdata.

      A trivial fix is to unset the flag when using the "--failnode" parameter.

      I am currently unable to sign in to gerrit, so here is the patch inline:

      diff --git a/lustre/utils/mkfs_lustre.c b/lustre/utils/mkfs_lustre.c
      index 8bf063a..f2f6f53 100644
      --- a/lustre/utils/mkfs_lustre.c
      +++ b/lustre/utils/mkfs_lustre.c
      @@ -394,6 +394,7 @@ int parse_opts(int argc, char *const argv[], struct mkfs_opts *mop,
                               /* Must update the mgs logs */
                               mop->mo_ldd.ldd_flags |= LDD_F_UPDATE;
                               if (opt == 'f') {
      +                               mop->mo_ldd.ldd_flags &= ~LDD_F_NO_PRIMNODE;
                                       failnode_set = 1;
                               } else {
                                       mop->mo_ldd.ldd_flags |= LDD_F_NO_PRIMNODE;
      

      Attachments

        Activity

          [LU-7735] No way to revert the "no_primnode" flag on targets
          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/18304/
          Subject: LU-7735 utils: Allow revert of NO_PRIMNODE
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: 9cb507c6061d4d676de27d0b1b1cb471c1f1982d

          gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/18304/ Subject: LU-7735 utils: Allow revert of NO_PRIMNODE Project: fs/lustre-release Branch: master Current Patch Set: Commit: 9cb507c6061d4d676de27d0b1b1cb471c1f1982d

          Going back to the old behaviour seems to have been overlooked when servicenode was added. I'll add this as a patch.

          utopiabound Nathaniel Clark added a comment - Going back to the old behaviour seems to have been overlooked when servicenode was added. I'll add this as a patch.

          Nathaniel Clark (nathaniel.l.clark@intel.com) uploaded a new patch: http://review.whamcloud.com/18304
          Subject: LU-7735 utils: Allow revert of NO_PRIMNODE
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: ade3ef7cbfbf6a2cf0aa85a3b63ee4e6bdaeb7a4

          gerrit Gerrit Updater added a comment - Nathaniel Clark (nathaniel.l.clark@intel.com) uploaded a new patch: http://review.whamcloud.com/18304 Subject: LU-7735 utils: Allow revert of NO_PRIMNODE Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: ade3ef7cbfbf6a2cf0aa85a3b63ee4e6bdaeb7a4
          pjones Peter Jones added a comment -

          Nathaniel

          Could you please look into this proposed change and see why this was changed in the first place?

          THanks

          Peter

          pjones Peter Jones added a comment - Nathaniel Could you please look into this proposed change and see why this was changed in the first place? THanks Peter
          pjones Peter Jones added a comment -

          pjones Peter Jones added a comment -

          Oops, sorry Peter, I inverted the meaning of severity.
          Of course this can be set to the lowest severity.

          spiechurski Sebastien Piechurski added a comment - Oops, sorry Peter, I inverted the meaning of severity. Of course this can be set to the lowest severity.
          pjones Peter Jones added a comment -

          Sebastien

          Is your intention to make this a Sev 1 - which indicates a production site out of service? Reading the description it does not sound that way, but, if so, which site is affected?

          Thanks

          Peter

          pjones Peter Jones added a comment - Sebastien Is your intention to make this a Sev 1 - which indicates a production site out of service? Reading the description it does not sound that way, but, if so, which site is affected? Thanks Peter

          People

            utopiabound Nathaniel Clark
            spiechurski Sebastien Piechurski
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: