Web lists-archives.com

Re: [Samba] DC Upgrade from 4.1.7 to 4.6.7




> -----Message d'origine-----
> De : Andrew Bartlett [mailto:abartlet@xxxxxxxxx]
> Envoyé : samedi 26 août 2017 12:40
> À : HB; samba@xxxxxxxxxxxxxxx
> Objet : Re: [Samba] DC Upgrade from 4.1.7 to 4.6.7
> 
> 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%3D
> CIRAD-
> > 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%3D
> CIRAD-
> > 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%3D
> CIRAD-
> > 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
Hi Andrew, 

I don't have a replica , this DC is the only one.
I have backups but as daily VM backups , I have tested the last one with the same errors. 
I suspect that the DB could be corrupted since a long time, although the AD is running ok. 

What can I do to either correct the DB or export/import the AD ? 



> 
> --
> Andrew Bartlett                       http://samba.org/~abartlet/
> Authentication Developer, Samba Team  http://samba.org
> Samba Developer, Catalyst IT          http://catalyst.net.nz/services/samba



-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba