Dynamic Host Configuration Protocol |
Table 4.14 lists the possible DHCP service messages that might appear in the System event log when the DHCP server database becomes corrupted:
Table 4.14 Corrupt Jet Database Messages
Event ID | Source | Description |
---|---|---|
1014 | DhcpServer | The Jet database returned the following Error: –510. |
1014 | DhcpServer | The Jet database returned the following Error: –1022. |
1014 | DhcpServer | The Jet database returned the following Error: –1850. |
Typically, Jet errors can be resolved by manual offline compaction of the database using the Jetpack utility. In cases where Jetpack.exe fails to repair the database, restoration of the DHCP server database as described in the following sections can be used to recover the server database and restore DHCP service at the server computer.
To recover a corrupted DHCP database, you can use the following options for restoring the database:
This method is recommended as the preferred method of recovery because it involves less risk of losing information previously configured and stored by the DHCP server and is much simpler to perform.
If the DHCP server database becomes corrupted or is lost, simple recovery is possible by replacing the server database file (Dhcp.mdb), located in the
If DHCP Manager has been used previously to enable backup, you can obtain the backup copy of the server database file located in the
Before restoring the database file from backup, the DHCP service must first be stopped. Once you have copied the backup file to the
To stop the DHCP server service, type the following at a command prompt:
net stop dhcpserver
Once the DHCP service has been stopped, the following procedure can be used to safely restore a backup copy of the database from either backup media or the DHCP service backup folder.
First, move the files from your existing DHCP folder to a different folder location, such as \Olddhcp. Be careful to keep the DHCP folder structure intact. For example, type the following set of commands at a command prompt to perform this step:
md c:\Olddhcp
move
Next, remove the corrupted server database file. This can also be done at the command prompt:
del
You can then copy the backup database file into the DHCP service folder. The path to be used when performing the actual copy operation varies (as shown in Table 4.15), depending on the specific server version of Windows running on the computer where the DHCP database file is being restored.
Table 4.15 Location of DHCP Database Files
Server version | Copy command usage |
---|---|
Windows NT Server 3.51 | copy |
Windows NT Server 4.0 | copy |
Windows 2000 Server | copy |
Once the backup database file has been copied to the correct DHCP folder location for your server computer, you can restart the DHCP service.
To restart the service, type the following at the command prompt:
net start dhcpserver
The previous procedure should allow the DHCP service to start, but if scope information is missing, it might be necessary to use a backup copy of your registry to reconfigure the values necessary for restoring your scope and client reservation information.
If the hardware for the DHCP server is malfunctioning or other problems prevent you from running Windows 2000, you must rebuild the DHCP database on another computer.
To rebuild a DHCP server