Unable to mount MailboxDatabase because the database copy is invalid

I was nearly at the end of the migration from Exchange 2010 to Exchange 2013: public folders were migrated.

At that point, I used ADSIEDIT and I accidentally deleted the object of class msExchMDBCopy which was located under "CN=Mailbox Database 2101711351,CN=Databases,...".
I recovered the object using ldp, rebooted exchange, but now I can no longer mount the database.
When I try to use

  Mount-Database "Mailbox Database 2101711351"

I get the error

<tt>The database object 'Mailbox Database 2101711351' in Active Direcotry has been corrupted and is in an inconsistent state. Unable to find any server hosting a copy of this database.</tt>

It seems that the only copy of database has been marked as invalid (this is also shown on ECP)

<tt>Get-MailboxDatabase "Mailbox Database 2101711351" | fl name,DatabaseCopies,InvalidDatabaseCopies,AllDatabaseCopies

Name                  : Mailbox Database 2101711351
DatabaseCopies        : {}
InvalidDatabaseCopies : {Mailbox Database 2101711351\MYSRV01}
AllDatabaseCopies     : {Mailbox Database 2101711351\MYSRV01}</tt>

eseutil /mh on the .edb file reports "State: Clean Shutdown"

What else could I do to mount the database ?

Thank you.

June 19th, 2015 10:33pm

I was nearly at the end of the migration from Exchange 2010 to Exchange 2013: public folders were migrated.

At that point, I used ADSIEDIT and I accidentally deleted the object of class msExchMDBCopy which was located under "CN=Mailbox Database 2101711351,CN=Databases,...".
I recovered the object using ldp, rebooted exchange, but now I can no longer mount the database.
When I try to use

  Mount-Database "Mailbox Database 2101711351"

I get the error

<tt>The database object 'Mailbox Database 2101711351' in Active Direcotry has been corrupted and is in an inconsistent state. Unable to find any server hosting a copy of this database.</tt>

It seems that the only copy of database has been marked as invalid (this is also shown on ECP)

<tt>Get-MailboxDatabase "Mailbox Database 2101711351" | fl name,DatabaseCopies,InvalidDatabaseCopies,AllDatabaseCopies

Name                  : Mailbox Database 2101711351
DatabaseCopies        : {}
InvalidDatabaseCopies : {Mailbox Database 2101711351\MYSRV01}
AllDatabaseCopies     : {Mailbox Database 2101711351\MYSRV01}</tt>

eseutil /mh on the .edb file reports "State: Clean Shutdown"

What else could I do to mount the database ?

Thank you.

If you have backups of your System State, I would call Microsoft and see if they can give you a hand performing a restore of the data you removed.

Why were you in adsiedit anyway?

Free Windows Admin Tool Kit Click here and download it now
June 20th, 2015 7:15am

Thank you to both answers. I found the problem and solved it:

when you delete a msExchMDBCopy from ActiveDirectory, all msExch* attributes are removed from the object before it's stored with the other deleted object.
So the simple recovery of the tombstoned object via LDP.EXE did not work because 6 attributes were missing:

msExchActivationPreference, msExchAutoDAGParamDatabaseCopyFlags, msExchHostServerLink, msExchMDBCopyParentClass: msExchPrivateMDB, msExchReplayLag, msExchTruncationLag

I manually entered these attributes by copying values from the other databases, and correcting them where necessary. After a restart of Information Store service, I was able to mount the database and now I can see all the mailboxes inside it.
Unfortunately now the database does not mount automatically at server reboot, it's marked as "Unknown status" and I must mount it manually. So I'm moving mailboxes into a new database and deleting the old one.

@Hinte: I was in adsiedit because I was unable to remove the old Public Folder db from the old exchange 2010. The removal fails because there are active replicas. But the old 2010 Public Folder db has no folders inside... so I was playing with ADSIEDIT because some guides suggested to remove it via ADSIEDIT. I just deleted the wrong object in AD :(


  • Edited by PGiovanni 18 hours 34 minutes ago
  • Marked as answer by PGiovanni 11 hours 16 minutes ago
June 20th, 2015 8:55am

Thank you to both answers. I found the problem and solved it:

when you delete a msExchMDBCopy from ActiveDirectory, all msExch* attributes are removed from the object before it's stored with the other deleted object.
So the simple recovery of the tombstoned object via LDP.EXE did not work because 6 attributes were missing:

msExchActivationPreference, msExchAutoDAGParamDatabaseCopyFlags, msExchHostServerLink, msExchMDBCopyParentClass: msExchPrivateMDB, msExchReplayLag, msExchTruncationLag

I manually entered these attributes by copying values from the other databases, and correcting them where necessary. After a restart of Information Store service, I was able to mount the database and now I can see all the mailboxes inside it.
Unfortunately now the database does not mount automatically at server reboot, it's marked as "Unknown status" and I must mount it manually. So I'm moving mailboxes into a new database and deleting the old one.

@Hinte: I was in adsiedit because I was unable to remove the old Public Folder db from the old exchange 2010. The removal fails because there are active replicas. But the old 2010 Public Folder db has no folders inside... so I was playing with ADSIEDIT because some guides suggested to remove it via ADSIEDIT. I just deleted the wrong object in AD :(


  • Edited by PGiovanni Saturday, June 20, 2015 12:52 PM
  • Marked as answer by PGiovanni Saturday, June 20, 2015 8:10 PM
Free Windows Admin Tool Kit Click here and download it now
June 20th, 2015 12:50pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics