[MOVED] Can't delete file No such file or directory
[Note: The Groups area will soon be archived. This topic has been moved to the new community discussion area, so head over and check it out.]
Hi , one of my machine is a nfs client to a netapp storage where I store all the web content.
There are some files that I'm not able to delete from the NFS client, that have a weird signature for example one of these file is named
denytest.htmlÃ
When i try to remove this file with the command rm -i denytest.htmlà I get this error "No such file or directory".
I tried several different solutions including deleting the file from the inode number.
Wha is very baffling is that if I run the command touch denytest.htmlà and then ls -il the directory I see more files like this popping in the directory :
466919 -rw-r--r--. 1 user some-grp 116 Oct 12 2010 denytest.htmlÂ
466918 -rw-r--r--. 1 user some-grp 118 Aug 17 11:33 denytest.html
780685 -rw-r--r--. 1 root root 0 Aug 17 11:33 denytest.htmlÃ?Â?
780684 -rw-r--r--. 1 root root 0 Aug 17 11:25 denytest.htmlÃ?
780686 -rw-r--r--. 1 root root 0 Aug 17 11:33 denytest.htmlÃ?Â
780685 -rw-r--r--. 1 root root 0 Aug 17 11:33 denytest.htmlÃ?Â?
If i touch the same file I get more files like the one above:.
If I try to remove the file again with the command rm -i denytest.html� I actually get the prompt : remove regular file denytest.htmlà '? and after I see yes I see no errors but whe I ls -l the file is still there, but with a different signature:
?????????? ? ? denytest.htmlÂ
I run all sorts of fsck on the mount and the filesystem seems ok no errors .
I suspect that this has something to do with UTF-8 when webmasters update the web content or these files are the rusult of a porting from a MacOs X system and there is some type of incompatibility.
In any case I'm not able to remove these file from the system neither the directory where this file is included. The only thing I'm able to do is to copy the entire dir to another dir and when I do this the file in question is not copied over the new directory I get an error saying "No such file or directory".
I need to remove this file from the system and I have other 20 files like this any suggestions would be very welcomed .
Thanks
Marcello
Responses
Would the share in question happen to be one that was both CIFS and NFS? It's been a while since I was a storage admin, but I recall that we had attempted to set up some shares that had multiple protocols (and intended clients i.e. Linux, Windows, OSX) and it was a complete mess. It sounds like you may have a share that had been written to with a Windows system which you are attempting to access via a Linux client.
This doc briefly talks about the phenomenon (search on the word "strange")
https://communities.netapp.com/servlet/JiveServlet/previewBody/1170-102-2-1257/
No worries Marcello - I wish I had an answer that could tell you exactly what to do. That document did seem to highlight some of the OSX things to consider. There are a few settings on the share itself that I can no longer recall regarding file naming standards (UTF vs Unicode - again, it's been a while since I have set any of this stuff up).
Do you still have a Mac client that can access the share and does it see the same "oddities" in file names? I don't have any experience with Xserve, unfortunately.
I hope this helps and doesn't send you off in the wrong direction.
As the Groups area will be set to read-only soon, I've moved this across to the new Discussions area. You can continue this thread here: https://access.redhat.com/site/discussions/461023
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
