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

lctl set_param -d -P mdt.<FSname>-MDT0000.hsm_control, returns a false error when default already set

Details

    • Bug
    • Resolution: Fixed
    • Major
    • Lustre 2.6.0
    • Lustre 2.5.0, Lustre 2.6.0
    • None
    • 3
    • 11973

    Description

      On a MDS :

      [root@mds ~]# dmesg -c > /dev/null
      [root@mds ~]# lctl set_param -P mdt.lustre-MDT0000.hsm_control=enabled
      [root@mds ~]# dmesg
      Lustre: Setting parameter general.mdt.lustre-MDT0000.hsm_control in log params
      Lustre: MGS: non-config logname received: params
      Lustre: Skipped 13 previous similar messages
      LustreError: 3043:0:(mdt_coordinator.c:950:mdt_hsm_cdt_start()) lustre-MDT0000: Coordinator already started
      [root@mds ~]# lctl set_param -d -P mdt.lustre-MDT0000.hsm_control
      [root@mds ~]# dmesg
      Lustre: Setting parameter general.mdt.lustre-MDT0000.hsm_control in log params
      Lustre: MGS: non-config logname received: params
      Lustre: Skipped 13 previous similar messages
      LustreError: 3043:0:(mdt_coordinator.c:950:mdt_hsm_cdt_start()) lustre-MDT0000: Coordinator already started
      Lustre: Disabling parameter general.mdt.lustre-MDT0000.hsm_control in log params
      [root@mds ~]# lctl set_param -d -P mdt.lustre-MDT0000.hsm_control
      error: executing set_param: Success
      [root@mds ~]# dmesg
      Lustre: Setting parameter general.mdt.lustre-MDT0000.hsm_control in log params
      Lustre: MGS: non-config logname received: params
      Lustre: Skipped 13 previous similar messages
      LustreError: 3043:0:(mdt_coordinator.c:950:mdt_hsm_cdt_start()) lustre-MDT0000: Coordinator already started
      Lustre: Disabling parameter general.mdt.lustre-MDT0000.hsm_control in log params
      Lustre: Disabling parameter general.mdt.lustre-MDT0000.hsm_control in log params
      LustreError: 3051:0:(mgs_handler.c:744:mgs_iocontrol()) MGS: setparam err: rc = 1
      [root@mds ~]# 
      

      This seem to come from the wrong interpretation of rc=1 being returned from mgs_modify() when no config-llog record modification occured (!rc && !mml->mml_modified) in llog_process().

      Will provide a patch soon.

      Attachments

        Activity

          [LU-4374] lctl set_param -d -P mdt.<FSname>-MDT0000.hsm_control, returns a false error when default already set

          Patch landed to Master.

          jlevi Jodi Levi (Inactive) added a comment - Patch landed to Master.

          Patch re-based and latest comments addressed in patch-set 6 of http://review.whamcloud.com/8567.

          bfaccini Bruno Faccini (Inactive) added a comment - Patch re-based and latest comments addressed in patch-set 6 of http://review.whamcloud.com/8567 .

          Reviewers ok, waiting for patch to land now.

          bfaccini Bruno Faccini (Inactive) added a comment - Reviewers ok, waiting for patch to land now.

          New patch-set #2 submitted to fix issue but also address comments from J-C.

          bfaccini Bruno Faccini (Inactive) added a comment - New patch-set #2 submitted to fix issue but also address comments from J-C.

          Patch local testing does not show any more false error/msg when no config-llog update occurs because default/value is already set.

          bfaccini Bruno Faccini (Inactive) added a comment - Patch local testing does not show any more false error/msg when no config-llog update occurs because default/value is already set.

          Issue has been discovered during LU-4065 analysis.
          Patch is at http://review.whamcloud.com/8567.

          bfaccini Bruno Faccini (Inactive) added a comment - Issue has been discovered during LU-4065 analysis. Patch is at http://review.whamcloud.com/8567 .

          People

            bfaccini Bruno Faccini (Inactive)
            bfaccini Bruno Faccini (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: