OS Manuals

lfs-hsm(1)

hsm_state, hsm_action, hsm_set, hsm_clear - lfs commands used to interact with HSM features

LFS-HSM(1) Lustre User Utilities LFS-HSM(1)

hsm_state, hsm_action, hsm_set, hsm_clear - lfs commands used to interact with HSM features

lfs hsm_state [FILE] ...
lfs hsm_action [FILE] ...
lfs hsm_set [--help] [--norelease] [--noarchive] [--dirty] [--exists] [--archived] [--lost] [--archive-id NUM] [FILE] ...
lfs hsm_clear [--help] [--norelease] [--noarchive] [--dirty] [--exists] [--archived] [--lost] [FILE] ...

These are a set of lfs commands used to interact with Lustre/HSM binding feature.

Display the current HSM flags and archive ID for provided files.
Display the in-progress HSM actions for provided files.
Set provided HSM flags on file list.
Clear the HSM related flags on file list.

Non-privileged user can only change the following flags: norelease, noarchive and dirty.

Print usage message.
File should never be released. File data will stay in Lustre even if a copy exists in HSM backend.
File should never be archived. Useful if this is a temporary file, for example.
File content is not in sync with HSM backend. File should be archived again. (root only)
A file copy exists in HSM backend. Useful mostly for debugging. (root only)
An up-to-date file copy exists in HSM backend. Useful mostly for debugging. (root only)
File copy in HSM backend is not usable anymore and file could not be restored. It should be archived again. (root only)
Set archive number identifier to value NUM. If archive-id is 0 or option is not provided, then default identifier 0 is used and means no identifier change.

Display current HSM flag for foo:

# lfs hsm_state /mnt/lustre/foo
/mnt/lustre/foo: (0x0000000b) exists dirty archived, archive_id: 1

Force a file to be considered as modified in lustre (dirty):

# lfs hsm_set --dirty /mnt/lustre/motd

Written by Aurelien Degremont.

lfs hsm_action, lfs hsm_clear, lfs hsm_set and lfs hsm_state are part of the lustre(7) filesystem package. lfs hsm_action was added in release 1.7.0. lfs hsm_clear was added in release 2.4.0. lfs hsm_set and lfs hsm_state were added in release 2.0.0.

lfs(1)

2024-08-30 Lustre

lustre 2.17.59-r1 · enterprise-packages · ingested 2026-10-02