Previous Section
 < Day Day Up > 
Next Section


Recovering the SMS Site

Recovery of an SMS site generally falls into two categories: recovering the site database and recovering the site server. If the SMS database fails for some reason, you can restore it from its backup using SQL Server Enterprise Manager. You need to have access to a current backup, of course, as well as to the SQL Server Enterprise Manager console. There’s no restore function in SMS because, presumably, if you need to restore the site in some fashion, you probably can’t open the SMS Administrator Console.

Recovering the Site Database

Recovering the SMS database itself is a fairly straightforward task—which isn’t to imply that it’s a mundane or trivial matter, but rather that it’s cut and dried. You recover the site database by restoring it from a current backup. For example, if you need to move the SMS database to another server running SQL Server for some reason, you would follow these steps:

  1. Close all SMS-related tools, such as all SMS Administrator Consoles, that are accessing the current database, as well as all SMS site server services (including the SQL Monitor service on the system running SQL). You don’t want anything trying to update the database while you’re managing it.

  2. Start SQL Server in single-user mode and back up the SMS database, or schedule a database backup through the SMS Administrator Console. The single-user mode option is set through the Properties dialog box for the database accessible through the SQL Server Enterprise Manager, on the Options tab.

  3. Locate (or install) the other system running SQL Server, ensuring that the same database sort order has been used as on the original server running SQL, as well as the same hardware platform.

  4. Create database and log devices or files (depending on the SQL Server version) that are at least as large as the backed-up database.

  5. Restore the backed-up SMS database to the new system running SQL Server.

  6. Use the Reset option of the SMS Setup program on the site server to point the site server to the location of the new system running SQL Server containing the database.

You would follow similar steps if the database needed to be restored for any other reason, although if you were restoring to the same system running SQL Server, you might not need to perform step 6.

Recovering the Site Server

If you encounter a situation in which the SMS site server itself needs to be recovered—perhaps it crashed or it had be moved to a different physical system—the steps for recovery are somewhat more involved. First of all, your situation would probably be hopeless if you had not already created a current backup of your SMS database, so let’s assume that you’ve been backing it up regularly.

As we’ve seen, other significant elements of the site server in addition to the SMS database need to be backed up in order to completely restore the site server to its previous state. These elements include the SMS and NAL registry keys, the site control file (\SMS\Inboxes\Sitectrl.box\Sitectrl.ct0), and the SMS directory structure and files.

The recovery process begins with the restoration of the SMS site database, of course. However, it will also involve the restoration of the backed-up elements. For example, if you need to reinstall SMS on the site server or install it on a new computer, you’ll restore the previous site by copying the backed-up SMS directory and site control file over the new installation or over the reinstallation. Similarly, you can restore the SMS-related registry keys by using the Windows Registry Editor to replace the existing SMS keys (created when you reinstalled SMS or installed it to a new server) with the backed-up versions of those keys.

In some cases, you could restore just the database itself and let the SMS site server rebuild itself—which it will do eventually. However, any changes you made that were written to the registry but not yet updated to the database will probably be lost. Restoring the SMS site server completely, as described here, will ensure that all elements of the site server are properly synchronized.

Note 

If you need to completely reinstall the SMS site server, all vestiges of the old site server must be cleaned off the server first. This includes uninstalling the SMS client software, removing the registry keys, and removing the remainder of the SMS directories and setup files not removed through the Remove SMS option of the Setup program. Then reinstall SMS, and restore the previous site as outlined above.



Previous Section
 < Day Day Up > 
Next Section