Jonathan Detert
2015-Mar-09 19:26 UTC
[Samba] ad dc demotion fails trying to use non-existent dc as 'partner server for the4 demontion'
I'm trying to demote dc3 from msad dc service. As the root user, I type this command: samba-tool domain demote -Uadministrator which fails with this error: "Using dc2.infinity.local as partner server for the demotion" The problem is that dc2 was demoted some weeks ago, and is no longer running samba4. Is there a way I can force dc3 to use a different dc as the 'partner server'? Or, is there a way I can clear dc2 out of the memory of dc3? Or, would it be better to treat dc3 as though it were non-functional, and remove it from dc service via another way - e.g. the script mentioned here<https://wiki.samba.org/index.php/Demote_a_Samba_DC#Demote_a_DC_that_isn.27t_accessable_any_more>? Thanks
Marc Muehlfeld
2015-Mar-10 21:20 UTC
[Samba] ad dc demotion fails trying to use non-existent dc as 'partner server for the4 demontion'
Hello Jonathan, Am 09.03.2015 um 20:26 schrieb Jonathan Detert:> which fails with this error: > > "Using dc2.infinity.local as partner server for the demotion" > > > The problem is that dc2 was demoted some weeks ago, and is no longer running samba4.Was dc2 successfully demoted? If yes, you should check, if your replication is working. Maybe not all DCs got that information replicated for some reason.> Is there a way I can force dc3 to use a different dc as the 'partner server'?# samba-tool domain demote --server=... Regards, Marc
Jonathan Detert
2015-Mar-11 21:28 UTC
[Samba] SOLVED: ad dc demotion fails trying to use non-existent dc as 'partner server for the4 demontion'
As far as I could tell, dc2 was successfully demoted. I don't recall any errors when I demoted it. Furthermore, it was not anywhere I could see in ActiveDirectory Users and Computers or Sites and Services. Not in the DNS Manager. However, the problem is now solved: I recreated dc2, added it as a dc, and then I was able to demote dc3, and after that demote dc2. So, in the end all is well. Regards, Jon ________________________________________ From: Marc Muehlfeld <mmuehlfeld at samba.org> Sent: Tuesday, March 10, 2015 4:20 PM To: Jonathan Detert; samba at lists.samba.org Subject: Re: [Samba] ad dc demotion fails trying to use non-existent dc as 'partner server for the4 demontion' Hello Jonathan, Am 09.03.2015 um 20:26 schrieb Jonathan Detert:> which fails with this error: > > "Using dc2.infinity.local as partner server for the demotion" > > > The problem is that dc2 was demoted some weeks ago, and is no longer running samba4.Was dc2 successfully demoted? If yes, you should check, if your replication is working. Maybe not all DCs got that information replicated for some reason.> Is there a way I can force dc3 to use a different dc as the 'partner server'?# samba-tool domain demote --server=... Regards, Marc