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, 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