0

I am trying to delete a directory.

rm -rf bla

rm: cannot remove ‘bla’: Directory not empty

It looks empty. I have also tried rmdir.

The ownership and groups looks fine. In fact, the directory was created by a tool I just ran.

drwxrwsr-x 2 me mygroup 4096 Oct 20 17:59 bla

I have changed permissions to chmod 777 bla, but I still cannot delete it.

I am on a cluster and do not have sudo rights. The file itself is not in any special system location or anything.

10
  • Have you tried "ls -ar blah/*"? You might have hidden files in the directory. Commented Oct 20, 2021 at 20:32
  • 2
    @Garnet, itym ls -a bla/, without the final asterisk, since it won't match dotfiles Commented Oct 20, 2021 at 20:34
  • Yes. Still empty. Commented Oct 20, 2021 at 20:35
  • 1
    @roaima I have experienced this issue with .nfs0000093883 like temporary file which prevents the directory from being deleted. In this case, the directory is empty. Commented Oct 21, 2021 at 6:33
  • 3
    I wrote to the system admin and it turns out the issue was beyond me. Got this response: "There is an issue with metadata on Glusterfs that causes this kind of behavior. I can fix this for you." So, I don't know what kind of magic they do. Anyway, Thank you all for your help and suggestions. Commented Oct 21, 2021 at 6:38

1 Answer 1

1

Answer was given in comments. There was an issue with GlusterFS on the user's shared cluster. A local sysadmin resolved the issue.

I wrote to the system admin and it turns out the issue was beyond me. Got this response: "There is an issue with metadata on Glusterfs that causes this kind of behavior. I can fix this for you." So, I don't know what kind of magic they do. Anyway, Thank you all for your help and suggestions.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.