[Linux-cluster] cannot delete directories

Bob Peterson rpeterso at redhat.com
Thu Sep 10 14:10:34 UTC 2015


----- Original Message -----
> Recently in an attempt to rm -Rf on a client that nfs mounts our RH6
> resilient storage with gfs2 file system to remove old users directories
> I have run into the problem where it deletes all content down the tree,
> leaving all directories empty but it cannot delete the directory because
> "the directory is not empty".  Even though it is.  Any ideas how to
> correct this?
> --
> Sincerely,
> 
> Doug Tucker

Hi Doug,

Hm. That's odd.
Are you trying to rmdir through nfs? Or through the gfs2 server?
Sounds like you were using nfs, which ought to work.

1. Make sure lsof doesn't show any open files for that directory.
2. Make sure the directory itself isn't being exported via nfs.
3. Make sure there aren't hidden files via ls -a
4. Make sure there aren't any kernel errors on the GFS2 server in dmesg
5. Try doing rmdir on the gfs2 server to see if it works.

Regards,

Bob Peterson
Red Hat File Systems




More information about the Linux-cluster mailing list