Avatar of Ali Raza
Ali Raza
Flag for United States of America asked on

Dirty shutdown to Clean Shutdown

Hi Expert,

Trying restore mailbox from the .edb file,

[PS] C:\Recoverdatabse\RBD>Eseutil /mh DDB01.edb.

DATABASE HEADER:
Checksum Information:
Expected Checksum: 0xfbbd8216
  Actual Checksum: 0xfbbd8216

Fields:
        File Type: Database
         Checksum: 0xfbbd8216
   Format ulMagic: 0x89abcdef
   Engine ulMagic: 0x89abcdef
 Format ulVersion: 0x620,20
 Engine ulVersion: 0x620,20
Created ulVersion: 0x620,20
     DB Signature: Create time:10/18/2015 23:20:42.023 Rand:3055696134 Computer:
         cbDbPage: 32768
           dbtime: 883331822 (0x34a692ee)
            State: Dirty Shutdown
     Log Required: 1262926-1263028 (0x13454e-0x1345b4)
    Log Committed: 0-1263029 (0x0-0x1345b5)
   Log Recovering: 1263029 (0x1345b5)
  GenMax Creation: 06/10/2016 19:01:25.983
         Shadowed: Yes
       Last Objid: 129667
     Scrub Dbtime: 0 (0x0)
       Scrub Date: 00/00/1900 00:00:00
     Repair Count: 0
      Repair Date: 00/00/1900 00:00:00.000

To make database clean shutdown, I ran following comdlet.

[PS] C:\Recoverdatabse\RBD>eseutil /r "E06" /l "C:\Recoverdatabse\RBD\_restoredLogs"  /d "C:\Recoverdatabse\RBD\DDB01.edb"

Got the following error.

Extensible Storage Engine Utilities for Microsoft(R) Exchange Server
Version 15.00
Copyright (C) Microsoft Corporation. All Rights Reserved.

Initiating RECOVERY mode...
    Logfile base name: E06
            Log files: C:\Recoverdatabse\RBD\_restoredLogs
         System files: <current directory>
   Database Directory: C:\Recoverdatabse\RBD\DDB01.edb

Performing soft recovery...
                      Restore Status (% complete)

          0    10   20   30   40   50   60   70   80   90  100
          |----|----|----|----|----|----|----|----|----|----|
          .................................................X



Operation terminated with error -1032 (JET_errFileAccessDenied, Cannot access file, the file is locked or in use) after
76.641 seconds
.

Any hint would be appreciated.
Exchange

Avatar of undefined
Last Comment
Davis McCarn

8/22/2022 - Mon
Ivan

Hi,

did you run PS with "Run as admin"?

Regards,
Ivan.
Davis McCarn

And, did you stop all of the Exchange and Antivirus services?
Something with a higher authority (the SYSTEM account?) jumped in and opened that file.
Ali Raza

ASKER
@Ivan,

I did run PS with Exchange Admin.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
Ali Raza

ASKER
@Davis McCarn

I'm restoring mailbox from the database, Do you think I really need to stop services for production server?
Ali Raza

ASKER
Somehow I'm very close you solve the issue.

Can Any one help me to understand this.

To resolve this, run soft recovery with the “/i ” switch at the end and it will override the EDB-STM mismatch.

Thank you
Davis McCarn

That /I switch is for when the attachment database is missing files and I don't think it will help you.
And no, now that I look further, if those are backup copies of the database you have copied or restored, downing the active  exchange services shouldn't be necessary.  Instead;though, you might want to stop your antivirus/security software while you run it.  Again, something jumped in and opened that file!
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Ali Raza

ASKER
Thank you all for the assistance, I have done the Hard Recovery to restore mailbox, Which works for me.
ASKER CERTIFIED SOLUTION
Davis McCarn

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Davis McCarn

What I already said in that post and I hope the question is deleted.