Link to home
Start Free TrialLog in
Avatar of Ali Raza
Ali RazaFlag 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.
Avatar of Ivan
Ivan
Flag of Serbia image

Hi,

did you run PS with "Run as admin"?

Regards,
Ivan.
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.
Avatar of Ali Raza

ASKER

@Ivan,

I did run PS with Exchange Admin.
@Davis McCarn

I'm restoring mailbox from the database, Do you think I really need to stop services for production server?
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
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!
Thank you all for the assistance, I have done the Hard Recovery to restore mailbox, Which works for me.
ASKER CERTIFIED SOLUTION
Avatar of Davis McCarn
Davis McCarn
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
What I already said in that post and I hope the question is deleted.