[OpenAFS] Serious trouble, mounting /afs, ptserver, database rebuilding

kanou kanou@gmx.ch
Tue, 22 Jul 2008 22:15:35 +0200


Hello,
i realy need some help. If I can't get this mess fixed I will be in  
serious trouble.

Our AFS is running for more than 5 years, but I just joined the  
company a few weeks ago - so I'm pretty unexperienced with AFS.

It started last week. There were messages like this:
"pts: database needs rebuilding".

So I stopped the server with something like
"bos stop -server myserver -instance ptserver" and
did something perhaps not pretty good: Made backups of /var/lib/ 
openafs/db and
deleted prdb.DB0 and prdb.DBSYS1.

Restart:
bos create -server myserver -instance ptserver -type simple -cmd /usr/ 
lib/openafs/ptserver

That did it. The systems broken.
Starting afsd prints:
afsd: Can't mount AFS on /afs(22)

The logs print:

==> /var/log/openafs/FileLog <==
Tue Jul 22 21:43:39 2008 Couldn't get CPS for AnyUser, will try again  
in 30 seconds; code=267275.

and this:

==> /var/log/openafs/PtLog <==
ptserver: Unknown code pt 11 (267275) Can't rebuild database because  
it is not empty

So playing back the prdb.DB0 and prdb.DBSYS1 and restarting the server  
didn't help.
Please help me.

Sincerely
kanou