[Samba] DC sync
mathias dufresne
infractory at gmail.com
Thu Sep 3 09:03:30 UTC 2015
Hi Jefferson,
You could try to add some of these switches to your drs replicate command:
--add-ref use ADD_REF to add to repsTo on source
--sync-forced use SYNC_FORCED to force inbound replication
--sync-all use SYNC_ALL to replicate from all DCs
--full-sync resync all objects
--local pull changes directly into the local database
(destination DC is ignored)
Cheers,
mathias
2015-09-02 18:36 GMT+02:00 Jefferson B. Limeira <jbl at internexxus.com.br>:
> Morning,
>
> On a DC:
> [root at BPCTASRVSDC003 ~]# samba-tool drs showrepl | grep failure
> 0 consecutive failure(s).
> 0 consecutive failure(s).
> 0 consecutive failure(s).
> 0 consecutive failure(s).
> 0 consecutive failure(s).
> 0 consecutive failure(s).
> 0 consecutive failure(s).
> 0 consecutive failure(s).
> 0 consecutive failure(s).
> 0 consecutive failure(s).
> 0 consecutive failure(s).
> 0 consecutive failure(s).
> 0 consecutive failure(s).
> 0 consecutive failure(s).
> 0 consecutive failure(s).
> Force sync
> [root at BPCTASRVSDC003 ~]# samba-tool drs replicate BPCTASRVSDC003
> SRVSMB4-PDC DC=bp,DC=net
> Replicate from SRVSMB4-PDC to BPCTASRVSDC003 was successful.
>
> Looking for one problematic workstation... none
> [root at BPCTASRVSDC003 ~]# ldbsearch -H /var/lib/samba/private/sam.ldb
> dNSHostName=CTA1ETTIC018615.bp.net | grep ^whenChanged
> [root at BPCTASRVSDC003 ~]#
>
> Other DC:
> [root at SRVSMB4-PDC ~]# ldbsearch -H /var/lib/samba/private/sam.ldb
> dNSHostName=CTA1ETTIC018615.bp.net | grep ^whenChanged
> whenChanged: 20150902153005.0Z
> [root at SRVSMB4-PDC ~]#
> [root at SRVSMB4-PDC ~]# samba-tool ldapcmp ldap://SRVSMB4-PDC
> ldap://BPCTASRVSDC003 -Uadministrator domain --filter=whenChanged,pwdLastSet
> ...
>
> SUMMARY
> ---------
>
> Attributes with different values:
>
> displayName
> sAMAccountName
> memberOf
> userAccountControl
> dNSHostName
> member
> servicePrincipalName
>
> Attributes found only in ldap://BPCTASRVSDC003:
>
> displayName
>
> Same version on both DCs
> [root at SRVSMB4-PDC ~]# samba --version
> Version 4.2.3-SerNet-RedHat-18.el6
>
>
> Any idea? It's possible 'merge' databases?
>
> --
> []'s Jefferson B. Limeira
> jbl at internexxus.com.br
> https://br.linkedin.com/in/jlimeira
> (41) 9928-8628
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/options/samba
>
More information about the samba
mailing list