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

starting running HSM coordinator should success

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • Lustre 2.15.0
    • None
    • None
    • 9223372036854775807

      The HSM control interface only accept a starting/stopping command for once. The further same command would fail. This behavior is unfriendly to scripts since the script has no idea why exactly the second same command fails.

      By contrast, setting "disabled" would always success. The different behaviors of "disabled", "enabled" and "shutdown" is inconsistent thus confusing.

      # lctl set_param mdt.*.hsm_control=enabled
      mdt.lustre0-MDT0000.hsm_control=enabled
      # lctl set_param mdt.*.hsm_control=enabled
      error: set_param: setting /proc/fs/lustre/mdt/lustre0-MDT0000/hsm_control=enabled: Operation already in progress
      # lctl set_param mdt.*.hsm_control=disabled
      mdt.lustre0-MDT0000.hsm_control=disabled
      # lctl set_param mdt.*.hsm_control=disabled
      mdt.lustre0-MDT0000.hsm_control=disabled
      # lctl set_param mdt.*.hsm_control=shutdown
      mdt.lustre0-MDT0000.hsm_control=shutdown
      # lctl set_param mdt.*.hsm_control=shutdown
      error: set_param: setting /proc/fs/lustre/mdt/lustre0-MDT0000/hsm_control=shutdown: Operation already in progress
      

      Returning success on all redundant starting/stopping commands seems better.

            lixi_wc Li Xi
            lixi_wc Li Xi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: