LFS-RM_ENTRY(8)
π LFS-RM_ENTRY π
okay so bestie, this is lfs-rm_entry (also answers to lfs-rmentry), from the Lustre Utilities crew β¨ and it does exactly one thing: it removes only the filename from a directory. that's it. that's the whole vibe. π
πΈ NAME πΈ
lfs-rm_entry, lfs-rmentry β remove only filename from directory π«Ά
β¨ SYNOPSIS β¨
lfs rm_entry DIRECTORY
lfs rmentry DIRECTORY
π¦ DESCRIPTION π¦
so here's the situation, and it's lowkey a mess π: maybe an MDT is permanently offline, or maybe there's an inconsistency between MDT directory contents and files β like a broken striped directory, the classic π.
in those cases, the lfs rm_entry (or lfs rmentry) command removes only the directory entry name from the parent directory. it does not try to delete the inode corresponding to the filename. nope. not even a little. π
so what happens to that inode? the MDT inode itself β or a local agent inode in the case of DNE remote entries β will still remain on the MDT filesystem, and it will get reconnected to the internal MDT lost+found directory the next time e2fsck(8) runs. the way it just comes back like that?? main character energy fr fr π
and because the MDT inode itself is not deleted, any OST objects referenced by this inode will also not be destroyed β so no space will be released. zero. none. nada. i know. π
SIS. READ THIS. π¨ the main reason you'd use lfs rm_entry is to remove directory entry names that are permanently inaccessible β so you can allow them to be restored from backup, or so applications stop throwing errors when they try to access these names. It should not be used to delete files that are normally accessible. periodt. β
also this command can only be run by the root user (administrator). so if you don't have the permissions, don't even try it, bestie. π
π EXAMPLES π
removing a directory entry that references an inaccessible remote MDT β iconic, brave, necessary:
# lfs rm_entry /mnt/lustre/broken_dir
π AVAILABILITY π
the lfs rm_entry command is part of the lustre(7) filesystem package. it's giving "shipped with the whole family" π«Ά
π SEE ALSO π
that's the whole page, bestie, go forth and clean up those broken entries responsibly π this was Lustre, dated 2025-12-20 β stan, and don't forget to back up first πΈπ β¨
π¦ where this page comes from
- ubuntu stonking: lustre-client-utils 2.17.58+dfsg-0ubuntu2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms