Solved

Dirty shutdown to Clean Shutdown

Posted on 2016-07-21
9
48 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
9 Comments
 
LVL 17

Expert Comment

by:Ivan
ID: 41724753
Hi,

did you run PS with "Run as admin"?

Regards,
Ivan.
0
 
LVL 43

Expert Comment

by:Davis McCarn
ID: 41724847
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
ID: 41725042
@Ivan,

I did run PS with Exchange Admin.
0
Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 

Author Comment

by:Ali-Raza111
ID: 41725045
@Davis McCarn

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

Author Comment

by:Ali-Raza111
ID: 41725049
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 43

Expert Comment

by:Davis McCarn
ID: 41725288
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
ID: 41729844
Thank you all for the assistance, I have done the Hard Recovery to restore mailbox, Which works for me.
0
 
LVL 43

Accepted Solution

by:
Davis McCarn earned 500 total points (awarded by participants)
ID: 41750200
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 43

Expert Comment

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

Featured Post

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
In this video we show how to create an Accepted Domain 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 Mail Flow >> Ac…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

752 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