[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: |
|
||||||||
| 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 |
| Comment by Gerrit Updater [ 27/May/21 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/43720/ |
| Comment by Peter Jones [ 27/May/21 ] |
|
Landed for 2.15 |