Solved

ESEUTIL

Posted on 2011-09-08
52
893 Views
Last Modified: 2012-05-12
Hi
Can someone give me a brief on how to get the eseutil command working. I need to test the integrity of an exchange database.
I've located the eseutil.exe in C:\Program Files\Exchsrvr\bin  I run it which opens a window but when I select and option it just flashes off. I can't open it from a normal command prompt window.

How do I initiate this program.
0
Comment
Question by:smiffy07
  • 26
  • 14
  • 11
  • +1
52 Comments
 
LVL 13

Expert Comment

by:5g6tdcv4
ID: 36501785
open an elevated command prompt. the command you need is 'eseutil /g "mailbox database"
0
 
LVL 13

Expert Comment

by:5g6tdcv4
ID: 36501812
Also your database needs to be dismounted to use eseutil
0
 

Author Comment

by:smiffy07
ID: 36501822
Cheers, it's not mounting anyway! Basically trying to restore a mailbox via retrospect from an old backup (begining of last year) but it's proving tricky!
0
 
LVL 13

Expert Comment

by:5g6tdcv4
ID: 36501838
What error are you receiving when you try to mount the database?
0
 

Author Comment

by:smiffy07
ID: 36501853
its a c1041724 internal processing error , which I think often refers to a disk space issue but it's not. I basically setup a new PC with win 2k3 set as a DC and DNS server. Installed exchange 2003 then restored from a full backup (so I had .edb and .stm files) ESM picked this up but the store wouldn't mount. Then the new store which was created when exchange was installed stopped mounting.
0
 
LVL 13

Expert Comment

by:5g6tdcv4
ID: 36501867
Check event viewer on the server for more detailed information right after you try to mount the database.
I have seen the c104 error before, and I believe,  it was because the first administrative group was not the same name as the original location the server was backed up from
0
 

Author Comment

by:smiffy07
ID: 36501878
OK, well I have re-installed exchange as I really screwed about with it. Now I'm back with a clean install and a mailstore that does mount. If in the database tab of the properties for the mailstore I select "this database can be overwritten by a restore" and then restore the DB's from the backup once more will it automatically replace the original stores with the correct naming convention etc??

Sorry this is probably incorrect to add this question in this thread!
0
 
LVL 13

Expert Comment

by:5g6tdcv4
ID: 36501900
No it will not.
Restore your backup.
Download and run legacydn.exe
Change the name to what the event viewer is saying it should be.
Mount your database

Side note: you can only run the legacydn utility 2 or 3 times before it will hose your test environment
0
 

Author Comment

by:smiffy07
ID: 36501906
Cool thanks

Also, I've noticed that the admin and test user account that I created in AD users and groups are not showing up within the mailboxes folder in ESM. Is this a DNS issue? Unsure how to get the two talking to each other.
0
 
LVL 13

Expert Comment

by:5g6tdcv4
ID: 36501912
Right click the users in ADUC and select mail enable or exchange tasks... and create mailbox
0
 

Author Comment

by:smiffy07
ID: 36501929
The two users already have exchange attributes.
0
 
LVL 13

Expert Comment

by:5g6tdcv4
ID: 36501965
not sure on that....if this is a brand new install with AD and exchange on the box there should not be any issues...
seems to me that this issue is a side note...your main objective is to mount DB and get mail out correct?
0
 

Author Comment

by:smiffy07
ID: 36501984
Yes that's correct. I only need to access one mail account from that DB. I have the two DB files restored to an external drive (as they are 240GB combined) So what I need to know is how to get these into ESM to get them mounted.
An idiots guide would be ideal!!
0
 
LVL 13

Expert Comment

by:5g6tdcv4
ID: 36502045
http://www.edbtopstconversion.com/
300 bucks might be your fastest, most painless solution.

Else please post the exact error you were getting when trying to mount DB (event viewer)
0
 

Author Comment

by:smiffy07
ID: 36502067
I think you might have just saved my life with the utility...this could well be worth 300 bucks!

I'm just running the demo version to see if it finds the mailbox I need!
0
 
LVL 13

Expert Comment

