John Yassa's Blog

Home » Exchange 2010 » Exchange 2010 SP1: Error when adding or removing a mailbox database copy

Exchange 2010 SP1: Error when adding or removing a mailbox database copy

I have faced the below Error While added a Mailbox Database copy to one of our servers

This database was already exist as copy on the same server but removed for maintenance operation

Add-mailbox1

Error:
Registry key has subkeys and recursive removes are not supported by this method.

Warning:
An unexpected error has occurred and a Watson dump is being generated: Registry key has subkeys and recursive removes are not supported by this method.

Exchange Management Shell command attempted:
Add-MailboxDatabaseCopy -Identity ‘db1’ -MailboxServer ‘ServerName’ -ActivationPreference ‘2’

Elapsed Time: 00:00:00

Workaround: Delete the DumpsterInfo key, as shown below.

  1. Identify the GUID of the database that is being added using this command:Get-MailboxDatabase DB1 | fl name,GUIDThe result:

    Name : DB1
    Guid : 8d3a9778-851c-40a4-91af-65a2c487b4cc

  2. On the server specified in the add command, using the database GUID identified, remove the following registry key:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\v14\Replay\State\<db-guid>\DumpsterInfoThe GUID identified in this case is 8d3a9778-851c-40a4-91af-65a2c487b4cc. With this information you can now export and delete theDumpsterInfo key on the server where you are attempting to add the mailbox database copy. This can be easily done using the registry editor, but if you have more than a handful of DAG members, this is best automated using the Shell.This example removes the DumpsterInfo key from the 8d3a9778-851c-40a4-91af-65a2c487b4cc key:

    Remove-Item HKLM:\Software\Microsoft\ExchangeServer\V14\Replay\State\8d3a9778-851c-40a4-91af-65a2c487b4cc\DumpsterInfo

    To automate this across all servers in your organization, use the DeleteDumpsterRegKey.ps1 script.

This is a know issue with SP1, check issue 8 on the below URL
http://blogs.technet.com/b/exchange/archive/2010/09/01/3410888.aspx


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: