Coda File System

spontaneous local/global conflict, and how things got worse

From: Matthias Drochner <M.Drochner_at_fz-juelich.de>
Date: Mon, 25 Aug 2003 12:51:02 -0400
I just gave coda a try again after a long time, on NetBSD-current,
to check whether it is usable to access development sources on
a laptop. coda-5.3.20, with the newest lwp/rpc2/rvm.

Made the client cache big enough (300M), after I learned that a too
small cache causes rvm allocation errors later.

Copied a CVS-checked-out source tree into it. So far, so good.
Lots of "Reintegrate" messages, but it worked.

Now I tried a "cvs update" in the tree, and suddenly got an
error message: "cannot make directory CVS in .: File exists"
The "CVS" directory had turned into a symlink "@7f...".

There was no other client, so that shouldn't happen as I understand it...
Anyway, started "repair", tried both the "preservelocal" and
"discardlocal" commands, but in any case when I finished by "endrepair"
or "quit", the tool just hung, so had to ^C it. The CVS/{global,local}
dirs were still in the filesystem.
So I had to restart "venus" to be able to start over.
After some tries, the system got into a state where "venus" didn't
start anymore - see the appended console logs for details.

What is going on here - did I do something wrong or is that a bug?

best regards
Matthias


17:12:03 Checkpointing coda.root
17:12:03 to /usr/coda/spool/1127/coda.root@_coda.tar
17:12:03 and /usr/coda/spool/1127/coda.root@_coda.cml
17:15:22 Reintegrate: coda.root, 100/8132 records, result = SUCCESS
[...]
17:22:04 Reintegrate: coda.root, 100/9668 records, result = SUCCESS
17:22:05 volume coda.root CML is busy, skip checkpoint!
17:22:11 Reintegrate: coda.root, 100/9869 records, result = SUCCESS
[...]
17:29:24 Reintegrate: coda.root, 100/145 records, result = SUCCESS
17:29:24 Checkpointing coda.root
17:29:24 to /usr/coda/spool/1127/coda.root@_coda.tar
17:29:24 and /usr/coda/spool/1127/coda.root@_coda.cml
17:29:25 Local inconsistent object at /coda/NetBSD-current/sys/CVS, please 
check!
17:29:25 Reintegrate: coda.root, 45/45 records, result = Unknown error: 198
17:29:30 Reintegrate: coda.root, 37/45 records, result = SUCCESS
17:32:05 volume coda.root has unrepaired local subtree(s), skip checkpointing 
CML!
17:32:25 Local inconsistent object at /coda/NetBSD-current/sys/CVS, please 
check!
17:53:24 RecovTerminate: clean shutdown

[restart venus]

17:53:36 /usr/coda/LOG size is 7773184 bytes
17:53:36 /usr/coda/DATA size is 31088348 bytes
17:53:36 Loading RVM data
17:53:36 Last init was Mon Aug 25 17:01:59 2003
17:53:36 Last shutdown was clean
17:53:36 starting VDB scan
17:53:36        2 volume replicas
17:53:36        1 replicated volumes
17:53:36        10 CML entries allocated
17:53:36        30 CML entries on free-list
17:53:36 starting FSDB scan (12500, 300000) (25, 75, 4)
17:53:39        11719 cache files in table (46138 blocks)
17:53:39        781 cache files on free-list
17:53:40 starting HDB scan
17:53:40        0 hdb entries in table
17:53:40        0 hdb entries on free-list
17:53:40 Getting Root Volume information...
17:53:40 Reintegrate coda.root pending tokens for uid = 1127
17:53:40 Venus starting...
17:53:45 Local inconsistent object at /coda/NetBSD-current/sys/CVS, please 
check!

17:58:23 Reintegrate: coda.root, 2/7 records, result = SUCCESS
17:58:47 Local inconsistent object at /coda/NetBSD-current/sys/CVS, please 
check!

18:02:43 DispatchWorker: signal received (seq = 856322)
18:03:00 RecovTerminate: clean shutdown

[try to restart venus]

18:03:04 /usr/coda/LOG size is 7773184 bytes
18:03:04 /usr/coda/DATA size is 31088348 bytes
18:03:04 Loading RVM data
18:03:04 Last init was Mon Aug 25 17:01:59 2003
18:03:04 Last shutdown was clean
18:03:04 starting VDB scan
18:03:04        2 volume replicas
18:03:04        1 replicated volumes
18:03:04        6 CML entries allocated
18:03:04        31 CML entries on free-list
18:03:04 starting FSDB scan (12500, 300000) (25, 75, 4)
18:03:07        11718 cache files in table (46137 blocks)
18:03:07        782 cache files on free-list
18:03:07 fatal error -- Assertion failed: file "fso0.cc", line 282
Received on 2003-08-25 13:11:11