From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,513863d037ba3531,start X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-02-16 16:01:07 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-proxy.baileynm.com!web.nmti.com!not-for-mail From: peter@abbnm.com (Peter da Silva) Newsgroups: comp.unix.tru64 Subject: EINVAL from rename() on Tru64 Date: 16 Feb 2002 23:48:26 GMT Organization: ABB Network Management Message-ID: NNTP-Posting-Host: grendel.eng.baileynm.com Xref: archiver1.google.com comp.unix.tru64:6801 I have a script that renames a lot of files: the files are delivered by an external communications program, and as they move through the system they are renamed to indicate the state they're in: active, waiting for response from a user, acknowledged, and so on. Every now and then the rename (the mv command) fails with an EINVAL. According to the man page this means: [EINVAL] Either the from or to parameter is not a well-formed directory, an attempt is made to rename . (dot) or .. (dot-dot), or the from parameter is an ancestor of the to parameter. Unfortunately, the destination file doesn't exist, the source file is a plain file, and even doing an mv outside the script (by just cd-ing to the directory and doing an mv command directly) fails. I can delete the file, and that makes the problem go away for a while, and I have checked the inode numbers of the problem files and they're not related to each other. I have also taken the system down to run complete file system checks to no avail. The problem is also occurring on the backup system (currently used for development), and not showing up on any other file systems on either box, so if it's an obscure hardware or filesystem problem it's pretty specific. The file was successfully renamed less than 2 seconds before this starts happening. Sometimes the problem goes away of its own accord, and sometimes it hangs around for hours until I delete the problem file. Once, I was unable to delete the file (rm failed, but I didn't take note of the error message: this was the first time and I assumed it was simply a coprrupted file system and an fsck would fix it: clearly it didn't). The system is running Digital UNIX V4.0F (Rev. 1229) The file system in question is UFS, a 4G (4234204 block) partition, 59% used, 41% of the inodes used, on a ST19171W in a Storageworks clamshell. No possible solution will be mocked... I've gone over this with a fine toothed comb and asked around online. I have not actually eliminated voodoo or witchcraft, but I hope that's not it... bloodstains are really hard to get out of furniture. -- `-_-' In hoc signo hack, Peter da Silva. 'U` "A well-rounded geek should be able to geek about anything." -- nicolai@esperi.org Disclaimer: WWFD?