Shain Allen
asked on
How to move DHCP Role to another DC1
I have two DCs that are on 2008 R2. I want to move AD and DHCP to two new DCs on Server 2012. I want the two new DCs to have Fail-over AD and DHCP servers. I figure i'll do this in two steps.
1. Move DHCP to the new servers
2. Move AD
I know that Server 2012 allows me to export DCHP server configuration and leases and then import the info into the server 2012 DHCP servers which looks pretty straight forward by using:
Export-DhcpServer –ComputerName win2k8r2-dhcp.corp.contoso .com -Leases -File C:\export\dhcpexp.xml -verbose
and
Import-DhcpServer –ComputerName DHCP1.corp.contoso.com -Leases –File C:\export\dhcpexp.xml -BackupPath C:\dhcp\backup\ -Verbose
My question is how will the network start using the new DHCP server rather than the old. I'm assuming that there is an "Activate" command or something?
1. Move DHCP to the new servers
2. Move AD
I know that Server 2012 allows me to export DCHP server configuration and leases and then import the info into the server 2012 DHCP servers which looks pretty straight forward by using:
Export-DhcpServer –ComputerName win2k8r2-dhcp.corp.contoso
and
Import-DhcpServer –ComputerName DHCP1.corp.contoso.com -Leases –File C:\export\dhcpexp.xml -BackupPath C:\dhcp\backup\ -Verbose
My question is how will the network start using the new DHCP server rather than the old. I'm assuming that there is an "Activate" command or something?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
If you are still monitoring this, I got the following error when I ran the Import command:
Backup-DhcpServer : Failed to back up the database on server DC01.sample.com
to C:\dhcp\backup\.
At line:1 char:1
+ Backup-DhcpServer -Path $mandatoryParams["Path"] -ComputerName
DC01.cbccross.org ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~~~ ~
~~~
+ CategoryInfo : ResourceExists: (DC01.sample.com:root/Micr osof
t/...P/PS_DhcpServer) [Backup-DhcpServer], CimException
+ FullyQualifiedErrorId : WIN32 183,Backup-DhcpServer
Backup-DhcpServer : Failed to back up the database on server DC01.sample.com
to C:\dhcp\backup\.
At line:1 char:1
+ Backup-DhcpServer -Path $mandatoryParams["Path"] -ComputerName
DC01.cbccross.org ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
+ CategoryInfo : ResourceExists: (DC01.sample.com:root/Micr
t/...P/PS_DhcpServer) [Backup-DhcpServer], CimException
+ FullyQualifiedErrorId : WIN32 183,Backup-DhcpServer
ASKER
Okay never mind. the second try worked. it seems.
Would you check the command give in the article. Put -whatif switch that will tell you what it will do and won't do anything else. When you want to import it, remove whatif.
ASKER
after I ran it the second time all of the info was imported. I double checked the address pool and leases were transferred.
Now do I unauthorized the old DHCP Server to complete the process?
Now do I unauthorized the old DHCP Server to complete the process?
From same above link, it was under comment section.
You should definitely avoid having both DHCP servers authorized and servicing clients at the same time since that could lead to duplicate IP address situation leading to bad addresses on the DHCP server. You can do the following sequence of steps -
Remove the binding of the new DHCP server. This will ensure that clients are not serviced by this DHCP server. Even when the binding is removed, you can perform import/export on this DHCP server.
Authorize the new DHCP server
Remove authorization for the old DHCP server
Enable the binding of the new DHCP server. Now the new DHCP server will start servicing the clients.
ASKER
Not sure how to remove or enable binding? Sorry for the dumb question.
ASKER
Sorry. I see the binding command now.
ASKER
How can I verify that the network devices are using the new DHCP server?
thanks for sticking with me on this process. I really appreciate it.
thanks for sticking with me on this process. I really appreciate it.
ASKER
Sorry. I figured it out. I did a IPCONFIG /RELEASE and the /RENEW and the new on showed up
Great, about to post same. However you found it.
ASKER
Now I can uninstall DHCP from the old DC right?
Now the next step I want to do is move AD functionality to the new DCs
thanks again!!
Now the next step I want to do is move AD functionality to the new DCs
thanks again!!
If you want second server to be a DC role. Follow this Guide
http://www.msserverpro.com/migrating-active-directory-domain-controller-from-windows-server-2008-r2-to-windows-server-2012/
2012 steps are bit different.
Also DHCP you can uninstall, however first promote 2012 as DC move everything and then work on old server.
http://www.msserverpro.com/migrating-active-directory-domain-controller-from-windows-server-2008-r2-to-windows-server-2012/
2012 steps are bit different.
Also DHCP you can uninstall, however first promote 2012 as DC move everything and then work on old server.
ASKER
already promoted 2012 as DC.
thanks for the link.
thanks for the link.
FMSO Transfer completed?
ASKER
OOPS. no. never done that before.
ASKER
FSMO Transfer is very important check the link i posted. it has all steps.
ASKER
okay thanks again. I'll check your link
ASKER
ok done with the transfer of FMSO. I double checked it by doing: netdom query FSMO.
Sorry more questions. I hope you don't mind. you've been so good and I appreciate it.
one thing I failed to mention is that I have two 2008 DCs do that I had a failover DC.
Does this mean that the 2012 DC is now a complete DC and can function on it's own?
Does it mean that I no longer need the 2008 DCs?
Sorry more questions. I hope you don't mind. you've been so good and I appreciate it.
one thing I failed to mention is that I have two 2008 DCs do that I had a failover DC.
Does this mean that the 2012 DC is now a complete DC and can function on it's own?
Does it mean that I no longer need the 2008 DCs?
ASKER
I would need to change the Alternate or Preferred DNS Server on the NICs to the new DC?
I'm hoping I'm not taking too much of your time.
I'm hoping I'm not taking too much of your time.
If you don't demote 2008 DC it will be working as additional DC. Preferred DNS set it to self IP.
ASKER
Got it. thanks again.
you are welcome.
ASKER