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

# [NAME](#NAME)

lfs-getdirstripe - list the layout pattern of a given directory

# [SYNOPSIS](#SYNOPSIS)

`lfs getdirstripe` \[**-cDhHimOrRTvXy**]... *DIR*...

# [DESCRIPTION](#DESCRIPTION)

Get the layout pattern of striped directories. This [**lfs**(1)](/man/enterprise-packages/lustre/lfs.1) command is similar to **lfs getstripe**, but is used for the directory layout.

# [OPTIONS](#OPTIONS)

[**-c**, **-T**, **--mdt-count**](#c)

Only show the number of MDTs the directory is striped across.

[**-D**, **--default**](#D)

Show the default layout used when creating new subdirectories.

[**-F**, **--fid**](#F)

Show only the 128-bit unique Lustre File Identifier (FID).

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

Print usage message.

[**-H**, **--mdt-hash**](#H)

Only show the hash function being used for this directory. Also shows hash flags, such as overstriping (&gt;1 stripe per MDT).

[**--hex-idx**](#hex-idx)

Print MDT indexes in hexadecimal rather than decimal.

[**-i**, **-m**, **--mdt-index**](#i)

Only show the master MDT index of the directory.

[**-O**, **--obd**=*FSNAME-MDTnnnn\_UUID*](#O)

Limit the returned directories to those with objects on a specific MDT, whose UUID is *FSNAME-MDTnnnn\_UUID.*

[**-r**, **--recursive**](#r)

The default behavior when a directory is specified is to list the striping information for all sub-directories within the specified directory. This can be expanded with **--recursive**, which will recurse into all subdirectories.

[**-R**, **--raw**](#R)

Print MDT index in raw format without converting to a name.

[**-v**, **--verbose**](#v)

Print verbose information about the directory striping.

[**-X**, **--max-inherit**](#X)

Show the inherit depth of default layout.

[**-y**, **--yaml**](#y)

Show the layout in YAML format for easier parsing.

[**--max-inherit-rr**](#max-inherit-rr)

Show the inherit depth of default layout to roundrobin mkdir.

# [EXAMPLES](#EXAMPLES)

List the striping information of sub-directories, that are located on MDT1, under **/mnt/lustre/dir1:**

```
# lfs getdirstripe -O lustre-MDT0001_UUID -r /mnt/lustre/dir1
```

# [AVAILABILITY](#AVAILABILITY)

**lfs getdirstripe** is part of the [**lustre**(7)](/man/enterprise-packages/lustre/lustre.7) filesystem package since release 2.4.0

# [SEE ALSO](#SEE_ALSO)

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

2024-08-15 Lustre

---

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