Adam Tauno Williams
2015-Apr-12 20:14 UTC
[Samba] Removed old DC, now replication hopelessly broken [HELP]
I removed a DC using the DC removal tool mentioned in http://gallery.technet.microsoft.com/scriptcenter/d31f091f-2642-4ede-9f97-0e1cc4d577f3 as https://bugzilla.samba.org/show_bug.cgi?id=10734 prevents normal DC demotion. The DC was still all over in DNS, so I had to pick it out. Now replication between the remaining three DCs is broken [root at larkin26 ~]# samba-tool drs showrepl ERROR(<class 'samba.drs_utils.drsException'>): DRS connection to larkin26.micore.us failed - drsException: DRS connection to larkin26.micore.us failed: (-1073741772, 'NT_STATUS_OBJECT_NAME_NOT_FOUND') File "/usr/lib64/python2.6/site-packages/samba/netcmd/drs.py", line 39, in drsuapi_connect (ctx.drsuapi, ctx.drsuapi_handle, ctx.bind_supported_extensions) drs_utils.drsuapi_connect(ctx.server, ctx.lp, ctx.creds) File "/usr/lib64/python2.6/site-packages/samba/drs_utils.py", line 54, in drsuapi_connect raise drsException("DRS connection to %s failed: %s" % (server, e)) [root at larkin26 ~]# samba-tool drs showrepl ERROR(<class 'samba.drs_utils.drsException'>): DRS connection to larkin26.micore.us failed - drsException: DRS connection to larkin26.micore.us failed: (-1073741772, 'NT_STATUS_OBJECT_NAME_NOT_FOUND') File "/usr/lib64/python2.6/site-packages/samba/netcmd/drs.py", line 39, in drsuapi_connect (ctx.drsuapi, ctx.drsuapi_handle, ctx.bind_supported_extensions) drs_utils.drsuapi_connect(ctx.server, ctx.lp, ctx.creds) File "/usr/lib64/python2.6/site-packages/samba/drs_utils.py", line 54, in drsuapi_connect raise drsException("DRS connection to %s failed: %s" % (server, e)) And advice would be most welcome! -- Adam Tauno Williams <mailto:awilliam at whitemice.org> GPG D95ED383 Systems Administrator, Python Developer, LPI / NCLA
Adam Tauno Williams
2015-Apr-12 21:10 UTC
[Samba] Removed old DC, now replication hopelessly broken [SOLVED]
On Sun, 2015-04-12 at 16:14 -0400, Adam Tauno Williams wrote:> I removed a DC using the DC removal tool mentioned in > http://gallery.technet.microsoft.com/scriptcenter/d31f091f-2642-4ede-9f97-0e1cc4d577f3 > as https://bugzilla.samba.org/show_bug.cgi?id=10734 prevents normal DC > demotion. > The DC was still all over in DNS, so I had to pick it out. > Now replication between the remaining three DCs is broken > [root at larkin26 ~]# samba-tool drs showrepl > ERROR(<class 'samba.drs_utils.drsException'>): DRS connection to > larkin26.micore.us failed - drsException: DRS connection to > larkin26.micore.us failed: (-1073741772, > 'NT_STATUS_OBJECT_NAME_NOT_FOUND') > File "/usr/lib64/python2.6/site-packages/samba/netcmd/drs.py", line > 39, in drsuapi_connect > (ctx.drsuapi, ctx.drsuapi_handle, ctx.bind_supported_extensions) > drs_utils.drsuapi_connect(ctx.server, ctx.lp, ctx.creds) > File "/usr/lib64/python2.6/site-packages/samba/drs_utils.py", line 54, > in drsuapi_connect > raise drsException("DRS connection to %s failed: %s" % (server, e)) > [root at larkin26 ~]# samba-tool drs showrepl > ERROR(<class 'samba.drs_utils.drsException'>): DRS connection to > larkin26.micore.us failed - drsException: DRS connection to > larkin26.micore.us failed: (-1073741772,Went through DNS again, verified all the resolv.conf files, restarted all the services... and now DRS seems ok. Not sure what fixed it. -- Adam Tauno Williams <mailto:awilliam at whitemice.org> GPG D95ED383 Systems Administrator, Python Developer, LPI / NCLA
Andrey Repin
2015-Apr-12 21:31 UTC
[Samba] Removed old DC, now replication hopelessly broken [SOLVED]
Greetings, Adam Tauno Williams!> On Sun, 2015-04-12 at 16:14 -0400, Adam Tauno Williams wrote: >> I removed a DC using the DC removal tool mentioned in >> http://gallery.technet.microsoft.com/scriptcenter/d31f091f-2642-4ede-9f97-0e1cc4d577f3 >> as https://bugzilla.samba.org/show_bug.cgi?id=10734 prevents normal DC >> demotion. >> The DC was still all over in DNS, so I had to pick it out. >> Now replication between the remaining three DCs is broken >> [root at larkin26 ~]# samba-tool drs showrepl >> ERROR(<class 'samba.drs_utils.drsException'>): DRS connection to >> larkin26.micore.us failed - drsException: DRS connection to >> larkin26.micore.us failed: (-1073741772, >> 'NT_STATUS_OBJECT_NAME_NOT_FOUND') >> File "/usr/lib64/python2.6/site-packages/samba/netcmd/drs.py", line >> 39, in drsuapi_connect >> (ctx.drsuapi, ctx.drsuapi_handle, ctx.bind_supported_extensions) >> drs_utils.drsuapi_connect(ctx.server, ctx.lp, ctx.creds) >> File "/usr/lib64/python2.6/site-packages/samba/drs_utils.py", line 54, >> in drsuapi_connect >> raise drsException("DRS connection to %s failed: %s" % (server, e)) >> [root at larkin26 ~]# samba-tool drs showrepl >> ERROR(<class 'samba.drs_utils.drsException'>): DRS connection to >> larkin26.micore.us failed - drsException: DRS connection to >> larkin26.micore.us failed: (-1073741772,> Went through DNS again, verified all the resolv.conf files, restarted > all the services... and now DRS seems ok. Not sure what fixed it.Stale DNS cache? that seems likely. -- With best regards, Andrey Repin Monday, April 13, 2015 00:31:14 Sorry for my terrible english...