Link to home
Start Free TrialLog in
Avatar of Dave Messman
Dave MessmanFlag for United States of America

asked on

Exchnage 2007 mailbox store that will not mount, error 1216, MapiExceptionJetErrorAttachedDatabaseMismatch

I'm working on a server that I have not maintained before that has a dismounted mailbox store in SBS 2008 (so it runs Exchange 2007).  When I try to mount the store, I get:

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

I've run an eseutil /p and an eseutil /d on the database.  I still get the same error.

If I run eseutil /mh, I get this:



Extensible Storage Engine Utilities for Microsoft(R) Exchange Server

Version 08.02

Copyright (C) Microsoft Corporation. All Rights Reserved.



Initiating FILE DUMP mode...
         Database: Mailbox Database.edb

        File Type: Database
   Format ulMagic: 0x89abcdef
   Engine ulMagic: 0x89abcdef
 Format ulVersion: 0x620,12
 Engine ulVersion: 0x620,12
Created ulVersion: 0x620,12
     DB Signature: Create time:08/17/2010 22:17:57 Rand:1809907780 Computer:
         cbDbPage: 8192
           dbtime: 823693 (0xc918d)
            State: Clean Shutdown
     Log Required: 0-0 (0x0-0x0)
    Log Committed: 0-0 (0x0-0x0)
   Streaming File: No
         Shadowed: Yes
       Last Objid: 777
     Scrub Dbtime: 0 (0x0)
       Scrub Date: 00/00/1900 00:00:00
     Repair Count: 2
      Repair Date: 07/20/2010 23:25:34
 Old Repair Count: 2
  Last Consistent: (0x0,0,0)  08/17/2010 22:22:45
      Last Attach: (0x0,0,0)  08/17/2010 22:22:25
      Last Detach: (0x0,0,0)  08/17/2010 22:22:45
             Dbid: 1
    Log Signature: Create time:00/00/1900 00:00:00 Rand:0 Computer:
       OS Version: (6.0.6001 SP 1 NLS 500100.50100)

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

Operation completed successfully in 0.31 seconds.


------------

If I run isinteg -s solar1 -fix -test alltests, it returns:

Databases for server solar1:
Only databases marked as Offline can be checked

Index  Status       Database-Name
Storage Group Name: First Storage Group
  1    Offline      Mailbox Database
Storage Group Name: Second Storage Group
  2    Offline      Public Folder Database
Enter a number to select a database or press Return to exit.
1
You have selected First Storage Group / Mailbox Database.
Continue?(Y/N)y
Isinteg cannot initiate verification process.


In the event log, I see this after I run "isinteg -s solar1 -fix -test alltests":

event id 494:
MSExchangeIS (2092) First Storage Group: Database recovery failed with error -1216 because it encountered references to a database, 'D:\Program Files\Microsoft\Exchange Server\Mailbox\First Storage Group\Mailbox Database.edb', which is no longer present. The database was not brought to a Clean Shutdown state before it was removed (or possibly moved or renamed). The database engine will not permit recovery to complete for this instance until the missing database is re-instated. If the database is truly no longer available and no longer required, procedures for recovering from this error are available in the Microsoft Knowledge Base or by following the "more information" link at the bottom of this message.


event id 454:
MSExchangeIS (2092) First Storage Group: Database recovery/restore failed with unexpected error -1216.

event id 9518:
Error 0xfffffb40 starting Storage Group /DC=local/DC=domain/CN=Configuration/CN=Services/CN=Microsoft Exchange/CN=First Organization/CN=Administrative Groups/CN=Exchange Administrative Group (FYDIBOHF23SPDLT)/CN=Servers/CN=SOLAR1/CN=InformationStore/CN=First Storage Group on the Microsoft Exchange

-----------



Here's what I think I'm seeing - the database isn't mounted because Exchange seems to think the database isn't in the proper folder (see event id 494 above).  However, the database is clearly there.  See screen shot below.  Any ideas on what to try next?  I'm a rookie at Exchange database recovery.  Minus eseutil, I've never had to run anything really.
mailboxdatabases.jpg
Avatar of v_9mhdrf
v_9mhdrf

Please move all the other log files and folders from the database edb file location to another folder.
just keep only the .edb file and move all the log files to another folder and try mounting the stores.

Please check it out and revert back if you have any issues.
ASKER CERTIFIED SOLUTION
Avatar of v_9mhdrf
v_9mhdrf

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
Avatar of Dave Messman

ASKER

Damn - that was easy.  I removed all the log files and then checked the box to allow the database to be overwritten by a restore and voila, the mailbox store mounted.
I had exactly the same today and just by moving the log files and marking the database to be overwritten by  a restore does the magic.

Thank you so much. I really appreciate.
I did the same steps as mention above and MY DATABASE mount and production  Exchange server working Fine now. Thanks a lot for the  for your informative  steps & procedure..