locked
Ways to seamlessly migrate an existing DC (windows server 2012) to a new server (windows server 2016). RRS feed

  • Question

  • I have an existing domain - but I was given a task to reconfigure a new one.
    I have zero experience in this field some maybe some/all of my questions may sound stupid for you guru.
    1) How do I create a new DC without the need to manually reconnect each and every client to "new domain". It seems to me that the new domain should have a new UUID even if it has the same name as the previous one? What is the industry standard way to do it? Do I need to migrate from the old server to a new one? Or isn't it enough just to migrate, and I have to add a new DC to an existing forest.
    2) What are the instruments to migrate - DNS, DHCP, GPO, and Active Directory itself? Is there a way to migrate it selectively? so wrong settings from the previous DC won't go to a new one?   
    3) How do I properly install a new DC with a minimum downtime? Is there a proper way?

    is it possible to do it seamlessly without copying all the settings from the previous DC?

    Wednesday, July 22, 2020 5:49 AM

All replies

  • Hi,

    please clarify if you have been tasked to create a new *domain* and move everything to it or just a new *domain controller* running a newer OS.

    If it's the former, then you definitely need help from someone who's done this before. But of it's only a new DC, then you can accomplish this with relatively little downtime:

    • Add a second DC to your domain and let everything replicate, including SYSVOL. Do not be impationt, after promotion to DC and the subsequent reboot, just let it run for 2 hours before checking if everything is there.
    • Then move all FSMO roles to the new DC. Again, let 20 minutes pass after the operation.
    • Then demote the previous DC. This is where the downtime begins, since your client only point to the old DC for DNS. After reboot, remove it from the domain and delete the disabled computer object, SRV records in DNS and the server container in AD Sites & Services belonging to the old DC
    • Build a new server under the old DC's name and IP address, add it to domain, promote to DC.
    • Move FSMO roles back, demote and remove the provisional DC.

    These are the overall steps. Some points to watch out for:

    • the above process only migrates AD, DNS and SYSVOL (i.e. GPOs and  scripts). If you have DHCP or other services on the old DC, you need to migrate them as well
    • You will need to reconfigure the DNS settings on your DCs several times during the process.
    • Take a system state backup of the old DC before touching anything.

    If you've never done all this before, I recommend that you play it in the lab once before starting the migration in production.


    Evgenij Smirnov

    http://evgenij.smirnov.de

    Wednesday, July 22, 2020 6:07 AM
  • Is there a way to forcefully reset DHCP and renew DNS on all of the clients? 
    Wednesday, July 22, 2020 6:16 AM
  • Hello martinenko_Edward,

    Thank you for posting here.

    Here are the answers for our questions.

    As I understand, we want to migrate an existing DC (windows server 2012) to a new server (windows server 2016), not reconfigure a new domain.

    Q1: How do I create a new DC without the need to manually reconnect each and every client to "new domain". It seems to me that the new domain should have a new UUID even if it has the same name as the previous one? What is the industry standard way to do it? Do I need to migrate from the old server to a new one? Or isn't it enough just to migrate, and I have to add a new DC to an existing forest.

    A1:For migrating an existing DC (windows server 2012) to a new server (windows server 2016), usually we add a new DC to an existing domain. Though we can perform in-place upgrade operating system from Windows server 2012 to Windows server 2016, but this method is not recommended.


    Q2: What are the instruments to migrate - DNS, DHCP, GPO, and Active Directory itself? Is there a way to migrate it selectively? so wrong settings from the previous DC won't go to a new one?   
    A2: Before we do any change in existing AD domain environment, we had better do:

    1.Check if AD environment is healthy. Check all DCs in this domain is working fine by running Dcdiag /v on every DC. 
    Check if AD replication works properly by running repadmin /showrepl and repadmin /replsum on every DC.
    2.Back up all domain controllers.

    For migrating an existing DC (windows server 2012) to a new server (windows server 2016), usually, the recommended way is as below:

    1.Join a new Windows server 2016 to existing domain. 
    Set the IP address and preferred DNS of this Windows server 2016.


    Join a new Windows server 2016 to existing domain

    2.Install AD DS role and DNS role on this Windows server 2016 and promote this server as a DC (also as a GC).
    3.Check if AD environment is healthy again.
    4.Migrate DHCP or reconfigure DHCP on this new 2016 DC. 

    How to Migrate DHCP from Windows Server 2008 to 2012/2016
    https://brycematheson.io/how-to-migrate-dhcp-from-windows-server-2008-to-2012-2016/
    How to Migrate DHCP from Windows Server 2012 R2 to Server 2016
    https://www.faqforge.com/windows-server-2016/migrate-dhcp-windows-server-2012-r2-server-2016/

    5.If AD environment is running fine, we can transfer FSMO roles to new 2016 DC if needed.
    Demote old DC if needed after transferring FSMO roles. Before we demote 2012 DC, we should also check:
    If the removed DC was a DNS server, update the DNS client configuration on all member workstations, member servers, and other DCs that might have used this DNS server for name resolution. If it is required, modify the DHCP scope to reflect the removal of the DNS server.
    If the removed DC was a DNS server, update the Forwarder settings and the Delegation settings on any other DNS servers that might have pointed to the removed DC for name resolution.

    We can migrate them selectively:
    1.Migrate AD DS role and GPO only (we must migrate AD DS role and GPO together). All DCs and GPO configurations are replicated between DCs in the same domain, so if we add another DC in the existing domain, after AD replication is complete, all DCs and GPOs are synchronous. If there is any issue about AD itself or GPO, we should fix it before migration.
    2.Migrate DNS only. AD-integrated DNS is replicated between DC (DNS) servers in the same domain, so if we add another DNS (DC)  in the existing domain, after AD replication is complete, all DNS (DC) are synchronous. If there is any issue about DNS, we should fix it before migration.
    3.Migrate DHCP only. If there is any issue about DHCP, we can reconfigure it on new DC instead of exporting data from old DHCP and importing date to new DHCP.
    4.If we have other roles on this 2012 DC, we should also migrate these roles if needed.

    Q3: How do I properly install a new DC with a minimum downtime? Is there a proper way?

    A3: We should install new DC during downtime (not working time), so that if there is any issue we will have time to fix it.

    For more information about install DC, we can refer to the link below.
    https://docs.microsoft.com/en-us/windows-server/identity/ad-ds/deploy/install-a-new-windows-server-2012-active-directory-forest--level-200-


    Q4: Is there a way to forcefully reset DHCP and renew DNS on all of the clients?
    A4:
    Reset DHCP
    If there is any issue about DHCP, we can reconfigure it on new DC instead of exporting data from old DHCP and importing date to new DHCP.

    Renew DNS on all of the clients

    Method 1
    Usually, if we have more than two DCs in our domain, we can keep the same IP address and hostname  for new DC as the old one. Then we do not need to renew DNS on all of the clients.

    If we want to use same hostname and IP for new 2016 DC , as the old DC that we need migrate (such as DC1)  during DC migration.
    1) Check AD health and transfer fsmo roles from one DC that we need migrate (such as DC1) to another DC.
    2) Demote DC1 and shutdown.
    3) Delete the computer object from AD.
    4) Change the hostname and IP address of 2016 , same as DC1 and join to domain.
    5) Promote the win2016 server as DC (DNS server and GC server) and monitor health status.
    6) Transfer fsmo roles to new win2016 DC if needed.

    Method 2
    If we only have one DC in existing domain, the hostname and P address for new DC is changed, we can update DNS with PS script via GPO. 
    https://www.jorgebernhardt.com/how-to-set-dns-server-addresses-with-set-dnsclientserveraddress/
    https://devblogs.microsoft.com/scripting/powertip-use-powershell-to-set-primary-and-secondary-dns-server-addresses/

    If anything is unclear, please feel free to let us know.


    This "Directory Services" Forum will be migrating to a new home on Microsoft Q&A, please refer to this sticky post for more details. 



    Best Regards,
    Daisy Zhou

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


    "Directory Services" forum will be migrating to a new home on Microsoft Q&A!

    We invite you to post new questions in the "Directory Services"  forum's new home on Microsoft Q&A!

    For more information, please refer to the sticky post.
    Wednesday, July 22, 2020 10:11 AM
  • Hi
    How are things going on your end? Please keep me posted on this issue. 
    If you have any further questions or concerns about this question, please let us know.
    I appreciate your time and efforts.

    Best Regards,
    Daisy Zhou

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.



    "Directory Services" forum will be migrating to a new home on Microsoft Q&A!

    We invite you to post new questions in the "Directory Services"  forum's new home on Microsoft Q&A!

    For more information, please refer to the sticky post.
    Friday, July 24, 2020 5:50 AM
  • Thank! 

    You said that it's better to Back up all domain controllers.

    How do I do this? What is the best way to do it? 

    Without turning the server off.

    Friday, July 24, 2020 11:50 AM
  • You said that it's better to Back up all domain controllers.


    Who said that?

    You need a system state backup of *one* DC, namely the one holding the FSMO roles. Windows Server Backup is sufficient.


    Evgenij Smirnov

    http://evgenij.smirnov.de

    Friday, July 24, 2020 12:34 PM
  • There is no matter to backup absolutely all DCs, will be enough to backup only FSMO holder or temporary move roles to one dedicated server. If you hasn't got any application for backup purposes just use native - Windows Server Backup.

     

    Friday, July 24, 2020 12:35 PM
  • Hi,
    We can back up a DC as below:

    Back up steps:
    1) Install Windows Server Backup (open Server Manager-> Add roles and features->Features -> Windows Server Backup)
    2) Start->Server Manager->tools-> Windows Server Backup->Local Backup->Action->Backup once

    3) Back up options: Scheduled backup options or Different options
    4) Select backup configuration: Full server (recommended) or Custom (select items to back up: System state)




    Best Regards,
    Daisy Zhou

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.



    "Directory Services" forum will be migrating to a new home on Microsoft Q&A!

    We invite you to post new questions in the "Directory Services"  forum's new home on Microsoft Q&A!

    For more information, please refer to the sticky post.
    Monday, July 27, 2020 4:47 AM
  • Hi,
    Would you please tell me how things are going on your side. If you have any questions or concerns about the information I provided, please don't hesitate to let us know. 
    Again thanks for your time and have a nice day!

    Best Regards,
    Daisy Zhou

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


    "Directory Services" forum will be migrating to a new home on Microsoft Q&A!

    We invite you to post new questions in the "Directory Services"  forum's new home on Microsoft Q&A!

    For more information, please refer to the sticky post.
    Wednesday, July 29, 2020 7:31 AM
  • Hi
    How are things going on your end? Please keep me posted on this issue. 
    If you have any further questions or concerns about this question, please let us know.
    I appreciate your time and efforts.

    Best Regards,
    Daisy Zhou

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


    "Directory Services" forum will be migrating to a new home on Microsoft Q&A!

    We invite you to post new questions in the "Directory Services"  forum's new home on Microsoft Q&A!

    For more information, please refer to the sticky post.
    Friday, July 31, 2020 4:04 AM
  • Hello,

    Greetings!

    Because this technet forum will become read-only since 8/10, in order to provide support for you conveniently , we have posted the same post as this case on the Q&A forum for you. 

    If you need further help about this case, you are welcome to go to the Q&A forum to continue consulting. 

    I am sorry for the inconvenience, thank you so much for your understanding and support.

    New case link:
    https://docs.microsoft.com/en-us/answers/questions/61590/ways-to-seamlessly-migrate-an-existing-dc-windows.html


    Best Regards,
    Daisy Zhou

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


    "Directory Services" forum will be migrating to a new home on Microsoft Q&A!

    We invite you to post new questions in the "Directory Services"  forum's new home on Microsoft Q&A!

    For more information, please refer to the sticky post.
    Friday, August 7, 2020 7:45 AM