HSM _not only_ small fixes and to do list goes here (LU-3647)

[LU-3828] Default HSM Archive Identifier is not Persistent Created: 23/Aug/13  Updated: 01/Oct/13  Resolved: 01/Oct/13

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

Type: Technical task Priority: Blocker
Reporter: Malcolm Cowe (Inactive) Assignee: John Hammond
Resolution: Fixed Votes: 0
Labels: HSM

Rank (Obsolete): 9891

 Description   

The procfs tuneable parameter that is used to define the default HSM archive ID is cannot be set persistently using lctl conf_param or lctl set_param -P. This is by design and is in part because the "hsm" procfs subtree is not created unless and until the HSM feature is itself activated.

The parameter variable is: mdt.<fsname>-MDT*.hsm.archive_id

Please consider a mechanism whereby the system-wide default for the archive ID is stored persistently by the MGS, as it simplifies administration overhead and makes other features such as server failover behave more predictably.



 Comments   
Comment by Malcolm Cowe (Inactive) [ 23/Aug/13 ]

Original test case:

If I try to change the default archive ID using lctl conf_param instead of lctl set_param, the setting does not change.
Tested as follows:

On mount, default archive is set to 1 and archive commands work as expected (when no archive is specified, default is selected automatically).

Using lctl set_param to change the default works as expected and lfs hsm_archive command picks up the change.

Using lctl hsm_archive with --archive works as expected.

lctl conf_param does not work:

[root@m64-1 /]# lctl set_param mdt.scratch-MDT*.hsm.archive_id=2
mdt.scratch-MDT0000.hsm.archive_id=2
[root@m64-1 /]# lctl get_param mdt.scratch-MDT*.hsm.archive_id
mdt.scratch-MDT0000.hsm.archive_id=2
[root@m64-1 /]# lctl conf_param scratch-MDT*.mdt.hsm.archive_id=1
[root@m64-1 /]# lctl get_param mdt.scratch-MDT*.hsm.archive_id
mdt.scratch-MDT0000.hsm.archive_id=2

I am assuming that this is the path one should use for conf_param. If I use conf_param the setting does not change.

Comment by jacques-charles lafoucriere [ 25/Aug/13 ]

This behavior is also true for all HSM tunable (except hsm_control). A solution is to make the proc hsm directory always visible even if HSM is off. If you agree on it I will work on a patch.

Comment by Malcolm Cowe (Inactive) [ 27/Aug/13 ]

I agree that the feature is useful and would like to see it implemented. If making the hsm procfs directory visible is a straightforward fix, then it has my support but someone else has to make the call.

Comment by jacques-charles lafoucriere [ 27/Aug/13 ]

It is not a "straightforward fix", but the simplest I see. I will work on a patch. Can you validate the other patch, so I will base this new one on the other one (will simplify the review)

Comment by jacques-charles lafoucriere [ 05/Sep/13 ]

Patch at http://review.whamcloud.com/7557

Comment by Peter Jones [ 01/Oct/13 ]

Landed for 2.5.0

Generated at Sat Feb 10 01:37:15 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.