Sun QFS and Storage Archive Manager (SAM): Removing an Empty Directory With "rm" or "rmdir" Fails With the Message "Directory not empty" or "Unable to remove directory XXX: File exists" (Doc ID 1008011.1)

Last updated on APRIL 11, 2017

Applies to:

Oracle Hierarchical Storage Manager (HSM) and StorageTek QFS Software - Version 4.6 and later
All Platforms
***Checked for relevance on 13-Jan-2014***

Symptoms

Attempting to rmdir(1) or rm -r a directory produces the following errors:

root # rmdir test
rmdir: directory "test": Directory not empty

 

root # rm -rf test
rm: Unable to remove directory test: File exists

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms