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

# [NAME](#NAME)

lfs-getsom - list file attributes that are stored on an MDS

# [SYNOPSIS](#SYNOPSIS)

`lfs getsom` \[**-h**] \[**-s**|**-b**|**-f**] *FILE*

# [DESCRIPTION](#DESCRIPTION)

This command lists file attributes that are stored on the MDS. It is called with the full path and file name for a file on the Lustre file system. If no flags are used, then all file attributes stored on the MDS will be shown.

# [OPTIONS](#OPTIONS)

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

Print usage message.

[**-s**](#s)

Only show the size value of the SOM data for a given file.

[**-b**](#b)

Only show the blocks value of the SOM data for a given file.

[**-f**](#f)

Only show the flag value of the SOM data for a given file. Valid flags are:

```
0 - Unknown or no SoM data, must get size from OSTs.
1 - Known strictly correct, FLR or DoM file (SoM guaranteed).
2 - Known stale - was right at some point in the past, but it is known (or likely) to be incorrect now (e.g. opened for write).
4 - Approximate, may never have been strictly correct, need to sync SOM data to achieve eventual consistency.
    
```

# [AVAILABILITY](#AVAILABILITY)

The **lfs getsom** command is part of the [**lustre**(7)](/man/enterprise-packages/lustre/lustre.7) filesystem package since release 2.12.0

# [SEE ALSO](#SEE_ALSO)

[**lfs**(1)](/man/enterprise-packages/lustre/lfs.1), [**llsom\_sync**(8)](/man/enterprise-packages/lustre/llsom_sync.8)

2024-08-15 Lustre

---

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