ESEUTIL

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.
smiffy07Asked:
Who is Participating?
 
smiffy07Author Commented:
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
 
5g6tdcv4Commented:
open an elevated command prompt. the command you need is 'eseutil /g "mailbox database"
0
 
5g6tdcv4Commented:
Also your database needs to be dismounted to use eseutil
0
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

 
smiffy07Author Commented:
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
 
5g6tdcv4Commented:
What error are you receiving when you try to mount the database?
0
 
smiffy07Author Commented:
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
 
5g6tdcv4Commented:
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
 
smiffy07Author Commented:
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
 
5g6tdcv4Commented:
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
 
smiffy07Author Commented:
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
 
5g6tdcv4Commented:
Right click the users in ADUC and select mail enable or exchange tasks... and create mailbox
0
 
smiffy07Author Commented:
The two users already have exchange attributes.
0
 
5g6tdcv4Commented:
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
 
smiffy07Author Commented:
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
 
5g6tdcv4Commented:
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
 
smiffy07Author Commented:
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
 
5g6tdcv4Commented:
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
 
smiffy07Author Commented:
No worries, as soon as I've done this scan I will send it over to you.
0
 
lucid8Commented:
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
 
smiffy07Author Commented:
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
 
5g6tdcv4Commented:
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
 
lucid8Commented:
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
 
5g6tdcv4Commented:
nice the search returns your specific company and product
0
 
smiffy07Author Commented:
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
 
lucid8Commented:
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
 
smiffy07Author Commented:
The database is 142GB and ESEutil did not flag up an issues with the DB
0
 
lucid8Commented:
Odd, it shouldn't take that long to mount
0
 
smiffy07Author Commented:
Well Enstella is having a hard time processing this database! Maybe I picked the wrong utility!
0
 
lucid8Commented:
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
 
smiffy07Author Commented:
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
 
lucid8Commented:
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
 
lucid8Commented:
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
 
smiffy07Author Commented:
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
 
lucid8Commented:
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
 
smiffy07Author Commented:
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
 
5g6tdcv4Commented:
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
 
smiffy07Author Commented:
0
 
smiffy07Author Commented:
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
 
smiffy07Author Commented:
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
 
smiffy07Author Commented:
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
 
5g6tdcv4Commented:
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
 
smiffy07Author Commented:
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
 
smiffy07Author Commented:
UPDATE: it's not come up with the scanning database catalog section. I will just let it run!
0
 
smiffy07Author Commented:
Sorry..I meant to say its now come up with the scanning.......
0
 
5g6tdcv4Commented:
Sweet! you are getting closer by the minute
0
 
smiffy07Author Commented:
I know, cheers for all advice so far. Will report back once it's finished.
0
 
lucid8Commented:
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
 
smiffy07Author Commented:
Completed
0
 
lucid8Commented:
Excellent to hear you got the issue resolved and crazy how VM's have changed the way we can resolve issues eh?
0
 
smiffy07Author Commented:
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
 
lucid8Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.