LFS-GETDIRSTRIPE(1)

πŸ“¦ version 2.17.58, in ubuntu stonking

πŸ’– lfs-getdirstripe β€” bestie's guide to peeking at directory layouts πŸ’–

okay so you're here because you want the tea on lfs getdirstripe, part of the Lustre User Utilities. It's the lfs(1) command that spills the layout pattern of a given directory, no cap. 🫢


✨ NAME ✨

lfs-getdirstripe β€” list the layout pattern of a given directory


🌸 SYNOPSIS 🌸

lfs getdirstripe [-cDhHimOrRTvXy]...  DIR...

πŸ’… DESCRIPTION πŸ’…

So basically: this one gets you the layout pattern of striped directories. It's a lfs(1) command, and it's lowkey the sibling of lfs getstripe, except it's specifically for the directory layout, not the file one. Directory vibes only, periodt. πŸŽ€


πŸ‘‘ OPTIONS πŸ‘‘

  • -c, -T, --mdt-count β€” just show how many MDTs the directory is striped across. That's it, that's the whole thing.
  • -D, --default β€” shows the default layout that gets used when new subdirectories are created.
  • -F, --fid β€” show only the 128-bit unique Lustre File Identifier (FID). just the FID, nothing else, she's minimal like that.
  • -h, --help β€” prints the usage message. our little helper 🧚
  • -H, --mdt-hash β€” only show the hash function being used for this directory. It also shows hash flags, like overstriping (>1 stripe per MDT), iykyk.
  • --hex-idx β€” print MDT indexes in hexadecimal instead of decimal. hex girlies rise 🌈
  • -i, -m, --mdt-index β€” only show the master MDT index of the directory.
  • -O, --obd=FSNAME-MDTnnnn_UUID β€” limits the returned directories to the ones with objects on a specific MDT, whose UUID is FSNAME-MDTnnnn_UUID.
  • -r, --recursive β€” the default behavior when you hand it a directory is to list the striping info for all the sub-directories inside that directory. Adding --recursive expands that and recurses into all subdirectories. yes bestie, all the way down 😭
  • -R, --raw β€” print the MDT index in raw format, without converting it to a name.
  • -v, --verbose β€” print verbose info about the directory striping. she's chatty πŸ’¬
  • -X, --max-inherit β€” show the inherit depth of default layout.
  • -y, --yaml β€” show the layout in YAML format for easier parsing. parser-friendly, iconic. ✨
  • --max-inherit-rr β€” show the inherit depth of default layout to roundrobin mkdir.

🌟 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 πŸ¦‹

lfs getdirstripe is part of the lustre(7) filesystem package since release 2.4.0. she's been here a minute, fr fr. πŸ’œ


πŸŽ€ SEE ALSO πŸŽ€


okay that's the whole page, you ate that. this was the Lustre manual, dated 2024-08-15 β€” mwah, go stripe some directories bestie πŸ’…βœ¨πŸ«Ά

πŸ“¦ where this page comes from