[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: How do I reduce database corruption?



<quote who="Dan Shriver">
>
>
> Basically I get entries in "limbo".  If I try to delete z (or
> even x) and then re add it one of two things happens:
>    1) the delete fails claiming no z object
>    2) the delete "succeeds" but on trying to re add z I am told
> the object already exists.
>
> climbing up the tree to y doesn't help (parent entries can
> successfully be deleted, re added with no phantoms- but the
> corrupt entry persists as a phantom)
>
> slapindex also fails to rectify the problem
>
> I can only get back to a consistent state by:
>  1 turn off the db
>  2 slapcat to a file
>  3 empty the db directory
>  4 turn on the db
>  5 ldapmodify -a the file multiple times (as it is output in no
> particular order)
>
> if I try to replace steps 4 & 5 by doing slapadd (a quicker way)
> I often get an even more corrupt db than what I started with.
>
> Where did you get that browser from?  I am interested in
> providing my users with a "cleaner" client.

hmm, i will test a few more things on my db tonight, but
i think i did what you said you did (rename, try to delete)
without any issues.

LDAPexplorer is available here:
http://freshmeat.net/projects/ldapexplorer/

theres no real homepage, just a site with a demo, then the
ftp archive. pretty easy to setup provided you have a webserver
with php(i use php4)

good luck

nate