Configure mailbox database copy properties in Exchange Server

Each mailbox database copy has its own properties, which you can configure. These properties include the amount of time, if any, for replay lag and truncation lag, and the activation preference number. For more information about replay lag, truncation lag and, the activation preference number, see Manage mailbox database copies.

What do you need to know before you begin?

Tip

Having problems? Ask for help in the Exchange forums. Visit the forums at: Exchange Server, Exchange Online, or Exchange Online Protection.

Use the EAC to configure mailbox database copy properties

  1. In the EAC, go to Servers > Databases.

  2. Select the database you want to configure.

  3. In the Details pane, under Database Copies, click View details for the desired database copy, and then view or configure the following:

    • Database: Displays the name of the selected database.

    • Mailbox server: Displays the name of the Mailbox server that hosts the selected database copy.

    • Content index state: Displays the current state of the content index for the selected database copy.

    • Status: Displays the current status of the selected database copy.

    • Copy queue length: Indicates the number of log files waiting to be copied to the selected database copy. This field is relevant only for passive database copies.

    • Replay queue length: Indicates the number of log files waiting to be replayed into the selected database copy. This field is relevant only for passive database copies.

    • Error messages: Displays any error messages for database copies that have a status of Failed or Failed and Suspended.

    • Latest available log time: Displays the date and time stamp of the most recently generated log file on the active copy of the database. This field is relevant only for passive database copies. On active database copies (replicated and stand-alone), this field displays never.

    • Last inspected log time: Displays the date and time stamp of the last log file inspected by the LogInspector on the selected database copy. This field is relevant only for passive database copies. On active database copies (replicated and stand-alone), this field displays never.

    • Last copied log time: Displays the date and time stamp of the last log file copied by the LogCopier on the selected database copy. This field is relevant only for passive database copies. On active database copies (replicated and stand-alone), this field displays never.

    • Last replayed log time: Displays the date and time stamp of the last log file replayed by the LogReplayer into the selected database copy. This field is relevant only for passive database copies. On active database copies (replicated and stand-alone), this field displays never.

    • Activation preference number: Displays the activation preference number. This is used as part of Active Manager's best copy selection process, and used to balance the DAG by redistributing active mailbox databases throughout the DAG via the DAG's PreferenceMoveFrequency property. This property defines the frequency (measured in time) when the Microsoft Exchange Replication service rebalances database copies by performing a lossless switchover that activates the copy with an activation preference number of 1. The value for activation preference is a number equal to or greater than 1, where 1 is at the top of the preference order. The number can't be larger than the number of copies of the mailbox database.

    • Replay lag time (days): Displays the amount of time that the Microsoft Exchange Information Store service should wait before replaying log files copied by the Microsoft Exchange Replication service to the passive database copy. Setting this parameter to a value greater than 0 creates a lagged database copy. The default setting for this value is 0 days. The maximum allowable value for this setting is 14 days. The minimum allowable value is 0 days, and setting this value to 0 disables replay lag.

Use the Exchange Management Shell to configure mailbox database copy properties

This example configures a mailbox database copy with an activation preference number of 3.

Set-MailboxDatabaseCopy -Identity DB3\EX3 -ActivationPreference 3

This example configures a copy of the database DB1 hosted on Server1 with a replay lag time and truncation lag time of 1 day, and an activation preference number of 2.

Set-MailboxDatabaseCopy -Identity DB1\Server1 -ReplayLagTime 1.0:0:0 -TruncationLagTime 1.0:0:0 -ActivationPreference 2

How do you know this worked?

To verify that you successfully configured a mailbox database copy, do one of the options:

  • In the EAC, navigate to Servers > Databases. Select the appropriate database, and in the Details pane, click View details to view the database copy properties.

  • In the Exchange Management Shell, run the following command to display configuration information for a database copy.

    Get-MailboxDatabaseCopyStatus <DatabaseCopyName> | Format-List
    

For more information

Set-MailboxDatabaseCopy

Get-MailboxDatabaseCopyStatus

Get-MailboxDatabase