Hello, this is a long read so grab a coffee or coke, what ever is your poison.
Firstly, I like the idea of DHCP redundancy implemented this way.
Now, I'll get straight to the nitty gritty.
I am having trouble putting it into practice. I have read the other posts in regards to sync issues and tried some of the fixes that they have suggested but the fixes have not worked for me. So let me explain my issue in more detail as it's a slightly different issue in regards to syncing.
(Server Info Follows)
Main DHCP server (DC itself) (lets call it server1): Windows 2003 Standard R2 V5.2 SP1
DHCP scope contains 20 scopes with 13 main server options; each scope contains an extra router option.
2nd server (Also a DC) configured to be the backup DHCP server (let’s call it server2): Windows 2003 Enterprise V5.2 SP1
(Background & Issue)
Ok here goes:
I followed the install instructions line by line and had no issue installing the service.
I edited the main bat file to point to a directory on server 2 for exporting the DHCP backup to. I then set the bat file as a scheduled task and it worked fine. I used the directory DHCP-Redundancy on the second server. I ran the scheduled task to confirm that the backup.txt was being created, and that the exporting.txt was being deleted after the backup file had been made. Everything on server 1 works as it was expected to.
On the 2nd server, I ran the configuration utility and pointed the service to our mail server and to our primary DHCP server. I ran the mail test and received the test email without an issue. I then installed the service to server 2 following the install instructions. I then started the service and waited for backup.old to be created.
Backup.old was created so I stopped the DHCP service on the primary DHCP server, and by the time I went back to the 2nd server DHCP redundancy had already started the DHCP service. I checked the scopes and info and everything was correct. Everything had been fully replicated the way it was supposed to be. At that time I thought nothing of it, restarted the main DHCP service on server 1 and DHCP redundancy stopped the DHCP server on server 2 automatically. I received emails informing me of this also.
I left it alone for a couple of days, and decided to check up DHCP redundancy to make sure everything was fine. Server1 appeared to be fine and running as per normal. Server2 had its DHCP server running when it was not supposed to be. I checked to make sure that the connectivity between the 2 servers had not been interrupted. It had not been. I checked the DHCP options on server2 and all the scopes had vanished, but 3 scope options had remained. I stopped the DHCP service, and DHCP redundancy restarted the DHCP service even though the primary DHCP service on server 1 was already running. This left me a little confused.
I disabled both the DHCP service and DHCP redundancy on server 2 while I began troubleshooting to see if I could work out the issue. I decided to delete the backup.old and the backup.txt from the second server, and re-run the bat file on server 1 manually. I then restarted the DHCP-redundancy service and set it to automatic, I then set DHCP-server service to automatic also and left it go for a couple of minutes. After 2 minutes backup.old was created and I checked the scope options on server 2 after stopping the DHCP service on server 1. This time a couple of scopes had been copied, and about 5 scope options. So it was a little more then last time, but not as good as the first time.
This appeared to be quite random, as I was trying to re-create an error for troubleshooting. I restarted the DHCP-redundancy service a couple of times, running the bat file before each time just to see what would happen. Sometimes the DHCP service on the 2nd server would get half of the DHCP server info, sometimes 1 or 2 scope options, other times 18 out of the 20 scopes. It is quite random.
I decided that it was a little too random, and decided to start everything again from scratch. So I removed everything relating to DHCP-redundancy and started again.
I followed all the same steps as previously written, and the first time it was installed and tested it appeared to be running perfectly. All scope options were copied correctly and all scopes were copied.
I ran the bat file again on the primary server, and then restarted the DHCP-redundancy service and the randomness began again.
So that’s my issue, I tried to include as much information as possible on my steps so that you might be able to re-create the error yourself. I would like this to work, so if you have the time to have a look at it, or help me with some troubleshooting it would be greatly appreciated.
(Extra Info)
Net Framework 2 is installed on server 2.
The DHCP service on server 2 keeps starting after the sync does not get all options.
Restarting the DHCP-Redundancy service, after manually running the bat file from server 1 will randomize the scope options or scopes that get applied to the 2nd server.
Email Alerts fail after sync is not done correctly even though connectivity is fine.
Connectivity was being constantly checked during the testing phases, and did not drop out at all.
Both server1 and server2’s event logs show no sign of issues. Server2 DHCP-Redundancy events basically say that everything is running fine.
Also, as I listed before I tried most of the things that were listed in the other sync issue posts and they did not work for me etc.
I would like this to work, so again if you’re able to find time to help troubleshoot it will be greatly appreciated.
Thank you for your time.
Jaspar