How to restore .edb files from failed server

Hi there, i have a failed sbs 2003 server. The data drive was still intact so i managed to get the data off as no one had done a backup. I have the exchsrvr directory with the .edb and .stm files in it. I have rebuilt a new server as close as i can get to the old one. How do i get the email back from the .edb files into the new exchange enviroment?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Pete LongTechnical ConsultantCommented:
Hello grovenetsupport,

1.      Move all remaining databases and logs to another location.
2.      Look in the exchange system manager and TAKE note of where all the databases, streaming files and log files should be.
3.      Restore the Exchange Information Store, by copying the originals back from your failed hardware.
4.      There should now be a priv1.edb file and a pub1.edb file in the right location.
5.      Create the matching STM files with the following commands (change the paths accordingly)

Note: doing this on a large database (Like Priv1.edb can take several hours and it may appear to have hung, be patient)

C:\Program Files\exchsrvr\BIN>eseutil /p /CREATESTM f:\exchsrvr\priv1.edb
C:\Program Files\exchsrvr\BIN>eseutil /p /CREATESTM f:\exchsrvr\pub1.edb

6.      Now issue the following commands (they complete quickly)

eseutil /mh f:\exchsrvr\priv1.edb
eseutil /mh f:\exchsrvr\priv1.stm
eseutil /mh f:\exchsrvr\pub1.edb
eseutil /mh f:\exchsrvr\pub1.stm

7.      Download and Run

8.      Mount the information Stores.

9.      Reboot



Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
grovenetsupportAuthor Commented:
Thanks for this going to try this now but can i ask, do i have to dismount the stores first and stop any exchange services?
Philip ElderTechnical Architect - HA/Compute/StorageCommented:
Another methdology:
Tie the above into:
for another method using ExMerge.

Your store may mount, but since you have recreated everything, your user's SIDs are different so you may need to manually reconnect the mailboxes to each user.

Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

grovenetsupportAuthor Commented:
Ok will have your babies for getting me this far and i have got all the mailboxes back but i cant view any of the emails. They are showing in the inbox etc but i cant open any or view anything int he reading pane?
Philip ElderTechnical Architect - HA/Compute/StorageCommented:
Not sure who that is directed at! :)


To Reconnect (or Recover) a Deleted Mailbox
1. In Exchange System Manager, locate the mailbox store that contains the disconnected mailbox.
2. Click the Mailboxes object under the mailbox store.
3. If the mailbox is not already marked as disconnected (the mailbox icon appears with a red X), right-click the Mailboxes object, and then click Cleanup Agent.
4. Right-click the disconnected mailbox, click Reconnect, and then select the appropriate user from the dialog box that appears.
5. Click OK.

grovenetsupportAuthor Commented:
Sorry was not very clear. I have completed that stage and all mail is there but i cant open any of it. The mailbox sizes and message are as they were before but the mail wont open in the reading pane or if you double click it??????????
grovenetsupportAuthor Commented:
After further checks we are unable to open any external e-mail that has been restored. All internal e-mail opens as normal and any new external e-mail received this morning also opens fine.

Error "Can't open this item" The operation failed.
Philip ElderTechnical Architect - HA/Compute/StorageCommented:
Check permissions on the mailboxes to make sure the appropriate users have full access to them. Use another SBS box if need be to reference the default permission configuration for a user and their mailbox.
grovenetsupportAuthor Commented:
The fault was restoring just the pub and priv.edb files and not the stm files. Doing this only left links and not emails. We have used the stm files from the old server and rebuilt the exchange again and all works ok now
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.