A directory on the gluster filesystem can not be removed, message 'Directory not empty' appears

Solution Unverified - Updated -


  • On a gluster volume a directory can not be removed, on the glusterfs mountpoint:
# rm -rf /GlusterNFS/directory
rm: cannot remove directory `/GlusterNFS/directory': Directory not empty
  • Removing the directory via NFS mount also fails:
# rm -rf /mnt/directory/
rm: cannot chdir from `/mnt/directory/' to `foobar': Invalid argument
  • On 2 of the storage systems, an old directory foobar could still be seen on the bricks:
# ls -l /bricks/br6t*/directory
total 0
drwxr-xr-x 2 user group 6 Mar 11 15:37 foobar


  • Red Hat Storage Server (RHSS) 2.0 update 3

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