Solved

Exchange 2007 Datebase - MapiExceptionJetErrorAttachedDatabaseMismatch

Posted on 2010-09-22
24
1,209 Views
Last Modified: 2012-05-10
Environment is Exchange 2007 SP2 running on Server 2008 Ent.
CCR cluster between two identical servers.

--------------------------------------------------------
Microsoft Exchange Error
--------------------------------------------------------
Failed to mount database 'Public Folder Database'.

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

I'm trying to get a CCR cluster running that was already in a poor state (out of sync and no daily backup) after a LUN dropout. The First Storage came up fine after the dropout but the Public Folder's database won't mount anymore.

So far I've tried all combinations of the eseutil.
Made sure 'Database can be overwritten by a restore' is ticked.
Removing all the logs to a different directory.
Restoring a database from last night.
Restarted all Exchange services.

All seem to get a point where I get a MapiExceptionJetErrorAttachedDatabaseMismatch error and can't go any further. Isinteg also fails with the same error in the event logs -
MSExchangeIS (5784) Second Storage Group: Database recovery failed with error -1216 because it encountered references to a database, 'G:\PublicStore\Public Folder 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.

Eseutil /MH says that the database is in a clean shutdown state so it should be ready to mount. The database is definately located at the correct path.

Does anyone have any ideas?
Thanks
0
Comment
Question by:matthewa00
  • 7
  • 7
  • 5
  • +2
24 Comments
 
LVL 11

Expert Comment

by:Marc Dekeyser
ID: 33732491
Could you post the output of the eseutil/mh here? That event ID seems to suggest that it cannot be found. The 4005 error in the mounting is an access denied and the apiExceptionJetErrorAttachedDatabaseMismatch usually refers to logfiles.

On a side node, the exchange servers have not been rebuild?
0
 

Author Comment

by:matthewa00
ID: 33732518
Nothing has been rebuilt or even restarted yet. A SAN restart brought the LUN's back then I remounted the datastores. First Storage Group was fine but the Second Storage Group never came back up.

[quote]G:\PublicStore>"c:\Program Files\Microsoft\Exchange Server\Bin\eseutil.exe" /m
"Public Folder Database.edb"

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

Initiating FILE DUMP mode...
         Database: Public Folder 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:09/22/2010 16:15:57 Rand:141471139 Computer:
         cbDbPage: 8192
           dbtime: 18513474 (0x11a7e42)
            State: Clean Shutdown
     Log Required: 0-0 (0x0-0x0)
    Log Committed: 0-0 (0x0-0x0)
   Streaming File: No
         Shadowed: Yes
       Last Objid: 33022
     Scrub Dbtime: 0 (0x0)
       Scrub Date: 00/00/1900 00:00:00
     Repair Count: 2
      Repair Date: 09/22/2010 16:15:57
 Old Repair Count: 0
  Last Consistent: (0x0,0,0)  09/22/2010 16:29:16
      Last Attach: (0x0,0,0)  09/22/2010 16:15:57
      Last Detach: (0x0,0,0)  09/22/2010 16:29:16
             Dbid: 1
    Log Signature: Create time:00/00/1900 00:00:00 Rand:0 Computer:
       OS Version: (6.0.6002 SP 2)

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: found (108)
Last Bad Checksum Error Date: 09/22/2010 16:14:13
Old bad Checksum Error Count: found (108)

Operation completed successfully in 0.47 seconds.[/quote]


0
 
LVL 11

Expert Comment

by:Marc Dekeyser
ID: 33732565
Reason I asked is it could have been you had to rebuild the server and the database could have had a newer versioning then the server :). It happens.

Looks in clean shutdown indeed. can you move everything BUT the edb file to another location so that only the EDB file resides in the database location?
0
 

Author Comment

by:matthewa00
ID: 33732611
Unfortunately the exact same error message and event logs are generated with only the EDB in the store directory.
0
 
LVL 11

Expert Comment

by:Marc Dekeyser
ID: 33732635
what if you move the edb to another directory aswell? Might be that there is something corrupt in the tables... If exchange cannot find the edb it will create a blank file. If that one mounts we know an isinteg will be required. If it does not you can try removing the public folder in EMC and recreating it.
0
 

Author Comment

by:matthewa00
ID: 33732650
Without the EDB in the directory it spits out the same errors and events... weird. It didn't create a new EDB either.

I'll try removing the storage group all together and re-creating, I attempted it before but stopped because its CCR and a bit of a process to remove.
0
 
LVL 31

