Export (0) Print
Expand All

Add-MailboxDatabaseCopy

Applies to: Exchange Server 2010

Topic Last Modified: 2011-03-19

Use the Add-MailboxDatabaseCopy cmdlet to add a new mailbox database copy to an existing database. To use the Add-MailboxDatabaseCopy cmdlet to add a mailbox database copy, the following criteria must be met:

  • The specified database must be a mailbox database. The Add-MailboxDatabaseCopy cmdlet cannot be used to create copies of public folder databases. Use public folder replication for public folder data redundancy.
  • The specified Mailbox server must be in the same database availability group.
  • The specified Mailbox server must not already host a copy of the specified mailbox database.
  • The database path used by the specified database must also be available on the specified Mailbox server, as all copies of a database must use the same path.


Add-MailboxDatabaseCopy -Identity <DatabaseIdParameter> -MailboxServer <MailboxServerIdParameter> [-ActivationPreference <UInt32>] [-Confirm [<SwitchParameter>]] [-DomainController <Fqdn>] [-ReplayLagTime <EnhancedTimeSpan>] [-SeedingPostponed <SwitchParameter>] [-TruncationLagTime <EnhancedTimeSpan>] [-WhatIf [<SwitchParameter>]]

Parameter Required Type Description

Identity

Required

Microsoft.Exchange.Configuration.Tasks.DatabaseIdParameter

The Identity parameter specifies the name of the mailbox database being copied.

MailboxServer

Required

Microsoft.Exchange.Configuration.Tasks.MailboxServerIdParameter

The MailboxServer parameter specifies the name of the server that will host the database copy.

ActivationPreference

Optional

System.UInt32

The ActivationPreference parameter is used to break ties when multiple database copies meet the activation criteria during Active Manager's best copy selection process. During the selection process, if more than one database copy meets all of the criteria for activating, then the configured value for ActivationPreference is consulted, and the database with the lowest value is activated and mounted. The value for the ActivationPreference parameter is a number equal to or greater than 1, where 1 is at the top of the preference order. The position number cannot be larger than the number of database copies of the mailbox database plus 1.

Confirm

Optional

System.Management.Automation.SwitchParameter

The Confirm switch causes the command to pause processing and requires you to acknowledge what the command will do before processing continues. You don't have to specify a value with the Confirm switch.

DomainController

Optional

Microsoft.Exchange.Data.Fqdn

The DomainController parameter specifies the fully qualified domain name (FQDN) of the domain controller that writes this configuration change to Active Directory.

ReplayLagTime

Optional

Microsoft.Exchange.Data.EnhancedTimeSpan

The ReplayLagtime parameter specifies the amount of time that the Microsoft Exchange Replication Service should wait before replaying log files that have been copied to the database copy location. The format for this parameter is (Days.Hours:Minutes:Seconds). The default setting for this value is 0 seconds. The maximum allowable setting for this value is 14 days. The minimum allowable setting is 0 seconds.

SeedingPostponed

Optional

System.Management.Automation.SwitchParameter

Use of the SeedingPostponed parameter results in the task not seeding the database copy. You must then explicitly seed the database copy.

TruncationLagTime

Optional

Microsoft.Exchange.Data.EnhancedTimeSpan

The TruncationLagTime parameter specifies the amount of time that the Microsoft Exchange Replication Service should wait before truncating log files that have replayed into a copy of the database. The time period begins after the log has been successfully replayed into the copy of the database. The format for this parameter is (Days.Hours:Minutes:Seconds). The maximum allowable setting for this value is 14 days. The minimum allowable setting is 0 seconds, although setting this value to 0 seconds effectively eliminates any delay in log truncation activity.

WhatIf

Optional

System.Management.Automation.SwitchParameter

The WhatIf switch instructs the command to simulate the actions that it would take on the object. By using the WhatIf switch, you can view what changes would occur without having to apply any of those changes. You don't have to specify a value with the WhatIf switch.

After running the Add-MailboxDatabaseCopy cmdlet, the new copy will remain in a Suspended state if the SeedingPostponed parameter is specified. When the database copy status is set to Suspended, the SuspendMessage is set to "Replication is suspended for database copy '{0}' because database needs to be seeded."

You need to be assigned permissions before you can run this cmdlet. Although all parameters for this cmdlet are listed in this topic, you may not have access to some parameters if they're not included in the permissions assigned to you. To see what permissions you need, see the"Mailbox database copy" entry in the High Availability Permissions topic.

Error Description

 

 

This example adds a copy of mailbox database DB1 to a Mailbox server named MBX3. Replay lag time and truncation lag time are configured with values of 10 minutes and 15 minutes, respectively. The activation preference is configured with a value of 2.

Add-MailboxDatabaseCopy -Identity DB1 -MailboxServer MBX3 -ReplayLagTime 00:10:00 -TruncationLagTime 00:15:00 -ActivationPreference 2

This example adds a copy of mailbox database DB2 to a Mailbox server named MBX1. Replay lag time and truncation lag time are left at the default values of zero, and the activation preference is configured with a value of 3.

Add-MailboxDatabaseCopy -Identity DB2 -MailboxServer MBX1 -ActivationPreference 3

This example adds a copy of mailbox database DB3 to a Mailbox server named MBX4. Replay lag time and truncation lag time are left at the default values of zero, and the activation preference is configured with a value of 5. In addition, seeding is being postponed for this copy so that it can be seeded using a local source server instead of the current active database copy, which is geographically distant from MBX4.

Add-MailboxDatabaseCopy -Identity DB3 -MailboxServer MBX4 -ActivationPreference 5 -SeedingPostponed
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft