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

changelog_mask modifications from default do not persist across MDT restart

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • Lustre 2.9.0
    • None
    • 3
    • 9223372036854775807

    Description

      If the changelog_mask is updated from the default, e.g. by running on MGS:
      lctl conf_param snx11155-MDT0000.changelog_mask=+CLOSE
      The mask change is picked up by the MDS, but on MDS restart (e.g. on failover of MDT), the updated flag is not preserved. The changelog_mask reverts to its original setting.

      lctl set_param -P command stores options to params file. This options
      are aplied in server_start_targets during target mount. At least
      changelog apply default options during initialization. So it reset
      options applied by set_param -P.

      Params log file processing should be moved after device initialization.
      So new parameters aplied after default.

      How to recreate:

      lctl get_param mdd.*.changelog_mask
      testfs.changelog_mask=
      MARK CREAT MKDIR HLINK SLINK MKNOD UNLNK RMDIR RENME RNMTO OPEN  LYOUT TRUNC SATTR XATTR HSM MTIME CTIME 
      lctl conf_param testfs-MDT0000.mdd.changelog_mask='MARK CREAT MKDIR HLINK SLINK MKNOD UNLNK RMDIR RENME RNMTO OPEN CLOSE LYOUT TRUNC SATTR XATTR HSM MTIME CTIME'
      lctl get_param mdd.*.changelog_mask
      testfs-MDT0000.changelog_mask=
      MARK CREAT MKDIR HLINK SLINK MKNOD UNLNK RMDIR RENME RNMTO OPEN CLOSE LYOUT TRUNC SATTR XATTR HSM MTIME CTIME
      #restart mdt
      lctl get_param mdd.*.changelog_mask
      MARK CREAT MKDIR HLINK SLINK MKNOD UNLNK RMDIR RENME RNMTO OPEN LYOUT TRUNC SATTR XATTR HSM MTIME CTIME
      

      Attachments

        Activity

          People

            niu Niu Yawei (Inactive)
            artem_blagodarenko Artem Blagodarenko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: