Solved

Dirty shutdown to Clean Shutdown

Posted on 2016-07-21
9
41 Views
Last Modified: 2016-08-29
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.
0
Comment
Question by:Ali-Raza111
  • 4
  • 4
9 Comments
 
LVL 15

Expert Comment

by:Ivan
Comment Utility
Hi,

did you run PS with "Run as admin"?

Regards,
Ivan.
0
 
LVL 42

Expert Comment

by:Davis McCarn
Comment Utility
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.
0
 

Author Comment

by:Ali-Raza111
Comment Utility
@Ivan,

I did run PS with Exchange Admin.
0
 

Author Comment

by:Ali-Raza111
Comment Utility
@Davis McCarn

I'm restoring mailbox from the database, Do you think I really need to stop services for production server?
0
Do email signature updates give you a headache?

Do you feel like all of your time is spent managing email signatures? Too busy to visit every user’s desk to make updates? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today!

 

Author Comment

by:Ali-Raza111
Comment Utility
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
0
 
LVL 42

Expert Comment

by:Davis McCarn
Comment Utility
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!
0
 

Author Comment

by:Ali-Raza111
Comment Utility
Thank you all for the assistance, I have done the Hard Recovery to restore mailbox, Which works for me.
0
 
LVL 42

Accepted Solution

by:
Davis McCarn earned 500 total points (awarded by participants)
Comment Utility
We don't know what the author meant by "Hard Recovery" so don't know what was done to fix it.
As it stands, I vote for delete, not enough information to confirm an answer.
0
 
LVL 42

Expert Comment

by:Davis McCarn
Comment Utility
What I already said in that post and I hope the question is deleted.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Easy CSR creation in Exchange 2007,2010 and 2013
Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
In this video we show how to create a User Mailbox 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 Recipients >> Mailb…
how to add IIS SMTP to handle application/Scanner relays into office 365.

762 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

9 Experts available now in Live!

Get 1:1 Help Now