Monday, August 6, 2007

Exchange Database - Moving/Restoring

Exchange must be equal or newer service pack level from original server.

Use 2 private store and 2 public store files - not log files.

Copy files to MDBDATA folder and attempt to Mount Databases.

If there is an error you can try the following procedures (KB906148)

Option 2 - Repair the database
1.
Open a command prompt.
2.
Move to the Drive:\Program Files\Exchsrvr\Bin folder.
3.
Type the following command:
eseutil /p "drive:\program files\exchsrvr\mdbdata\database_file_name.edb"
4.
Defragment and rebuild the database so that you can use this database in a production environment. To do this, type the following command:
eseutil /d /t:x "drive:\program files\exchsrvr\mdbdata\database_file_name.edb"Note In this command, x is a temporary drive location that has free drive space that is equal to at least 110 percent of the size of the database that will be defragmented.
5.
Verify that the status of the database is consistent. To do this, type the following command, and then review the output:
eseutil /mh "drive:\program files\exchsrvr\mdbdata\database_file_name.edb"If the database is consistent, the following text appears in the output:
State: Clean Shutdown
6.
Use the Microsoft Exchange Server Information Store Integrity utility (Isinteg.exe) to repair the logical corruption of the database. To do this, type the following command at the same command prompt:
Isinteg –s exchange_server_name –fix –test alltestsWhen you run this command, you are prompted to select the database against which you want to run the Isinteg utility. Repeat this command for the same database until you receive zero errors and zero fixes in the output.Important If you do not receive zero errors for a database after you run this command several times, you must rebuild the database by creating a new mailbox store on this server or on another Exchange Server server. Then, you must move all the mailboxes to the new store. If you cannot create a new mailbox store, you must rebuild the database by using the following method. Export all data to .pst files, delete the database, and then import the data from the .pst files.
7.
Repeat steps 3 to 6 for each database in the storage group.
8.
Mount the databases.
9.
After the databases are mounted, perform an online backup of the storage group.

No comments: