Coda File System

Re: Error when starting updated coda-server 5.3.20

From: Jan Harkes <jaharkes_at_cs.cmu.edu>
Date: Mon, 23 Dec 2002 11:18:20 -0500
On Mon, Dec 23, 2002 at 04:48:11PM +0100, Florian Schaefer wrote:
> > Yes, the simplest might be to rebuild the RPMS for your machine,
> > 
> [...]
> >     rpm --rebuild coda-debug-5.3.20-1.src.rpm
> 
> Hmm, the configure script ends with this error:
> configure: error: "unable to find rp2gen. try --with-lwp option"
> 
> This rp2gen seems to be something coda specific, isn't it? 

rpc2-devel wasn't installed.

> 	libdb-4.0.so => /lib/libdb-4.0.so (0x40041000)

Argh, libdb4, they are at 4 already? What is the use of a 'data storage'
if it changes about twice a year. Does anyone think it is reasonable to
expect to read a database file that was created less than 2 years ago?

> > You could also send me a tarball with the user and group databases. I
> > can probably export the user and group from them with a correctly linked
> > version of pdbtool which you can then import into a clean database.
> 
> Sounds like a lot of voodoo to me, but if it helps... ;-) 
> I attached prot-{index,users}.db

Not so much voodoo, I basically dumped these on a machine that had
pdbtool linked against libdb1.85 and ran,

    pdbtool export florian.users florian.groups

The files are attached to this email. It looks like nothing
extraordinary, simply a single user in the system:administrators group
similar to how everyone's pdb databases look after vice-setup-user is
done, so I've cc'd codalist.

What you have to do is simple,

    cd /vice/db

    # backup the old databases and move them out of the way
    mv prot_index.db prot_index.db~
    mv prot_users.db prot_users.db~

    # create a new database and import data from the users and groups files
    pdbtool import florian.users florian.groups

And everything should work but now the databases are in the libdb4
format that pdbtool was linked against.

Jan
Received on 2002-12-23 11:19:44