[Samba] DC Upgrade from 4.1.7 to 4.6.7

Andrew Bartlett abartlet at samba.org
Sat Aug 26 08:40:25 UTC 2017


On Sat, 2017-08-26 at 12:32 +0400, HB via samba wrote:
> > 
> Here is the output of samba-tool dbcheck : 
> # samba-tool dbcheck
> Checking 1791 objects
> ltdb: tdb(/usr/local/samba/private/sam.ldb.d/DC%3DDOMAINDNSZONES,DC%3DCIRAD-REUNION,DC%3DCIRAD,DC%3DFR.ldb): tdb_rec_read bad magic 0xd9fee666 at offset=1115322096
> 
> ltdb: tdb(/usr/local/samba/private/sam.ldb.d/DC%3DDOMAINDNSZONES,DC%3DCIRAD-REUNION,DC%3DCIRAD,DC%3DFR.ldb): tdb_rec_read bad magic 0xd9fee666 at offset=1115322096
> 
> Checked 1791 objects (0 errors)
> # 
> 
> But, if I run 'samba-tool dbcheck --cross-ncs' (as suggested in Updating_Samba) : 
> 
> # samba-tool dbcheck --cross-ncs
> ltdb: tdb(/usr/local/samba/private/sam.ldb.d/DC%3DDOMAINDNSZONES,DC%3DCIRAD-REUNION,DC%3DCIRAD,DC%3DFR.ldb): tdb_rec_read bad magic 0xd9fee666 at offset=1115322096
> 
> ERROR(ldb): uncaught exception - Indexed and full searches both failed!
> 
>   File "/usr/local/samba/lib64/python2.6/site-packages/samba/netcmd/__init__.py", line 175, in _run
>     return self.run(*args, **kwargs)
>   File "/usr/local/samba/lib64/python2.6/site-packages/samba/netcmd/dbcheck.py", line 136, in run
>     controls=controls, attrs=attrs)
>   File "/usr/local/samba/lib64/python2.6/site-packages/samba/dbchecker.py", line 123, in check_database
>     res = self.samdb.search(base=DN, scope=scope, attrs=['dn'], controls=controls)
> #

Your DB is corrupt.  do you have another replica, or a good backup?

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




More information about the samba mailing list