|
Overlooking the world of SBS2003 and Office Systems 2003
|
|
|
Exchange
Disaster Recovery General Information Copyright: Marco Mels, Comments to: marcoedwin@hotmail.com Version: 3.0 Abstract This document describes several scenarios regarding Exchange. Please note that this document does not describe how to plan the backup and restore procedure. The information has not been reviewed by Microsoft and does not intend to speak on behalf of Microsoft. Distribute this document freely; note that the author cannot give you warranties or assurance regarding errors or anything else. You can use the tools that are discussed in this document at your own risk.
Please note that Microsoft recommends customers to call Microsoft Product Support Service in case of an Exchange disaster and recovery scenario. Running the tools that are discussed in this document is at your own risk. This document is only intended to help an administrator to understand the concept as a whole. If you are not an expert, then this is a checklist of what you already should know before administering an Exchange environment. If you are not very comfortable with the implications of this document, you should contact Microsoft Product Support Service for online assistance. Table
of contents 1
General information
2
Exchange and the tools to use
3
Three things to take into consideration
3.1
Exchange Optimizer
3.2
Exchange databases and log files
4
Tools and parameters and general precaution
4.1
General precaution: Disk Space
4.2
What is needed for a successful Exchange recovery
4.3
The parameters
4.3.1
Checking the state of each database
4.3.2
Making the databases consistent: caution
5
Scenario: “Moving Exchange to another machine”
5.1
General information
5.1.1
Pre-installation requirements
5.1.2
Reinstall Exchange, SAM database and directory store
1 General information 1.1 Software agents In case of a disaster and recovery scenario, you should always make sure there are no software agents running in the background. Meaning: you should verify that you, as the administrator, remove the virus scanner, or any other software agent that runs in the background, from the system first. This is really important, because the point is that the mail server should be up and running again and problems with locked files or any other problem should be avoided before taking any action. 1.2 Solving the actual cause is more important Secondly there is the event log file. Event log files are extremely important in case of disaster recovery. Looking at the actual cause of the disaster and even better, solving the original problem first, is the best course of action. In this case you can set the Exchange services to manual and after you have rebooted the Exchange server, check what events are popping up. 1.3 Hardware and software requirements Another thing is that Exchange consumes loads of RAM (Random Access Memory). Make sure you have enough of it or at least that you run your Exchange Server configuration with the minimum required. Configure the paging file to at least total RAM * 1.5 or total RAM * 2 for the minimum size. The maximum size of the paging file should be set to a higher size. 2 Exchange and the tools to use 2.1 Getting Exchange up and running again and minimizing downtime In case of a disaster recovery scenario, the administrator has to decide if he wants to restore from latest backup or “try” to get the databases back to a consistent state. First of all, the administrator has to verify that there is a recent backup available. If there isn’t, there are not many options left. However, if there is one, the administrator has to verify if the backup is recent and if the backup is consistent. In general there are two options here: 1. Restore from previous backup. 2. Run some integrity tools on the Exchange databases. 2.2 General information on the tools With Exchange 4.0 and 5.x, there are some tools you can use to get the system up and running again. You can find these tools in the following folder: X:\EXCHSRVR\BIN In case of disaster recovery scenario, please make sure you understand the several risks of using these tools. You can find more information on the Internet, for example: 1. http://www.microsoft.com/exchange/DeployAdmin/DeployAdmin.htm. 2. http://www.microsoft.com/technet/support/default.htm.
2.3 Most important tools for a disaster recovery scenario The tools that make the administrator’s live more easily: 1. ISINTEG.EXE (located in the \EXCHSRVR\BIN folder). 2. ESETUIL.EXE or EDBUTIL.EXE.EXE (located in the\SYSTEM32 folder). 3 Three things to take into consideration 3.1 Exchange Optimizer After you have successfully installed Exchange, Exchange asks the administrator if he would like to run the Exchange Optimizer. This is a really cool tool that separates the Exchange databases and Exchange log files from each other. Of course the tool does more than that, however the Exchange Optimizer will not be discussed in this document. In case of disaster recovery, you should really make sure you understand the way Microsoft Exchange stores the data. Let me summarize the most important folders. 1. First of all, there are the program files. Exchange program files are located in the following folder: \EXCHSRVR\BIN. 2. The information store (PRIV.EDB/PUB.EDB and some other files) is located in the following folder: \EXCHSRVR\MDBDATA. 3. The directory store (DIR.EDB and some other files) is located in the following folder: \EXCHSRVR\DSADATA. However, remember that after you have run the Exchange Optimizer, there is not just one \MDBDATA and \DSADATA folder. Exchange stores the data and the log files at separate locations. The trick is that you should backup all the folders named \MDBDATA and all the folders named \DSADATA. 3.2 Exchange databases and log files Generally, if you understand that log files and Exchange databases can be corrupt, you understand the most important things of disaster recovery. That means that, after you have scanned the Exchange databases for corruption and after that you have noticed that there is no corruption involved, there still might be a possibility that you cannot start up one or all of the Exchange services. 4 Tools and parameters and general precaution 4.1 General precaution: Disk Space Exchange 4.0, 5.0 and 5.5 4.2 What is needed for a successful Exchange recovery Before running any tools on the Exchange databases, you should make sure you have a consistent and recent backup of the following files: 1. PRIV.EDB (mail messages). 2. PUB.EDB (public folder hierarchy). 3. DIR.EDB (objects within Exchange). Best practice is that you stop all the Exchange services and make a file copy of the following folders: EXCHSRVR\MDBDATA. EXCHSRVR\DSADATA NOTE: make sure you have a copy of all the \EXCHSRVR\MDBDATA and \EXCHSRVR\DSADATA folders. For more information, see the Online Help within Exchange Administrator and search for “Exchange Optimizer”. Check all your hard drives or partitions. There might be a case that there is more than one \MDBDATA and \DSADATA folder. You need to back up all of these folders first. 4.3 The parameters4.3.1 Checking the state of each database Exchange 4.0 and 5.0 NOTE: if you run this tool from the \EXCHSRVR\BIN folder, the text file will be placed in the same folder. You can view the output with a standard editor such as NOTEPAD.EXE or EDIT.COM. Running the tool again, replaces the original text file. It does not append the new data to the text file. There is no need to run the tools in the order provided in this document.
If all databases are consistent, you need to run the following command: ISINTEG - PATCH NOTE: ISINTEG.EXE needs the System Attendant, Message Transfer Agent and Directory to be started. You can do that by using the Control Panel/Services applet. After that this tool has completed successfully, start up the rest of the services. 4.3.2 Making the databases consistent: caution Assuming that each database is “Inconsistent”. This means that the administrator will have to do some scanning and run some basic integrity checks. The precaution in this case is that you have made a file copy of the following folders: \EXCHSRVR\MDBDATA \EXCHSRVR\DSADATA 4.3.2.1 The scanning itself Note: all the Exchange Services should have been stopped. Exchange 4.0 and 5.0 EDBUTIL.EXE.EXE /d /r /ispriv. EDBUTIL.EXE.EXE /d /r /ds. ESEUTIL.EXE /p /ds. After you have run the repair option of the EDBUTIL.EXE or ESEUTIL.EXE tool for each database, you should start up the System Attendant, Message Transfer Agent and Directory Store. It should start now. Sometimes it happens after starting up the Information Store, your users report that some mail cannot be opened and seems to be corrupted. In this scenario, some additional scanning needs to be done by the administrator. The following command should be executed from the \EXCHSRVR\BIN folder. Note that the System Attendant, Message Transfer Agent and the Directory Store need to be started. Exchange 4.0 and 5.0 ISINTEG –fix –pri. Exchange 5.5 ISINTEG –patch. 5 Scenario: “Moving Exchange to another machine” 5.1 General information In this scenario, the moving of Exchange 5.5 to another machine or hardware will be discussed. In the previous chapters, the restoring of Exchange to the same machine was discussed. There was no need to reinstall Exchange at that point. In this chapter, a full reinstall will be discussed. After the reinstall has been completed successfully, a full restore of the (old) Exchange databases to this newly installed machine will have to be performed. Note that there are some pre-installation requirements. 5.1.1 Pre-installation requirements Before installing Exchange to another machine, the administrator has to make sure that he knows about the original install of Exchange. It is really important that the administrator documented the settings correctly. During install of the new Exchange Server, the administrator must type in the original directory name of the Organization and Site name. If the administrator makes a typing error, there is no way to restore the original Exchange databases to the newly installed Exchange Server. To make sure that the administrator knows the original directory name of the Organization/Site name, he will have to follow the steps as described below: 1. Start up Exchange Administrator program. 2. Point to the Organization name. 3. Point to the File menu and select the Properties. 4. Document the directory name of the Organization name. 5. Point to the Site name. 6. Point to the File menu and select the Properties. 7. Document the directory name of the Site name. Best practice in this case is that you also document the other settings of Exchange, such as the several settings of the Internet Mail Service. Any other settings, the administrator specifically configured for this Exchange environment, will not be discussed in this document. 5.1.2 Reinstall Exchange, SAM database and directory store In this scenario the reinstall of Exchange will take place on a different machine. Meaning: the newly installed NT machine does not contain the original users. The original SAM database is not being used. The thing is that the directory store cannot be restored because it contains references to the original SAM database. Therefore, in this scenario, the directory store will not be restored. Only the information store will be restored to the newly installed Exchange server. 5.2 The procedure itself
After that the administrator performed a full reinstall of NT, created the users and reinstalled Exchange with the latest service packs, the restore will have to be done. NOTE: during the install of the new Exchange server, the setup program will ask for the name of the Organization and Site name to be created. The administrator must use the original Organization and Site name that he documented earlier. That is really important. Otherwise, he will have start up all over again. NOTE: do not run the Exchange Optimizer after the install of the Exchange Server box. The procedure will look like the following: 1.
Stop the Exchange Server
services from Control Panel/Services on the newly installed Exchange Server. 2.
Clear all the files in the
\MDBDATA folder. 3.
Copy the PRIV.EDB and
PUB.EDB to the \MDBDATA folder you previously cleared. If you restore from tape
backup, you restore the Information Store. Not the directory store or DIR.EDB. 4.
Start up System Attendant/Message Transfer Agent/Directory Store from
Control Panel/Services. 5. Run ISINTEG –patch from the command prompt. Start up the rest of the services. 6.
Start up the Information
Store. 7.
Run Consistency Adjuster (Start up Exchange Admin program,
Site/Configuration/Servers/YourServerName/File Menu/Properties/Advanced
button/Consistency Adjuster/Enable four options/All inconstencies). 8.
From the Recipients Container in Exchange Admin, you should get
the properties of each mailbox and NOTE: the administrator will have to edit each MAPI profile to point to the newly installed Exchange Server machine. If the administrator has used the same machine name, there might be a possibility that he will have to edit each MAPI profile and that he has to click on the “Check name” feature. |
|
Send mail to
Hollis@outlookbythesound.com with
questions or comments about this web site.
|