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

kanou kanou@gmx.ch
Wed, 23 Jul 2008 19:30:38 +0200


And this:

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


Am 23.07.2008 um 19:10 schrieb kanou:

> I did the check on the copy. So well, my first afs-Server just  
> mounted /afs but now the second one is in trouble with the same  
> errors and i even cant get any kerberos tickets on that machine.
>
>
> Am 23.07.2008 um 18:52 schrieb Christof Hanke:
>
>> 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
>
> _______________________________________________
> OpenAFS-info mailing list
> OpenAFS-info@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-info