[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Database corruption after abrupt shutdown
- To: openldap-software@OpenLDAP.org
- Subject: Re: Database corruption after abrupt shutdown
- From: jheiss@ofb.net (Jason Heiss)
- Date: Fri, 8 Mar 2002 18:18:12 -0800
- Cc: Stefan Alfredsson <bulk@alfredsson.org>
- Content-disposition: inline
- In-reply-to: <20020227185449.B7878@kossan>
- References: <20020227091517.Y4289@ofb.net> <20020227185449.B7878@kossan>
- User-agent: Mutt/1.3.27i
Stefan had some very good suggestions (thanks!)
In the end it was his one about restoring from backups that worked best. :)
slapcat was able to find and open the file, but didn't like something
about it (what exactly wasn't clear from the truss output).
I blew away the bodged database files, restarted slapd and re-imported
from a recent LDIF (which I will make sure to keep updated now!)
Jason
On Wed, Feb 27, 2002 at 06:54:49PM +0100, Stefan Alfredsson wrote:
> On Wed, Feb 27, 2002 at 09:15:17AM -0800, Jason Heiss wrote:
> > Feb 27 09:02:46 typhoon slapd[231]: ldbm: ==> dn2id.dbb: unexpected file type or format
> > Feb 27 09:02:46 typhoon slapd[231]: <= dn2id could not open dn2id.dbb
> >
> > I can't find any matches for this error in the archives for this mailing
> > list, the FAQ or Google. I'm assuming the database got corrupted and I'm
> > curious if anyone has suggestions for how to go about fixing it?
>
> well, just restore the backup? .. ehrm.. :)
>
> > > sudo slapcat
> > slapcat: could not open database.
>
> Why cant it open the database? The file is lost? File corrupt?
> slapd is running?
>
> Try strace'ing slapcat and try to see the cause of the error.
> check the size of the databases files, do they look reasonably large?
> (i.e. maybe they became truncated in the crash)
>
> Has slapcat / slapindex worked before the crash?
>
> Maybe you keep slapd.conf in a nonstandard location, and need to specify
> this path to slapcat..
>