by:5g6tdcv4
ID: 36502449
Great! I am still interested in the event log error just to see if my memory serves me correctly regarding the legacydn being needed to change the first administrative group name
0
 

Author Comment

by:smiffy07
ID: 36502458
No worries, as soon as I've done this scan I will send it over to you.
0
 
LVL 7

Expert Comment

by:dsnegi_25dec
ID: 36506764
0
 
LVL 17

Expert Comment

by:lucid8
ID: 36510219
If the suggested utility doesn't do the trick for you there are other utilities that can do what you are looking for and more, just do a Google search for something like "export offline exchange mailbox database"

NOTE:  whatever you use I would suggest that you only use a copy of the database so that if something goes wrong you don't have have to restore from backup again
0
 

Author Comment

by:smiffy07
ID: 36510254
Hi
Thanks. I ran the recovery tool from Enstella, it ran for about 8 hours then crashed out! I've set it going again using a copy of the database. I'm also trying another restore from Retrospect back into ESM to see if I can troubleshoot and get the store to mount.
0
 
LVL 13

Expert Comment

by:5g6tdcv4
ID: 36510296
Make sure you have enough free space...most data utilities as well as eseutil require 125% of free space available when working with exchange DB's
Again can you please post the event log errors from when you were trying to mount the DB in esm?
0
 
LVL 17

Expert Comment

by:lucid8
ID: 36510303
So was Enstella just trying to open the EDB for 8 hours and then it crashed or ??

Either way thanks for the update and if Enstella doesn't do the trick, you might check do the search to check out other options
0
 
LVL 13

Expert Comment

by:5g6tdcv4
ID: 36510319
nice the search returns your specific company and product
0
 

Author Comment

by:smiffy07
ID: 36510344
Lucid, Enstella is basically processing the EDB file. I can see all the mailboxes listed but cannot click or do anything until it has finished processing.

I'm just doing another restore from retrospect to a fresh exchange install. Once it's in ESM I will attempt to mount then if fails I will send over the event log.
0
 
LVL 17

Expert Comment

by:lucid8
ID: 36510362
Odd that it would blow up or take that long to open.  

1. How large is the database?
2. What do you get when you run ESEutil /mh against the DB?

0
 

Author Comment

by:smiffy07
ID: 36510372
The database is 142GB and ESEutil did not flag up an issues with the DB
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 17

Expert Comment

by:lucid8
ID: 36510406
Odd, it shouldn't take that long to mount
0
 

Author Comment

by:smiffy07
ID: 36510577
Well Enstella is having a hard time processing this database! Maybe I picked the wrong utility!
0
 
LVL 17

Expert Comment

by:lucid8
ID: 36510719
I suppose it could  be a damaged db but does enstella say it needs repair or does it justbtry to open for 8 hours?

Did you restore the logs with the database?

If so did enstella ask for and till them up to ensure you get all data?
0
 

Author Comment

by:smiffy07
ID: 36510741
The log files were not restored with the EDB and STM files. Enstella hasn't moaned at all...it's just processing the file.
0
 
LVL 17

Expert Comment

by:lucid8
ID: 36510850
Odd

Does it have a place to designate the location if log files exists

If you just want historical data you don't need the logs but if you want the most complete data set you should restore the logs with the edb and have them.rolled up.  Haven't looked at enstella in a while so i don't know if they incorporate the ability to roll the logs or not

That said when a db is backed up by an online agent its dirty upon restore until you roll the logs and any utility should give you the choice to roll them up and put the db in a.consistent state or to repair the db if logs are unavailable

0
 
LVL 17

Expert Comment

by:lucid8
ID: 36512515
How are things going?

Another thing you can try is to restore the logs along with a new copy of the logs and run eseutil /r to recover the logs into that copy of the database  More here http://technet.microsoft.com/en-us/library/aa998074%28EXCHG.65%29.aspx
0
 

Author Comment

by:smiffy07
ID: 36513219
I've just finished restoring the DB again to a clean copy of exchange to see if it loads into ESM and if I can then mount it. Enstella is still going!
0
 
LVL 17

Expert Comment

by:lucid8
ID: 36513249
Does Retrospect give you the option of recovering the logs?   If so you should do that and then it should roll them up but if not you can do by hand and try to mount
0
 

