[OpenAFS] prdb.DB0 Database rebuilding ?
Ted Anderson
ota@transarc.com
Thu, 18 Oct 2001 08:32:10 -0400 (EDT)
On Wed, 26 Sep 2001 11:04:58 +0200 Jean-Marc Chaton <jcn@austin.ibm.com> wrote:
> * Hartmut Reuter [Tue, 25/09/2001 at 13:53 +0200]
> > ~: translate_et 267275
> > 267275 (pt).11 = database needs rebuilding
> >
>
> My pts DB is in a bad state. How can one rebuild it (as suggested by
> translate_et).
I don't know the exact state of it, but there is a program called
db_verify in the ptserver directory that has a -rebuild option. This
option is marked as CMD_HIDE so this is a hint that there may be
problems using this feature, YHBW. What it does is scan the database
and writes out a list of commands that can be used to recreate the
database using the prclient command. So *roughly*, the steps would be
to shutdown the ptserver, run db_verify -rebuild /tmp/prdb-rebuild.txt,
then remove the prdb.* files, restart the ptserver (which should
construct you a new, empty database), then run ptclient <
/tmp/prdb-rebuild.txt.
Hopefully someone can elaborate on the current state of this tool and
whether this *outline* of a rebuild procedure would actually work.
Ted Anderson