Unable to remove an empty file from a GFS2 filesystem

Solution In Progress - Updated -

Issue

  • We are unable to remove an empty file from a gfs2 filesystem.
    -The rm -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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content