Unable to remove an empty file from a GFS2 filesystem
Issue
- We are unable to remove an empty file from a gfs2 filesystem.
-Therm -f
option produces no stderr, but the file is still there:
[root@hostname ~]# rm -f /directory/filename
[root@hostname ~]#
[root@hostname ~]# ls -1b /directory/filename
/directory/filename
[root@hostname ~]#
[root@hostname ~]# rm /directory/filename
rm: remove regular empty file '/directory/filename'? y
rm: cannot remove '/directory/filename': No such file or directory
Environment
- Red Hat Enterprise Linux Server 7, 8 (with the High Availability Add On and Resilient Storage Add Ons)
- A Global Filesystem 2(
gfs2
)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.