[OpenAFS] Unable to delete volume: Logfiles

FBO fbo2@gmx.net
Tue, 27 Aug 2002 08:13:53 +0200


On Mon, Aug 26, 2002 at 06:01:42PM -0400, Derrick J Brashear wrote:
> Fine, so I'd guess:
>     if ((fd = open(path, O_RDONLY)) == -1 || fstat(fd,&status) == -1) {
>         close(fd);
>         VOL_LOCK
>         *ec = VNOVOL;
>         goto done;
>     }
That doesn't fail but...

> fails. strace is your friend.
as usual strace *was really* my friend :-).

strace -p `pidof volserver`:

[snip]
open("/vicepa", O_RDONLY)               = 5
flock(5, LOCK_EX)                       = 0
open("/vicepa/V0536870933.vol", O_WRONLY|O_CREAT|O_EXCL, 0600) = 6
open("/vicepa/AFSIDat/I/I+++U/special/zzzz5I=+++0", O_RDWR|O_CREAT|O_TRUNC|O_EXCL, 0) = -1 EEXIST (File
exists)
open("/vicepa/AFSIDat/I/I+++U/special/zzzzPE=+++0", O_RDWR) = 7
open("/vicepa/AFSIDat/I/I+++U/special/zzzzPE=+++0", O_RDWR) = 8
flock(8, LOCK_EX)                       = 0
lseek(8, 8, SEEK_SET)                   = 8
read(8, "", 2)                          = 0
flock(8, LOCK_UN)                       = 0
close(8)                                = 0
close(7)                                = 0
open("/vicepa/AFSIDat/J/J+++U/special/zzzzPE=+++0", O_RDWR) = -1 ENOENT (No such file or directory)
close(6)                                = 0
time(NULL)                              = 1030427755
[snip]

Some of those "+"-directories of c.sscd.readonly seems to have still existed
and to have contained files, volserver wanted to create, not just open.
After deleting them, the problem was gone.

Thank you very much, Derrick.

FBO