[Samba] 4.2.2 as AD with 2 DCs: database incoherency

Rowland Penny rowlandpenny241155 at gmail.com
Wed Jul 15 15:34:59 UTC 2015


On 15/07/15 14:31, mathias dufresne wrote:
> Hi all,
>
> I'm having a test AD domain composed with 2 DC, using Sernet's version of
> Samba 4.2.2.
>
> These two DC are Centos 6.6 (dc20) and Debian 7.8 (dc00).
>
> These two are using TDB as a backend (as we have no other choice at this
> stage of Samba's development).
>
> *dc20*:~# ldbsearch -H $sam '(objectclass=group)' dn | tail -3
> # returned 27392 records
> # *27389* entries
> # 3 referrals
> *dc00*:~# ldbsearch -H $sam '(objectclass=group)' dn | tail -3
> # returned 27892 records
> # *27889* entries
> # 3 referrals
>
> I'm wondering with I'm missing 500 groups on dc20 database.
>
> Perhaps this issue comes from the fact there was a space issue on dc00
> (/var/log/samba/log.samba fulfilled /var (debug) and database is on same FS
> into /var/lib/samba).
>
> Anyway, do we have something to force databases to come back to a coherent
> state?
> Could we tdbdump the DB on one host then tdbrestore it on the other?
>
> Kindly regards,
>
> mathias

What does 'samba-tool ldapcmp ldap://DC1 ldap://DC2 -Uadministrator' show ?

More info, see here: https://wiki.samba.org/index.php/Samba-tool_ldapcmp

Rowland




More information about the samba mailing list