Exchange Steps To Fix Database If U Delete The Logs
Exchange Steps To Fix Database If U Delete The Logs
Here I have tried to explain the terminologies involved in a repair process like how the Exchange
JET database stores information properly arranged in physical and logical pages and how the
repair, defrag and ISINTEG process get rid of corruption.
Bad Checksum on Exchange Database: http://msexchangeguru.com/2009/07/13/checksumerror/
Here, lets look at identifying a checksum error, understanding health of an Exchange database
and how to know which log file belong to which database.
A step by step walk-through of procedure to be followed when exchange database fail to
mount in Exchange System Manager:
1. Perform the Eseutil /mh Path of the database as indicated below and check the state of the
database.
Restore.env Location
12. Make sure we take a copy of the folder containing the logs and restore.env file as the
content of the folder will be lost if the hard recovery completes or fails.
16. If the backup was taken a few days back and there were logs created in the production
location once the backup was done, then we must make sure that the production location contains
the sequence of logs from the one in the restore.env location. In this case, the restore.env folder
contained the last log file as E0000003.log. If the production location does not contain a
sequence of this (i.e. E0000004.log), the hard recovery command will fail.
17. We can use the eseutil /cc Path of the restore.env folder /t in order to avoid playing the logs
in the production location. (Kindly make sure to take a copy of the folder once again before
performing the command as mentioned in step 12. However, in this case, there will be data loss
of the mails created after the backup was taken.
18. We can mount the stores successfully.
How to run HARD REPAIR:
19. We can Hard repair the databases, to get them back into a clean shut down state in case we do
not have a valid back up. To do so type the command:
D:\Program Files\Exchsrvr\Bin>eseutil /p D:\Exchsrvr\Mailbox Store (SERVER).edb
20.
22. Once Eseutil /p finishes we will need to defrag the databases, to do so type the following
command: Note: You must have available hard disk space equal to 110 percent of the size of the
database that you want to defragment.
23. To defragment Priv.edb, type the following command at the command prompt, and then
press ENTER:
24. D:\Program Files\Exchsrvr\Bin>eseutil /d D:\Exchsrvr\Mailbox Store
(SERVER).edb
Offline Defrag
25. Note If the private and the public information store databases are large, this step may take
some time. When you are prompted to confirm this operation, choose OK.
XADM: How to Defragment with the Eseutil Utility (Eseutil.exe) http://support.microsoft.com/?
id=192185
26. Once Eseutil /d finishes Mount the store & Dismount the store immediately then perform the
below steps.
How to run ISINTEG:
27. Use Isinteg.exe to fix the Pub1.edb database and the Priv1.edb database. The Isinteg.exe
utility runs a test on all areas of each of the databases and reports the results. Isinteg.exe also
tries to fix any issues that are encountered.
28. To fix Priv1.edb, type the following command at a command prompt
29. E:\Program Files\Exchsrvr\Bin>isinteg -s (SERVER) -fix -test alltests and choose the
store that we are running the command on.
ISINTEG
You are prompted to select the database to be checked.
Index
Status
Database-Name
Storage Group Name: First Storage Group
1
Offline
Mailbox Store (servername)
2
Offline
Public Folder Store (servername)
30. Enter a number to select a database or press Return to exit.
31. You can only check databases that are marked as offline. The Information Store service
must be started, but the information store must be dismounted.
32. When you select a database, you are prompted with the following message to confirm the
selection:
You have selected First Storage Group / Mailbox Store <servername>
Continue? (Y/N)
33. Press Y and Enter to start checking the selected database.
34. You receive a summary report that indicates the number of tests that were run, the number of
warnings, the number of errors found, the number of fixes attempted, and the time it took for the
program to run. If there are any warnings, errors, or fixes, run the command again. Repeat this
step until there are no warnings, errors, or fixes reported and the report looks similar to the
following text:
Test reference table construction result:
0 error(s); 0 warning(s); 0 fix (es); 0 row(s); time: 0h: 0m: 0s
Test Folder Result:
0 error(s); 0 warning(s); 0 fix (es); 101 row(s); time: 0h: 0m: 0s
Now in test 3 (reference count verification) of total 3 tests;
100% complete.
ISINTEG Completion
Before you execute any command on the database, please make sure that QUICKEDITMODE
is not checked in command prompt properties as it may pause the process upon left click.
Quickeditmode disabled
Best Regards,
Meera Nair
Team @MSExchangeGuru