1 .TH LFS-RMENTRY 8 2017-07-25 "Lustre" "Lustre Utilities"
3 lfs-rmentry \- remove only filename from directory
5 .B lfs rmentry <FILENAME|DIRECTORY>
7 In cases where an MDT is permanently offline, or if there is an inconsistency
8 between MDT directory contents and files (e.g. broken striped directory), the
12 the filename entry from a directory, but does not try to delete the inode
13 corresponding to the filename. The MDT inode itself (or a local agent inode
14 in the case of DNE remote entries) will still remain on the MDT filesystem,
15 and will be reconnected to the internal MDT lost+found directory when
16 e2fsck is next run. Since the MDT inode itself is not deleted, any OST
17 objects referenced by this inode will also not be destroyed, so no space
20 The main reason to use
22 is to remove filenames or directory names that are permanently inaccessible,
23 in order to allow them to be restored from backup, or to avoid application
24 errors when accessing these filenames. It should not be used to delete files
25 that are normally accessible, and can only be run by the root user.
28 .B lfs rmentry /mnt/testfs/mdt7/newdir
29 Remove directory entry
31 on MDT0007 since the remote MDT it is referencing is no longer accessible.
33 The \fBlfs rmentry\fR command is part of the Lustre filesystem.