ESEUTIL /d Errors on Remote Server

I have Question ID:23103796 open at this time, asked 1/23. Explicit details there. I thought I was on track with that advice, but I seem to have run into a ead end. There seemed to be some confusion between kb244525 and kb255035. I'm committed now, need to finish. Basically, I copied my priv.edb to a non Exchange server for defrag because there was not enough HD space on the Exchange box. It is named     priv.edb     and it is in      E:\priv.edb Defrag      Here are the results of my attempts:

First Try:
E:\priv.edb Defrag>eseutil /d /ispriv /t

Usage Error: Missing temporary database specification

Second try:
E:\priv.edb Defrag>eseutil /d /priv.edb

Usage Error: Missing source database specification.
Operation terminated with error -1003 (JET_errInvalidParameter, Invalid API para
meter) after 0.0 seconds.

Third try:
E:\priv.edb Defrag>eseutil /d /ispriv

Error encountered accessing registry keys/values for specified Exchange Store.
Exchange registery key access was denied, use default setting...
Usage Error: Missing source database specification.
Operation terminated with error -1003 (JET_errInvalidParameter, Invalid API para
meter) after 0.0 seconds.

I hope asking this question while the other one is still open doesnt cause a tear in the space/time continuum, sorry if it does. I'm committed now, need to finish. Any assistance would be immeasurably valuable.
disciple_of_chim-chimAsked:
Who is Participating?
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.

drothbartCommented:
Try this:

On machine without Exchange, assuming there is enough space to make a copy of the compacted database as well:
1. Make a folder called DefraggedDB on a drive with plenty of room. You can compact the DB into that folder, leaving the original uncompacted DB in place where you copied it already (in step 2 below). The logic I'm using is that if something goes wrong you don't have to copy the big file again. Skip this file if you don't care about copying it over again or if you don't have room. It also allows you to keep an uncompacted copy if you want one for any reason.
2. Copy the database and the files mentioned in KB 244525 (Eseutil.exe utility, Ese.dll file and Exchmem.dll) into a different folder than step 1. You did this already.
2. Open command prompt and navigate to that folder.
3. Type (without ") "eseutil.exe /d /p /ds <folder containing DB you want to compact> /t<path and name of folder and filename from step 1>

Note that there is no space after the /t flag. So, to save the file in c:\temp and name the new compacted DB compact.edb, the section would be /tc:\temp\compact.edb.
0
dmorrisroeCommented:
don't forget to run "isinteg -fix -pri -test alltests" after the defrag to fix errors.

drothbarts' steps above should be what you're looking for.

0
disciple_of_chim-chimAuthor Commented:
Nope.


E:\priv.edb Defrag>eseutil /d /p /ds priv.edb /tE:\DefraggedDB\compDB

Warning: Overriding command-line parameters with registry settings
         for the specified Exchange store.

Error encountered accessing registry keys/values for specified Exchange Store.
Exchange registery key access was denied, use default setting...
Usage Error: Missing source database specification.
Operation terminated with error -1003 (JET_errInvalidParameter, Invalid API par
meter) after 0.0 seconds.
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

dmorrisroeCommented:
so e:\priv.edb defrag is the folder with the eseutil dll as well as your original edb?  After your /tE:\DefraggedDB\compDB you need .edb so it would look like:
E:\priv.edb Defrag>eseutil /d /p /ds priv.edb /tE:\DefraggedDB\compDB.edb this will redirect your temp edb to your E\DefraggedDB\
0
drothbartCommented:
eseutil.exe /d <path to DB and name of DB> /p  /t<path and name of folder and filename from step 1>

In above line put in full path and name of database.
0
disciple_of_chim-chimAuthor Commented:
/t<path and name of folder and filename from step 1>
Duh. compDB is a folder. Name is new.edb


E:\priv.edb Defrag>eseutil /d /p /ds priv.edb /tE:\DefraggedDB\compDB\new.edb

Warning: Overriding command-line parameters with registry settings
         for the specified Exchange store.

Error encountered accessing registry keys/values for specified Exchange Store.


Exchange registery key access was denied, use default setting...

Usage Error: Missing source database specification.

Operation terminated with error -1003 (JET_errInvalidParameter, Invalid API para
meter) after 0.0 seconds.

Looks like eseutil still thinks its on the Exchange box.
0
drothbartCommented:
Leave out the DS flag.

I don't fully understand your folder structures and filenames so you'll have to leave them out. ESEUTIL thinks it's an exchange box because of the DS switch.

Use this command from the command line, on the non-exchange box, from the folder where you have the exchange files and uncompacted DB.

ESEUTIL.exe /D <Path and filename to uncompacted DB> /p /t<path and filename for compacted DB>
0
drothbartCommented:
I mean you'll have to fill in your filenames and folders, not leave them out. Sorry, it's getting late...
0
disciple_of_chim-chimAuthor Commented:
I knew what you meant. Standby, working through two remotes.
0
disciple_of_chim-chimAuthor Commented:
ESEUTIL.exe /D priv.edb Defrag\priv.edb /p /tE:\DefraggedDB\compDB\new.edb

Usage Error: Invalid argument  'Defrag\priv.edb'. Options must be preceded by '-' or '/'.

Geez- its choking on my stupid folder\filename, isnt it? Im changing it as we speak. =)
0
drothbartCommented:
Getting rid of the unusual folder name couldn't hurt ;)

