管理数据库可用性组成员身份Manage database availability group membership

适用于: Exchange Server 2013Applies to: Exchange Server 2013

将服务器添加到数据库可用性组(DAG)时,它将与 DAG 中的其他服务器配合使用,以提供来自数据库、服务器或网络故障的自动数据库级恢复。When you add a server to a database availability group (DAG), it works with the other servers in the DAG to provide automatic database-level recovery from database, server, or network failures. 从 DAG 中删除服务器时,不会再自动保护故障。When you remove a server from a DAG, it's no longer automatically protected from failures.

要查找与 DAG 相关的其他管理任务吗?Looking for other management tasks related to DAGs? 请查看管理数据库可用性组Check out Managing database availability groups.

在开始之前,您需要知道什么?What do you need to know before you begin?

  • 估计完成时间:每个服务器 5 分钟Estimated time to complete: 5 minutes per server

  • 您必须先获得权限,然后才能执行此过程或多个过程。若要查看所需的权限,请参阅 高可用性和站点恢复权限主题中的"数据库可用性组"条目。You need to be assigned permissions before you can perform this procedure or procedures. To see what permissions you need, see the "Database availability groups" entry in the High availability and site resilience permissions topic.

  • DAG 使用 Windows 故障转移群集 (WFC) 技术。作为 DAG 成员的每个邮箱服务器也是 DAG 使用的基础群集中的一个节点。因此,在任何特定时间,邮箱服务器都只能是一个 DAG 的成员。由于 DAG 使用 WFC 技术,所有添加到 DAG 的服务器必须运行相同的操作系统:Windows Server 2008 R2 Enterprise 或 Datacenter Edition,或者 Windows Server 2012 或 Windows Server 2012 R2 的 Standard 或 Datacenter Edition。DAGs use Windows Failover Clustering (WFC) technologies. Each Mailbox server that's a member of a DAG is also a node in the underlying cluster used by the DAG. As a result, at any specific time, a Mailbox server can be a member of only one DAG. Because DAGs use WFC technology, all servers added to a DAG must be running the same operating system: either Windows Server 2008 R2 Enterprise or Datacenter Edition, or the Standard or Datacenter Edition of Windows Server 2012 or Windows Server 2012 R2.

  • 在添加运行 Windows Server 2012 的邮箱服务器时,必须为 DAG 预留群集名称对象 (CNO)。如果您要添加运行 Windows Server 2012 R2 的邮箱服务器,并且 DAG 没有管理访问点,则您无需预暂存 CNO,因为没有管理访问点的 DAG 不含 CNO。有关详细步骤,请参阅为数据库可用性组预留群集名称对象If you're adding Mailbox servers running Windows Server 2012, you must pre-stage the cluster name object (CNO) for the DAG. If you're adding Mailbox servers running Windows Server 2012 R2, and your DAG does not have an administrative access point, then you do not need to pre-stage a CNO, as DAGs without administrative access points do not have a CNO. For detailed steps, see Pre-stage the cluster name object for a database availability group.

  • 在将成员添加到 DAG 之前,必须首先创建 DAG。有关详细步骤,请参阅创建数据库可用性组Before you can add members to a DAG, you must first create a DAG. For detailed steps, see Create a database availability group.

  • 只有先将所有复制的数据库副本从服务器中删除,才能将服务器从 DAG 中删除。You must remove all replicated database copies from the server before you can remove it from a DAG.

  • 若要了解可能适用于此主题中过程的键盘快捷键,请参阅 Exchange 管理中心内的键盘快捷键For information about keyboard shortcuts that may apply to the procedures in this topic, see Keyboard shortcuts in the Exchange admin center.

提示

是否有任何疑问?Having problems? 在 Exchange 论坛中寻求帮助。Ask for help in the Exchange forums. 访问Exchange Server上的论坛。Visit the forums at Exchange Server.

使用 EAC 管理数据库可用性组成员身份Use the EAC to manage database availability group membership

  1. In the EAC, go to Servers > Database Availability Groups.In the EAC, go to Servers > Database Availability Groups.

  2. 选择要配置的 DAG,然后单击 "管理 dag 成员"。Select the DAG you want to configure, and then click Manage DAG members.

    • 若要将一个或多个邮箱服务器添加到 DAG,请单击 "添加" 图标,从列表中选择服务器,单击 "添加",然后单击 "确定"To add one or more Mailbox servers to the DAG, click Add Icon, select the servers from the list, click Add, and then click OK.

    • 将一个或多个邮箱服务器从 DAG 删除,选择服务器,然后单击减号 (-) 图标。To remove one or more Mailbox servers from the DAG, select the servers, and then click the minus (-) icon.

  3. 单击“保存”**** 以保存更改。Click Save to save the changes.

  4. 成功完成任务后,单击“关闭”****。When the task has completed successfully, click Close.

使用命令行管理程序管理数据库可用性组成员身份Use the Shell to manage database availability group membership

此示例向名为 DAG1 的 DAG 中添加邮箱服务器 MBX1。This example adds the Mailbox server MBX1 to the DAG DAG1.

Add-DatabaseAvailabilityGroupServer -Identity DAG1 -MailboxServer MBX1

此示例从名为 DAG1 的 DAG 中删除邮箱服务器 MBX1。运行此命令之前,请确保邮箱服务器上不存在任何复制数据库。This example removes the Mailbox server MBX1 from the DAG DAG1. Before running this command, make sure that no replicated databases exist on the Mailbox server.

Remove-DatabaseAvailabilityGroupServer -Identity DAG1 -MailboxServer MBX1

此示例从名为 DAG2 的 DAG 中删除邮箱服务器 MBX4 的配置设置。MBX4 应当在较长时间内保持脱机状态,这样才能在它处于脱机时从 DAG 中删除其配置,以便用剩余的联机 DAG 成员建立仲裁。This example removes the configuration settings for the Mailbox server MBX4 from the DAG DAG2. MBX4 is expected to be offline for an extended period, so its configuration is being removed from the DAG while it's offline to establish quorum with the remaining online DAG members.

Remove-DatabaseAvailabilityGroupServer -Identity DAG2 -MailboxServer MBX4 -ConfigurationOnly

您如何知道这有效?How do you know this worked?

验证是否已成功管理 DAG 成员身份,请执行以下操作之一:To verify that you've successfully managed DAG membership, do one of the following:

  • In the EAC, navigate to Servers > Database Availability Groups.In the EAC, navigate to Servers > Database Availability Groups. 当前 DAG 成员身份显示在“成员服务器”**** 列。The current DAG membership is displayed in the Member Servers column.

  • 在 Shell 中,运行以下命令以显示 DAG 成员身份信息。In the Shell, run the following command to display DAG membership information.

    Get-DatabaseAvailabilityGroup <DAGName> | Format-List Servers
    

详细信息For more information

外接 Add-databaseavailabilitygroupserverAdd-DatabaseAvailabilityGroupServer

Add-databaseavailabilitygroupserverRemove-DatabaseAvailabilityGroupServer