Repairing exchange 2003 database

After a hardware crash, use the following to understand the state of the database and the log files; from the MDBDATA directory

c:\program files\exchsrvr\mdbdata

../bin/eseutil /mh priv1.edb

../bin/eseutil /ml E00.log

Then fix the problem

To Recover (play the transactions logs into the database)

../bin/eseutil /R E00

To restore after recovering from an online backup

../bin/eseutil /CC “d:\temp\First Storage Group”

To Repair (if you don’t need to go back to a online backup, but the recover isn’t working)

..\bin\eseutil /p priv1.edb /spriv1.stm /ttemp.edb

then check the fix

../bin/eseutil /mh priv1.edb

defrag the databases
“C:\program files\exchsrvr\bin\eseutil” /d “c:\program files\exchsrvr\mdbdata\priv1.edb”
“C:\program files\exchsrvr\bin\eseutil” /d “c:\program files\exchsrvr\mdbdata\pub1.edb”

..\bin\isinteg -s eagle -fix -test alltests