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

kanou kanou@gmx.ch
Wed, 23 Jul 2008 19:17:08 +0200

My logs on the second machine tell me:

==> /var/log/openafs/FileLog.old <==
Wed Jul 23 19:03:37 2008 File server starting
Wed Jul 23 19:03:37 2008 afs_krb_get_lrealm failed, myserver2.
Wed Jul 23 19:03:37 2008 VL_RegisterAddrs rpc failed; will retry  
periodically (code=5376, err=4)
Wed Jul 23 19:03:37 2008 Couldn't get CPS for AnyUser, will try again  
in 30 seconds; code=267275.

==> /var/log/openafs/SalvageLog <==
07/23/2008 19:08:27 SALVAGING OF PARTITION /vicepa COMPLETED

and aklog gives me:
aklog: Couldn't get hrf.uni-koeln.de AFS tickets:
aklog: Cannot contact any KDC for requested realm while getting AFS  

damn! i did not do anything on that second one!

> Just to make sure you're working on the correct file:
> As I understand you first deleted the file /var/lib/openafs/db/ 
> prdb.DB0.
> This file was then probably recreated when you restarted the ptserver.
> Run this command on the backupfile you made first (or better on a  
> copy of the backup file).
> T/Christof
> ________________________________________
> From: openafs-info-admin@openafs.org [openafs-info- 
> admin@openafs.org] On Behalf Of kanou [kanou@gmx.ch]
> Sent: Wednesday, July 23, 2008 6:46 PM
> To: openafs-info@openafs.org
> Subject: Re: [OpenAFS] Serious trouble, mounting /afs, ptserver,  
> database rebuilding
> Thanks for your answer.
> Well I found the file prdb_check. It doesnt print any errors. Only
> thing I can find is with
> ./prdb_check -database /var/lib/openafs/db/prdb.DB0 -uheader -verbose
> this line:
> Ubik header size is 0 (should be 64)
> So there are no errors! I can start the server and everything runs
> fine but the machine wont mount /afs!
> kanou
> Am 23.07.2008 um 17:26 schrieb Steven Jenkins:
>> On Wed, Jul 23, 2008 at 10:51 AM, kanou <kanou@gmx.ch> wrote:
>>> Hello,
>>> well, there is a file called db_verify.c in the folder
>>> /usr/src/modules/openafs/ptserver but I don' know how to build it.
>> If I recall correctly, db_verify gets renamed to 'prdb_check' during
>> the install, so you should check for the existence of that file.
>> If you can't find it, you'll need to build it from source code: the
>> directions on the AFSLore wiki are a good place to start:
>> http://www.dementia.org/twiki/bin/view/AFSLore/HowToBuildOpenAFSFromSource
>> If you have problems building openafs-stable-1_4_x, you could get
>> openafs-stable-1_4_7 instead, as that is the latest official release.
>> Once you have built the tree, src/ptserver/db_verify should get  
>> built,
>> so you can simply copy it out of the source tree for your use.  If it
>> doesn't get built automatically for you, you can cd into src/ptserver
>> and do a 'make db_verify' manuall.
>> Also, feel free to ask for help here  or on the irc channel.
>> Steven Jenkins
>> End Point Corporation
>> http://www.endpoint.com/
> _______________________________________________
> OpenAFS-info mailing list
> OpenAFS-info@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-info