Link to home
Start Free TrialLog in
Avatar of Richard_Steiner
Richard_SteinerFlag for Nigeria

asked on

Delelted exchange 2010 log files causes DB to dismount

Hi,
I moved exchange DB from C: to E: on the same computer but allowed log files to remain in the default C: (exchange 2010)

While moving mailboxes from Ex2007 to Ex2010, the log files filled up the C: drive and in a bid to reduce them, my assitant permanently deleted the log files and now the DB is unmounted. When I try to mount I get the error
 ================================
Failed to mount database 'Mailbox Database 1305715xxx'.

Mailbox Database 1305715xxx
Failed
Error:
Couldn't mount the database that you specified. Specified database: Mailbox Database 1305715182; Error code: An Active Manager operation failed. Error: The database action failed. Error: Operation failed with message: MapiExceptionCallFailed: Unable to mount database. (hr=0x80004005, ec=-515)
 [Database: Mailbox Database 1305715xxx, Server: aaa.xxx.NET].
==================================

If i had the deleted files I could correct this issue but without them how do I go on and not loose mails as this is a production environment.

Need your help pls ..

Richard
Avatar of Pete Long
Pete Long
Flag of United Kingdom of Great Britain and Northern Ireland image

What if you run the command
eseutil /mh "location of .edb"
I want to know the Status and Log Required

- Rancy
Please refer below article for to mount the  Exchange database when the E00.log is missing

