lfs-heat(1)

NAME
lfs-heat_get, lfs-heat_set - commands used to interact with file heat features

SYNOPSIS
lfs heat_get|heat_set <FILE...>

DESCRIPTION
These are a set of lfs commands used to interact with Lustre file heat feature. Currently file heat is only stored in memory with file inode, it might be reset to be zero at any time with the release of the inode due to memory reclaim.

lfs heat_get <FILE ...>
    Get file heat on file list.

lfs heat_set [--clear|-c] [--off|-o] [--on|-O] <FILE ...>
    Set provided file heat flags on file list.

OPTIONS

--clear|-c
    Clear file heat on given files.

--off|-o
    Turn off file heat on given files.

--on|-O
    Turn on file heat on given files.

EXAMPLES

Turn on file heat support for the Lustre filesystem:
    $ lctl set_param llite.$FSNAME*.file_heat=1

Trun off file heat support for the Lustre filesystem:
    $ lctl set_param llite.$FSNAME*.file_heat=0

Display current file heat for foo:
    $ lfs heat_get /mnt/lustre/foo
    flags: 0
    readsample: 0
    writesample: 16
    readbyte: 0
    writebyte: 16777216

Clear the file heat for foo:
    $ lfs heat_set -c /mnt/lustre/foo

Turn off file heat for foo:
    $ lfs heat_set -o /mnt/lustre/foo

Turn on file heat for foo:
    $ lfs heat_set -O /mnt/lustre/foo

AUTHOR
The lfs heat command is part of the Lustre(7) filesystem.

SEE ALSO
lfs(1) lustre(7)