Author Comment

by:smiffy07
ID: 36513261
No it doesn't. Restore complete. Attempt to mount the mailbox store and get the internal processing error message C1041724

There are two mailstores now. One for the original store and the newly restored one.
0
 
LVL 13

Expert Comment

by:5g6tdcv4
ID: 36513350
turn on advance event logging for exchange...
set these registry keys and then try to mount the Database and then check the event log. it will give you more detailed info
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeIS\Diagnostics\9000 Private
9003 Transport General
9005 General
9028 DS Synchronization
9015 Logons

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeIS\Diagnostics\9002 System
9057 Client Monitoring

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeSA\Diagnostics
RPC Calls

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeDSAccess\Diagnostics
1 General
4 Config
5 Ldap
0
 

Author Comment

by:smiffy07
ID: 36515915
0
 

Author Comment

by:smiffy07
ID: 36515919
OK, in the event logs I get this:

Event ID: 619

Information store attempted to attach database [name]  but it is a database restored from a backup set on which hard recovery was not started or did not complete successfully.
0
 

Author Comment

by:smiffy07
ID: 36515954
Following on:

I've run eseutil \g over the restored edb file and I get the following:

Operation terminated with error -550. Database was not shut down cleanly. Recovery must be first run to properly complete database operation for the previous shutdown.

Now what?!
0
 

Author Comment

by:smiffy07
ID: 36515961
sorry another question. Can I run eseutil /r over the file if I haven't actually got the log files? all retrospect restored was the edb and stm files
0
 
LVL 13

Expert Comment

by:5g6tdcv4
ID: 36516027
No you don't need to run /r
since you are running against a restored backup on a test system I would just run eseutil /p and let it clean everything up
the /p switch could potentially erase data from the edb file but the odds are low since you are running against a backup
0
 

Author Comment

by:smiffy07
ID: 36516041
Ok running that now, i have got a message saying database is not up to date. to ensure the database is up to date please use the recovery operation.

I'm guessing that's normal and I can ignore that as i'm running against a restored backup? at the moment it's just stopped with a flashing curser and I can't type anything so assuming it's running?

Sorry for the simple questions, I've not done this before!
0
 

Author Comment

by:smiffy07
ID: 36516046
UPDATE: it's not come up with the scanning database catalog section. I will just let it run!
0
 

Author Comment

by:smiffy07
ID: 36516049
Sorry..I meant to say its now come up with the scanning.......
0
 
LVL 13

Expert Comment

by:5g6tdcv4
ID: 36516061
Sweet! you are getting closer by the minute
0
 

Author Comment

by:smiffy07
ID: 36516063
I know, cheers for all advice so far. Will report back once it's finished.
0
 
LVL 17

Expert Comment

by:lucid8
ID: 36516266
Nice, hope this will let you mount the DB upon completion.  

NOTE: Normally if you were going to run in production you would want to run eseutil /d and then isinteg to clean up the database, however since you just want to mount and export data you should be able to get away without it
0
 

Accepted Solution

by:
smiffy07 earned 0 total points
ID: 37055601
This has been completed.

I took a snapshot of our DC, made it into a VM and run a test domain on a different subnet. Restored the DB to exchange and got into the mailbox then exported to PST
0
 

Author Closing Comment

by:smiffy07
ID: 37087189
Completed
0
 
LVL 17

Expert Comment

by:lucid8
ID: 37057063
Excellent to hear you got the issue resolved and crazy how VM's have changed the way we can resolve issues eh?
0
 

Author Comment

by:smiffy07
ID: 37057159
Yeah, it took a while to replicate our current domain and was a whole new learning curve but so glad it worked. VM's saved my skin!!! Think I will virtualise some of our DB servers as it seems much more efficient.
0
 
LVL 17

Expert Comment

by:lucid8
ID: 37057178
Yeah it certainly can be and you should take a look at PHD Virtual as well as Veeam since they both have some interesting twists in what you can do with virtualized systems
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Utilizing an array to gracefully append to a list of EmailAddresses
Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
In this video we show how to create an Address List in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Organization >> Ad…
To show how to generate a certificate request in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Servers >> Certificates…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now