Subscribe to Windows IT Pro
February 20, 2002 12:00 AM

Recovering WINS

Windows IT Pro
InstantDoc ID #23833
Rating: (0)

If you're running the WINS management utility from the server that you're backing up, you can also use the management console's built-in backup feature to accomplish the backup. In the utility's Win2K version, the option appears on the menu that you access by right-clicking a server name in the left contents pane; in the NT version, the option is available on the Mappings menu. To use this option, you must enable logging on the WINS server. Don't confuse this logging option with the event-logging and advanced event-logging options that I discussed earlier—this option relates not to event logging but rather to whether WINS writes database transactions to the J50.log file before committing them to the database.

Where the Backup Things Are
Whenever you back up WINS, WINS places the database backup files into a two-level-deep subdirectory called \wins_bak\new (under the currently configured WINS database backup path). Under NT, the backup folder's root defaults to \%systemroot%\system32\wins\backup, thus making the full path of the default location \%systemroot%\system32\wins\backup\wins_bak\new.

However, under Win2K, the backup path's root defaults to the \%systemroot%\system32\wins folder—not to a \backup subfolder. The resulting confusion is compounded if other administrators have set up some servers with custom backup paths or if you've upgraded servers from NT to Win2K. Also, if you attempt to manually back up a WINS database on a server that doesn't have an entry for its database backup path, the WINS management utility will prompt you to enter the path. To determine the current location of your WINS backups, you'll need to examine each WINS server configuration. Microsoft recommends that you use the path \%systemroot%\system32\wins. In any case, always use local disks and pathnames in the backup destination path—avoid using network disks or Universal Naming Convention (UNC) pathnames.

Restoring a Wigged-Out WINS
If you discover WINS problems—whether through reports from administrators or users, through errors or garbage record entries in the WINS management console, or through critical errors in your WINS server's System log—you can take steps to start resolving the problem. If the problem is simply that certain WINS records appear to be garbage entries or are somehow invalid, try deleting the offending records from the database. For information about deleting and tombstoning WINS records, see Alistair G. Lowe-Norris, "Tombstones Mark the Coming of the End for WINS," March 1999, InstantDoc ID 4881.

If the problem is more severe and you have specific error codes or event IDs from the System event log, start by searching for the particular error or ID at the Microsoft Support Knowledge Base at http://support.microsoft.com. You might discover clues to the nature of the problem that save you from wrongly assuming that your WINS database is corrupted.

If you're convinced that your WINS database is corrupted, try using the Jetpack utility to confirm your suspicions. If Jetpack confirms corruption—or if you need to bring back an alternative version of the WINS database for other reasons—your next step is to restore the database.

First, stop WINS on the server you're restoring. You can now use one of several methods to accomplish the relatively simple task of restoring a WINS database. One method is to run the WINS management utility from the WINS server you want to restore and use the Restore Local Database option.

You can also restore the WINS database files manually or from backup files that reside elsewhere (e.g., in another directory, on removable storage). Follow these steps to do a manual restore:

  1. Stop WINS on the server.
  2. Delete all files that reside in the \%systemroot%\system32\wins folder (leave any existing subfolders intact).
  3. Restart WINS to create an empty, clean WINS database on the server.
  4. Copy the three WINS backup files (wins.mdb, j500000xx.log, and wins.pat) from your backup source folder to the \%systemroot%\system32\wins folder. If the system asks whether you want to overwrite existing files, answer Yes.
  5. Stop WINS.
  6. Run the WINS management utility on the WINS server and choose the Restore Local Database option. Browse to the location of the backup folder. Be sure to choose the parent of the \wins_bak folder (i.e., \%systemroot%\system32\wins or \%systemroot%\system32\wins\backup).
  7. Run Jetpack to compact and verify the integrity of the restored database.
  8. Restart WINS.

The Microsoft articles "Recovering a WINS Database From Other Backup Sources" (http://support.microsoft.com/default.aspx?scid=kb;en-us;q235609) and "Restoring a Windows 2000 WINS Database from Other Backup Sources" (http://support.microsoft.com/default.aspx?scid=kb;en-us;q244810) describe this procedure in more detail for Win2K and NT, respectively.

Although you can use other methods to restore the WINS database, this procedure is the one that Microsoft supports and recommends. Before you perform any restore operation, you should back up the WINS database files in case you need to recover them later—for example, if you discover that the files you're restoring are corrupted.

Be Proactive
You don't need to be a hapless victim, waiting for your WINS servers to stop functioning. By following this article's recommendations, you can significantly increase the reliability of your WINS environment and reduce the possibility of WINS-related downtime.

Related Content:

ARTICLE TOOLS

Comments
  • Earl Hinkle
    10 years ago
    May 08, 2002

    Sean Daily's articles about recovering essential network services, "Recovering WINS" (March 2002, InstantDoc ID 23833) and "Recovering DHCP" (September 2001, InstantDoc ID 21841), were very informative, especially the suggestions about preparing for disaster. Do you recommend a time interval (e.g., once a month, once a quarter, once a year) for performing the maintenance for those crucial services? Also, have you written any articles about preparing for disaster recovery on Windows 2000 Server or Active Directory (AD)? I'm developing a maintenance schedule and plan to implement the recommendations from your articles.



    ---------------------------------------------------


    How frequently you need to perform the maintenance services I discussed in the articles depends on the size of your organization. Large networks will have an inherently greater use of services such as WINS and DHCP than small networks will have. Thus, performing more frequent maintenance tasks on the databases these services use is important for large networks. In any case, a quarterly maintenance schedule is an absolute minimum*
    a monthly schedule is a better idea for all but the smallest networks.
    Search the archive on Windows & .NET Magazine's Web site (http://www.winnet
    mag.com/magazine) to find other recovery-oriented articles. Look for the third part of my recovering essential services series, "Recovering AD," in an upcoming issue of the magazine.

    --Sean Daily

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.