We were having that too on our dc1. See a thread "samba4 replication
issues | sam.ldb inconsistency" that took place here, during the last
weeks. It was not a very nice experience.
However, we had two dc's, and our second dc was still healthy. I was
able to add a third DC (dc3).
I think I wrote on list what I did. Our dc1 never recovered.
I hope you have multiple dc's as well?
MJ
Sorry, I have no idea. I tried to repair my
DC=DOMAINDNSZONES,DC=MYDOMAIN,DC=LOCAL.ldb but for me that never worked.
I am also not sure how it became corrupted in the first place.
It grows terribly big, that's probably a mitigating factor. In the list,
there is a thread on how to reduce it's size. I have yet to follow those
instructions, so mine is also still very big.
I tried to repair my DC=DOMAINDNSZONES,DC=MYDOMAIN,DC=LOCAL.ldb using
tdbdump and tdbackup, but I never succeeded.
I'm sorry I cannot provide you with more assistance. Hopefully someone
else has some good tips for you.
MJ
The only way to get some of your data out of such a corrupt database
would be to use the 'ldbdump' tool, which is a low-level tool that will
walk the database looking for possibly valid records.
I wrote this with the help of 'Rusty' when dealing with a corrupt
database at another site.
The other option would be to try and re-create these databases. Being
'just' DNS, you might be able to make that work, particularly if you
were to create a BIND9_FLATFILE based zone, and then use
samba_upgradedns to re-import it. Not trivial, and a fair bit of work,
but you should be able to save the rest of your database.
Andrew Bartlett
--
Andrew Bartlett http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org
Samba Developer, Catalyst IT http://catalyst.net.nz/services/samba