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

# [NAME](#NAME)

lfs-heat\_get, lfs-heat\_set - commands used to interact with file heat features

# [SYNOPSIS](#SYNOPSIS)

`lfs heat_get` *FILE*...

`lfs heat_set` \[**--help**|**-h**] \[**--clear**|**-c**] \[**--on**|**-O**] \[**--off**|**-o**] *FILE*...

# [DESCRIPTION](#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** gets the file heat on the file list. **lfs heat\_set** sets the provided file with heat flags on the file list.

# [OPTIONS](#OPTIONS)

[**-c**, **--clear**](#c)

Clear file heat on given files.

[**-h**, **--help**](#h)

Print usage message.

[**-o**, **--off**](#o)

Turn off file heat on given files.

[**-O**, **--on**](#O)

Turn on file heat on given files.

# [EXAMPLES](#EXAMPLES)

Turn on file heat support for the Lustre filesystem:

```
# lctl set_param llite.$FSNAME*.file_heat=1
```

Turn 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
```

# [AVAILABILITY](#AVAILABILITY)

The **lfs heat\_get** and **lfs heat\_set** commands are part of the [**lustre**(7)](/man/enterprise-packages/lustre/lustre.7) filesystem package since release 2.13.0

# [SEE ALSO](#SEE_ALSO)

[**lfs**(1)](/man/enterprise-packages/lustre/lfs.1), [**lustre**(7)](/man/enterprise-packages/lustre/lustre.7)

2024-08-30 Lustre

---

Document: lfs-heat_set(1) from lustre 2.17.59-r2 (Chainguard OS)
Source: https://github.com/lustre/lustre-release