Expert Comment

by:MegaNuk3
ID: 33733019
Does the database exist in 'G:\PublicStore\Public Folder Database.edb' ?

How many databases in the SG with the PF store?
0
 
LVL 31

Expert Comment

by:MegaNuk3
ID: 33733043
ignore my first question as I have just re-read the whole question and can see that is where you ran the eseutil /mh from...

How many other stores in the 2nd SG with the PF store?
0
 

Author Comment

by:matthewa00
ID: 33733079
It's only single database in that storage group. I think its actually a requirement of CCR that there is only one database per storage group.
0
 
LVL 52

Expert Comment

by:Manpreet SIngh Khatra
ID: 33733106
Can you please run the command
Setup /prepareAD
Once completed try mounting the store again
0
 
LVL 31

Expert Comment

by:MegaNuk3
ID: 33733108
OK, so try this then.
Move all log files and checkpoint for this SG to another directory and then try and mount the PF store.

I know you said you moved all log files, but you didn't say anything about the checkpoint file. This database is in a clean shutdown state so shouldn't require any log files or checkpoint to mount...
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 52

Expert Comment

by:Manpreet SIngh Khatra
ID: 33733148
Yes matthew correctly said that CCR's designed for 1 Store per Storage Group .... Also there is an issue where in if you have multiple CCR's you cannot have Public stores on all of them and also replication has issues .... So as per recommendation MS says to have Public Store on a dedicated PF Server ...
0
 
LVL 52

Expert Comment

by:Manpreet SIngh Khatra
ID: 33733167
Hello Mega .... not sure if you have seen the complete error info

MSExchangeIS (5784) Second Storage Group: Database recovery failed with error -1216 because it encountered references to a database, ""G:\PublicStore\Public Folder Database.edb"", which is no longer present
0
 
LVL 31

Expert Comment

by:MegaNuk3
ID: 33733172
Have you tried failing over(moving resources) to the other node and then seeing if the PF store mounts?
0
 
LVL 31

Expert Comment

by:MegaNuk3
ID: 33733184
Rancy is that after moving the checkpoint like I said and trying to mount the database?
0
 
LVL 52

Expert Comment

by:Manpreet SIngh Khatra
ID: 33734073
Any which ways even if the Checkpoint file is in the same location you wont get any error for "encountered references to a database" .... ideally -1216 if for Soft recovery with a \i switch ... but we have seen E2K7 issues were one or more stores mount and others do not with the same error ...
0
 
LVL 52

Expert Comment

by:Manpreet SIngh Khatra
ID: 33734091
Megha:
Have you tried failing over(moving resources) to the other node and then seeing if the PF store mounts?

If the Database is "Mind-split" would failing over help in mount and if on Node1 there is no DB or mounting option how failing to Node2 would help .... or would re-seeding be possible by any means ??
0
 
LVL 31

Expert Comment

by:MegaNuk3
ID: 33734191
Rancy, let the asker try my suggestions, if they don't work then we are no worse off, if they do then problem solved...
0
 
LVL 52

Expert Comment

by:Manpreet SIngh Khatra
ID: 33734234
Surely i agree .... no hard feelings wasnt trying anything out here .. so please dont take it otherwise :)
0
 
LVL 31

Expert Comment

by:MegaNuk3
ID: 33734272
no problem
0
 

Accepted Solution

by:
matthewa00 earned 0 total points
ID: 33734551
I managed to figure it out, finally.

I removed the database from AD using ADSI Edit and then restarted the Information Store, after that I could remove the storage group.  I re-created the storage group and database then copied in my EDB. It mounted first go and everything is back to normal.
0
 
LVL 52

Expert Comment

by:Manpreet SIngh Khatra
ID: 33734624
It would work because you are manually removing all entries of the AD database .... but maybe this problem might re-occour so you can always try the "Set \PrepareAD" if you want you can read more articles or forums about such problem ...
0
 
LVL 76

Expert Comment

by:Alan Hardisty
ID: 34740891
This question has been classified as abandoned and is being closed as part of the Cleanup Program. See my comment at the end of the question for more details.
0

Featured Post

Why spend so long doing email signature updates?

Do you spend loads of your time carrying out email signature updates? Not very interesting are they? Don’t let signature updates get you down. Let Exclaimer Cloud - Signatures for Office 365 make managing email signatures a breeze.

Join & Write a Comment

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.
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 a mailbox database 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 Servers >> Data…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

705 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

20 Experts available now in Live!

Get 1:1 Help Now