[Samba] corrupt sam.ldb on a dc
mourik jan heupink - merit
heupink at merit.unu.edu
Mon Jul 7 06:48:21 MDT 2014
Hi all,
On one of my two (sernet 4.1.7) domain controllers, I seem to have a
corrupt sam database:
root at dc1:~# samba-tool dbcheck --cross-ncs
ltdb:
tdb(/var/lib/samba/private/sam.ldb.d/DC=DOMAINDNSZONES,DC=SAMBA,DC=COMPANY,DC=COM.ldb):
tdb_rec_read bad magic 0x198 at offset=1044437120
ERROR(ldb): uncaught exception - Indexed and full searches both failed!
File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py",
line 175, in _run
return self.run(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/samba/netcmd/dbcheck.py", line
136, in run
controls=controls, attrs=attrs)
File "/usr/lib/python2.7/dist-packages/samba/dbchecker.py", line 123,
in check_database
res = self.samdb.search(base=DN, scope=scope, attrs=['dn'],
controls=controls)
root at dc1:~#
Has anyone ever had this? On my dc2 everything seems to be fine
(although the samba-tool dbcheck is still running)
I'm guessing this is fairly serious, but fortunately dc2 is still fine.
Has anyone ever experienced this? Tips, trics how to proceed now?
Replication doesn't seem to work anymore. I guess that's why my dc2 is
still healthy. I hope someone here has some clever do's and don'ts...
Regards,
MJ
More information about the samba
mailing list