From: peter@abbnm.com (Peter da Silva)
Subject: EINVAL from rename() on Tru64
Date: 16 Feb 2002 23:48:26 GMT [thread overview]
Message-ID: <a4mr4a$ddd@web.nmti.com> (raw)
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?
next reply other threads:[~2002-02-16 23:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-16 23:48 Peter da Silva [this message]
2002-02-16 23:50 ` EINVAL from rename() on Tru64 Peter da Silva
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox