How to remove a directory from a gluster volume when rmdir unexpectedly fails with "directory not empty"

Solution Verified - Updated -

Issue

There can be a situation where a directory looks empty from the mount point, but the backend brick still contains some entries in that directory. This is due to a bug (race condition) in the Gluster distribute module.

Because the mount point directory appears to be empty, a rmdir call might be expected to pass. However, since the backend brick still contains entries, the command would actually fail, and the directories would not be removed.

Environment

  • RHGS-3.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.