locked
server crash - corrupt DB and missing log files

    Question

  • Hello,

    After a server crash I tried to remount my exchange database, but I got the following error:

    Exchange is unable to mount the database that you specified. Specified database: SERVER1\First Storage Group\Mailbox Database; Error code: MapiExceptionCallFailed: Unable to mount database. (hr=0x80004005, ec=-515)

    "eseutil /mh" shows a "dirty shutdown" state. So, I tried to recover it with "eseutil /r e00". But, This shows the following error:

    Operation terminated with error -515 (JET_errInvalidLogSequence, Timestamp in next log does not match expected) after 0.688 seconds.

    After that, I used "eseutil /ml e00" to figure out the status of the log-files. It showed 5 of 75000 missing log files. I searched all my backups, but unfortunatly these files are missing there, too.

    Is there any chance left to recover the storage group?

    Thanks, Tom

     

    System Info: Win 2003 R2 x64, Exchange Server 2007 SP2

    Wednesday, November 10, 2010 11:57 AM

Answers

  • To answer my question:

    I forgot to move the old log files out of the Storage group folder.

     

    Wednesday, November 10, 2010 5:57 PM

All replies

  • Hi,

    This error message may occur if the <var>DomainName</var>\Exchange Servers group is not assigned the Manage auditing and security log user right.

    To add the Exchange Servers group to the Manage auditing and security log policy, follow these steps:

    1. Log on to a domain controller by using an account that has administrative rights.
    2. Click Start, point to Administrative Tools, and then click Domain Controller Security Policy.
    3. In the Default Domain Controller Security Settings Microsoft Management Console (MMC) snap-in, expand Local Policies, and then click User Rights Assignment.
    4. In the right pane, double-click Manage auditing and security log.
    5. In the Manage auditing and security log Properties dialog box, click Add User or Group.
    6. In the User and group names box, type <var>DomainName</var>\Exchange Servers, and then click OK two times.
    7. Exit the Default Domain Controller Security Settings MMC snap-in, and then wait for this security setting to propagate across the domain controllers in the domain.
    8. Restart the Microsoft Exchange Information Store service.

    Regards from www.windowsadmin.info
    Wednesday, November 10, 2010 12:22 PM
  • Hi,

    my DC is a Win2008 R2 Server. There I do not find "Domain Controller Security Policy". I can only find "Local Security Policy" or the "Group Policy Management".

    With the second option I can set this option in the default domain group policy. Is this what you mean?

    Thanks, Tom

    Wednesday, November 10, 2010 3:35 PM
  • ... It worked with the default domain policy, but after that I get a new error message when running "eseutil /r e00":

    Operation terminated with error -543 (JET_errRequiredLogFilesMissing, The required log files for recovery is missing.) after 0.547 seconds.

    The event viewer shows the following:

    eseutil (3740) Database E:\exchange\Mailbox\First Storage Group\test\Mailbox Database.edb requires logfiles 189155-189165 in order to recover successfully. Recovery could only locate logfiles starting at 189158.

    eseutil (3740) Database recovery/restore failed with unexpected error -543.

    Thanks, Tom

     

    Edit: The files that are missing are:

    e000002E2E1.log (converted from hex to dec it is 189153)
    e000002E2E7.log (= 189159)
    e000002E2EA.log (= 189162)

    log range availlable:

    first log:   E000001BB3A.log (= 113466)
    latest log: E000002E2EC.log (= 189164)

     

    Wenn I now try to mount the DB I do not get error from above, but I get a warning:
    At least one committed transaction log file is missing. Mounting the database will result in data loss. Do not take this action unless you cannot locate the missing log files. Are you sure you want to continue? Yes/No

    Which data will I loose when I mount the DB? Only the missing log files or more?

    Wednesday, November 10, 2010 3:58 PM
  • Hi,

    See here for what is happening : http://technet.microsoft.com/en-us/library/aa996759(EXCHG.80).aspx


    Regards from www.windowsadmin.info
    Wednesday, November 10, 2010 5:06 PM
  • ... Ok, this link says:

    If a database has not been shut down correctly, it is still attached to one or more of the log files. These log files are required to bring the database to a consistent state. If these log files cannot be made available, the database must be restored from backup or repaired before it can be started again.

    So, I have to repair the database. This repair I did already earlier with:

    eseutil /p database.edb
    eseutil /d database.edb

    When I try to mount this repaired and defraged DB, I get the same error than in the beginning:

    Exchange is unable to mount the database that you specified. Specified database: SERVER1\First Storage Group\Mailbox Database; Error code: MapiExceptionCallFailed: Unable to mount database. (hr=0x80004005, ec=-515)

    When I try to mount the unrepaired DB, I get the warning:

    At least one committed transaction log file is missing. Mounting the database will result in data loss. Do not take this action unless you cannot locate the missing log files. Are you sure you want to continue? Yes/No

    If I press Yes, I get the 543 error (missing log files):

     

    Is there a step in the repair process that I am missing?

    Wednesday, November 10, 2010 5:32 PM
  • To answer my question:

    I forgot to move the old log files out of the Storage group folder.

     

    Wednesday, November 10, 2010 5:57 PM