(http://www.petri.co.il/mount_exchange_database_when_e00log_is_missing.htm)

If it is not work then refer below article

(http://support.microsoft.com/?kbid=313184)
Avatar of Richard_Steiner

ASKER

Hi Rancy, this is what I get when I run the command
===================================
[PS] C:\Windows\system32>eseutil /mh "E:\exchange\Microsoft\Exchange Server\V14\Mailbox\Mailbox Database 1305715182\Mail
box Database 1305715182.edb"

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

Initiating FILE DUMP mode...
         Database: E:\exchange\Microsoft\Exchange Server\V14\Mailbox\Mailbox Database 1305715182\Mailbox Database 130571
5182.edb


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

Fields:
        File Type: Database
         Checksum: 0x11b062c3
   Format ulMagic: 0x89abcdef
   Engine ulMagic: 0x89abcdef
 Format ulVersion: 0x620,17
 Engine ulVersion: 0x620,17
Created ulVersion: 0x620,17
     DB Signature: Create time:09/11/2012 12:04:21 Rand:5076476 Computer:
         cbDbPage: 32768
           dbtime: 60913002 (0x3a1756a)
            State: Dirty Shutdown
     Log Required: 163325-163326 (0x27dfd-0x27dfe)
    Log Committed: 0-163327 (0x0-0x27dff)
   Log Recovering: 163326 (0x27dfe)
  GenMax Creation: 09/19/2012 19:16:30
         Shadowed: Yes
       Last Objid: 7311
     Scrub Dbtime: 0 (0x0)
       Scrub Date: 00/00/1900 00:00:00
     Repair Count: 0
      Repair Date: 00/00/1900 00:00:00
 Old Repair Count: 0
  Last Consistent: (0x22F11,8,1F)  09/19/2012 14:56:52
      Last Attach: (0x22F18,9,86)  09/19/2012 15:08:57
      Last Detach: (0x0,0,0)  00/00/1900 00:00:00
             Dbid: 1
    Log Signature: Create time:09/11/2012 12:04:20 Rand:5092327 Computer:
       OS Version: (6.1.7601 SP 1 NLS 60101.60101)

Previous Full Backup:
        Log Gen: 0-0 (0x0-0x0)
           Mark: (0x0,0,0)
           Mark: 00/00/1900 00:00:00

Previous Incremental Backup:
        Log Gen: 0-0 (0x0-0x0)
           Mark: (0x0,0,0)
           Mark: 00/00/1900 00:00:00

Previous Copy Backup:
        Log Gen: 0-0 (0x0-0x0)
           Mark: (0x0,0,0)
           Mark: 00/00/1900 00:00:00

Previous Differential Backup:
        Log Gen: 0-0 (0x0-0x0)
           Mark: (0x0,0,0)
           Mark: 00/00/1900 00:00:00

Current Full Backup:
        Log Gen: 0-0 (0x0-0x0)
           Mark: (0x0,0,0)
           Mark: 00/00/1900 00:00:00

Current Shadow copy backup:
        Log Gen: 0-0 (0x0-0x0)
           Mark: (0x0,0,0)
           Mark: 00/00/1900 00:00:00

     cpgUpgrade55Format: 0
    cpgUpgradeFreePages: 0
cpgUpgradeSpaceMapPages: 0

       ECC Fix Success Count: none
   Old ECC Fix Success Count: none
         ECC Fix Error Count: none
     Old ECC Fix Error Count: none
    Bad Checksum Error Count: none
Old bad Checksum Error Count: none

  Last checksum finish Date: 00/00/1900 00:00:00
Current checksum start Date: 00/00/1900 00:00:00
      Current checksum page: 0


Operation completed successfully in 0.32 seconds.

[PS] C:\Windows\system32>
==========================================
State: Dirty Shutdown
     Log Required: 163325-163326 (0x27dfd-0x27dfe)

What all log files do we have in the log location ?

- Rancy
I'm sorry Rancy ..I did not get your question. Pls rephrase
"Log Required" is the set of logs required by the database to come into clean shutdown.

Are these 2 logs along with others available anywhere on the server ?

- Rancy
E00res00001.jrs and E00res00002.jrs are the the only two diff files other are .txt file and there are a lot of them. Are these the logs you are referring to? Also note that I have tried moutning the DB again and the error code has changed ..
====================
Mailbox Database 1305715182
Failed
Error:
Couldn't mount the database that you specified. Specified database: Mailbox Database 1305715182; Error code: An Active Manager operation failed. Error: The database action failed. Error: Operation failed with message: MapiExceptionJetErrorMissingLogFile: Unable to mount database. (hr=0x80004005, ec=-528)
=====================================
Error: The database action failed. Error: Operation failed with message: MapiExceptionJetErrorMissingLogFile: Unable to mount database.

So your saying we dont have any log files ?
Were those all shift deleted ? Fingers crossed !!

- Rancy
No sir ..no log files.
please tell me there is still a way to correct this and not loose mails (fingers n toes crossed)
If there isnt any log files its very difficult as we need to bring the DB in clean to be able to mount.

Last restort is to Repair the DB. So what is the size of the Database and do we have a Backup of the DB from last night that we can restore ?

- Rancy
I do not have a copy of the 132GB DB ..I am presently copying the current DB file to an external drive in preparation for the repair. What next after the backup ..
any idea how long it will take to repair a DB of that size?
132 GB approx at 8-10GB per hour .. 25% free space required of the DB.

Thats the reason i asked to restore the last backup till we repair this DB.

- Rancy
ASKER CERTIFIED SOLUTION
Avatar of Sushil Sonawane
Sushil Sonawane
Flag of India 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
Sushil thats just for the last log file and not few ??

If you just read the post shared between us and share your feedback would be good as it could always be helpful :)

- Rancy
I have decided to repair the DB, what I have done is to save a copy of the DB file in an external HDD. when I run the eseutil /p command I get the error ..

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

Now I'm confused again as there are no restrictions on the folder holding the DB and my account has all the needed rights. Pls help ..!
ok ..i got around that last issue ..I had to run power shell as an Admin
Are you running the eseutil /p on the Database file on the server ?
Is there any AV on the server and is the Exclusions set on it ?

- Rancy
yes ..I am running the command on the DB file on the server. There is no AV on the server for now.

The command is running fine now after I ran exchange shell as an Admin
So you saying its started ?
Are we planning to get the restore or just work with this database file ?
Also whenever you are moving mailboxes between Database or servers please work with Circular logging as it will only create about 5-6 logs and keep working with them

- Rancy
ok noted ..I will remember the circular logging next time.

when u say restore, are you referring to the DB backup i jst made? if so, yes i intend to work with it afterwards.

Btw what would you recommend??
By Backup\Restore i mean do you have any earlier backup before moving with the activity (Exchange Online Backup) ??

Btw what would you recommend?? - Sorry didnt get what you exactly mean by this.

- Rancy
I do not have any back whatsoever ..I only did a back of the currently dismounted DB and I am running the eseutil /p command on the DB on the server now

By my question, I wanted to know if there is any advice you can give me to get back online with minimal lose ..

current status of the eseutil /p command says "deleting unicode fixup table"  but i have not seen any progress in over 15minutes now.
It might feel its stopped but please dont do anything as its going through the entire Database files of 8KB pages and find the corruption to get the database into Clean shutdown for us to have it clean to mount and further work with it.

I guess you are aware that users access and email flow is down for users who had mailbox on this database.

- Rancy
yes ..users have been  complaining already but there is really nothing i can do till this is resolved. They are currently working with their web based email providers

Thanx alot for your help so far ..I will leave the tool to continue running as I need to visit aother site and may have to come in here tomorow.

I will let you know what happens ..

Thank you so much Rancy ..
Hi guys,

After doing all the DB repair procedure it was successful and my DB is back online and users are smiling again. Thanx so much for all your help .

~ Peace
Peace and Relief are 2 good words that everyone like to hear ..... good to see you back plan for 2 things.

1. Circular logging on both Databases during move .... need to restart IS service.
2. Plan for good Online Backups.

- Rancy
Hi guys,

after a succesful DB repair, the DB has returned to a dirty shutdown mode. This time nothing was done before this happened. Do I need to run eseutil /p again? or is there another solution to this??

All d help I can get ..

Thanx guys

Richard
Do I need to run eseutil /p again? or is there another solution to this?? - No other Option ... :(

What happend wrong this time ??

- Rancy
i really cant tell ..came in this morning and saw the DB was dismounted again. I saw something online about moving the mailboxes to a new DB after a successful repair. Do u think my failure to do so the first time caused it to fail again?
Nope there isnt anything as such which will take the DB into Dirty shutdown.

- Rancy
that's what I thought too ..anyway, I did the database repair again using eseutil /p and once again I am back online.

I do have another issue presently but will open up a new thread for it.

Thanx every1 ..special thanx to Rancy, this is my first time using the website and I can see it will be a worthwile experience with all you gurus.

Peace ..
Richard_Steiner: I thought i too assisted and should have been Awarded :(

- Rancy