Got the same problem as johnlennon in this thread.
http://www.vmware.com/community/thread.jspa?messageID=533347
File exported with vmkfstools - now I am unable to remove it. I can rename it, move it as long as it stays on the same volume, edit it with vi, everything looks fine with ls - but if I try and delete it or move it to another volume it fails with an "Invalid Argument" error. I've also tried echo 0 > "vm-flat.vmdk" and that gives an invalid argument error too.
eg:
rm -f ./vm-flat.vmdk
rm: cannot remove `vm-flat.vmdk': Invalid argument
Doesn't matter what I rename it to, or if I try and remove the directory containing it with rm -rf. Have renamed the directory to remove all symbol characters and likewise with the .vmdk file. Still no joy.
This volume is on an unsupported iSCSI SAN (Open-E Enterprise) VMFS volume - but I've been using it to dump VM exports to for ages with no issues before this.
I'm thinking some sort of volume corruption? Weird thing is there are no errors in the logs (vmkwarning, vmkernel and messages) that I can see relating to this file or the volume holding it. I've checked the files iNode number and it looks valid too - but even trying to delete by iNode gives the "Invalid Argument" error.
I'm going to try restarting the iSCSI box next week. Anyone have any other suggestions?
Hmmm... sounds weird
Two things you could try
\- delete it using the datastore browser
\- delete it using unlink
Hmmm... sounds weird
Two things you could try
\- delete it using the datastore browser
\- delete it using unlink
Nice one the datastore browser did the trick! Not really used it to manage files before as I prefer to use the shell, so thanks for giving me the nudge.
Still struggling to understand why I couldn't delete it from the COS though, any idea?
Still struggling to understand why I couldn't delete it from the COS though, any idea?
I'm sure I don't know