[Samba] samba-tool dbcheck "Indexed and full searches both failed"
Denis Morejon
denis.morejon at etecsa.cu
Tue Jul 31 12:37:38 UTC 2018
Hi:
I have two samba 4.7.4 DCs. One of them has problems. I can not use
samba-tool on it. Then, when I try to fix It's database It returns:
-------------------------------------------------------------------------------------------------------------------
root at zentyal1:/usr/lib/cgi-bin/account_operator# samba-tool dbcheck --fix
ltdb:
tdb(/usr/local/samba/private/sam.ldb.d/DC=DTCF,DC=ETECSA,DC=CU.ldb):
tdb_rec_read bad magic 0x434e5355 at offset=35404552
ERROR(ldb): uncaught exception - Indexed and full searches both failed!
----------------------------------------------------------------------------------------------------------------------
root at zentyal1:/usr/lib/cgi-bin/account_operator# samba-tool dbcheck
--fix --cross-ncs
ltdb:
tdb(/usr/local/samba/private/sam.ldb.d/DC=DOMAINDNSZONES,DC=DTCF,DC=ETECSA,DC=CU.ldb):
tdb_rec_read bad magic 0xd9fee666 at offset=3187652
ERROR(ldb): uncaught exception - Indexed and full searches both failed!
-----------------------------------------------------------------------------------------------------------------------
When I try this in the second DC It returns no error.
Can I copy these files (/usr/local/samba/private/sam.ldb.d/*) from the
second DC to the first one to solve the corruption ? Should these files
be equals ?
More information about the samba
mailing list