[LU-14689] starting running HSM coordinator should success Created: 17/May/21  Updated: 21/Jan/22  Resolved: 27/May/21

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.15.0

Type: Improvement Priority: Minor
Reporter: Li Xi Assignee: Li Xi
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Duplicate
is duplicated by LU-11374 setting mdt.*.hsm_control=enabled sho... Resolved
Rank (Obsolete): 9223372036854775807

 Description   

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.



 Comments   
Comment by Gerrit Updater [ 17/May/21 ]

Li Xi (lixi@ddn.com) uploaded a new patch: https://review.whamcloud.com/43720
Subject: LU-14689 hsm: starting running HSM coordinator should success
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 03de8cf404498ddd6bd2d4a77f92334f2e53b390

Comment by Gerrit Updater [ 27/May/21 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/43720/
Subject: LU-14689 hsm: starting running HSM coordinator should success
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: dda7ceef26d0ee96636ceaa09e1f7d2ce32d5da0

Comment by Peter Jones [ 27/May/21 ]

Landed for 2.15

Generated at Sat Feb 10 03:11:55 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.