I believe what is missing is the path to the folder. Need the drive letter.
0
disciple_of_chim-chimAuthor Commented:
=(


E:\FriggedDB>eseutil.exe /d /p priv.edb /tE:\DefraggedDB\compBD\new.edb

Microsoft(R) Windows NT(TM) Server Database Utilities
Version 5.5
Copyright (C) Microsoft Corporation 1991-1999.  All Rights Reserved.

Initiating DEFRAGMENTATION mode...
        Database: priv.edb
       Log files: <current directory>
    System files: <current directory>
  Temp. Database: E:\DefraggedDB\compBD\new.edb

                Defragmentation Status  ( % complete )

          0    10   20   30   40   50   60   70   80   90  100
          |----|----|----|----|----|----|----|----|----|----|
          Operation terminated with error -1811 (JET_errFileNotFound, File not f
ound) after 3.547 seconds.

E:\FriggedDB>eseutil.exe /d /p priv.edb /tE:\DefraggedDB\compBD\new.edb


E:\FriggedDB>eseutil.exe /d priv.edb Defrag\priv.edb /p /tE:\DefraggedDB\c
ompDB\new.edb

Usage Error: Invalid argument 'Defrag\priv.edb'. Options must be preceded by '-'
 or '/'.





0
disciple_of_chim-chimAuthor Commented:
whoops I see it
0
drothbartCommented:
If it doesn't work, use full path to file

E:\friggedDB>eseutil.exe /d e:\friggeddb\priv.edb /p /tE:\defraggeddb\compdb\new.edb

0

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
disciple_of_chim-chimAuthor Commented:


E:\FriggedDB>eseutil.exe /d E:\FriggedDB\priv.edb /p /tE:\DefraggedDB\compDB\new.edb

Its running! I was so used to seeing it fail, I didnt notice!

Excellent! Thanks

I suppose that progress meter is not too accurate, 30min/1GB doesnt go that fast-5% of 12GB so far.
0
drothbartCommented:
It's been over 5 years since I ran it on a production server but I remember it not being linear. It started slow, ran quick in the middle, and took a while to complete.

I'm off. Best of luck and read up on what to do with the file when done. Once you start exchange again, do a full backup because your old ones will be useless.

Sorry you still have a while to go, but I have a long day tomorrow and have to go.
Dan
0
disciple_of_chim-chimAuthor Commented:
don't forget to run "isinteg -fix -pri -test alltests" after the defrag to fix errors.

After it has been moved back to Exchange, start the IS and run it. What is involved in dismounting it?

exchsrvr\bin\isinteg -s server1 -fix -test alltests
NOTE: You need to first start the information store service and dismount the databases; you can only check databases that are offline.

0
disciple_of_chim-chimAuthor Commented:
Roger that. Thanks again.
0
disciple_of_chim-chimAuthor Commented:
Can anyone help with this:

don't forget to run "isinteg -fix -pri -test alltests" after the defrag to fix errors.
0
drothbartCommented:
Are you still having problems? Is Exchange running?
0
disciple_of_chim-chimAuthor Commented:
Yes! I'd say enough time has passed, since 10:30, to be able to say that. Would've responded sooner, But *I* had to be defragged; been sleeping. Event log clean so far. The actual defragmentation only took 37 minutes, oddly enough. I was expecting more like 30 min/GB. The priv was 12GB going in and 9 coming out. How miserly of Exchange. Obviously, offline defrag should be done a teensy bit more frequently, not once in >5 years. Just never had a hard reason to do it. Always been under the impression that, like firmware updates, it should be stayed away from unless it's to correct a specific problem. Like no more disk space.

Or maybe I was thinking of isinteg.  As dmorrisroe mentioned, ran "isinteg -fix -pri -test alltests" summary output below.

Finished reference count verification. Time: 0h:12m:12s, number of fixes = 6625
Starting test 23 of 22, 'Row Count/Dumpster Count'
Finished Row Count/Dumpster Count. Time: 0h:0m:0s, number of warnings = 19, number of fixes = 3

Finished reference count verification. Time: 0h:12m:12s, number of fixes = 66250
Starting test 23 of 22, 'Row Count/Dumpster Count'
Finished Row Count/Dumpster Count. Time: 0h:0m:0s, number of warnings = 19, number of fixes = 3

. . . . . SUMMARY . . . . .
Total number of tests : 22
Total number of warnings : 19
Total number of errors : 0
Total number of fixes : 66255
Total time : 1h:8m:41s
C:\exchsrvr\bin>

The Event log showed 6 "Event Id 1002" entries from the DS:
"The Microsoft Exchange Server database (EDB) could not be initialized and returned error -1808.  Unrecoverable error, the directory can't continue."
But apparently, it did. Any other subtle clues that all may not be as well as it seems?

That ought to do it. Thanks again for hangin in there past your bedtime ;)
0
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
Exchange

From novice to tech pro — start learning today.