SQL Server 故障转移群集安装SQL Server Failover Cluster Installation

适用于:Applies to: 是SQL ServerSQL Server(所有支持的版本)yesSQL ServerSQL Server (all supported versions) 适用于:Applies to: 是SQL ServerSQL Server(所有支持的版本)yesSQL ServerSQL Server (all supported versions)

若要安装 SQL ServerSQL Server 故障转移群集,您必须通过运行 SQL ServerSQL Server 安装程序来创建并配置一个故障转移群集实例。To install a SQL ServerSQL Server failover cluster, you must create and configure a failover cluster instance by running SQL ServerSQL Server Setup.

安装故障转移群集Installing a Failover Cluster

若要安装故障转移群集,您必须使用具有本地管理员权限的域帐户,拥有作为服务登录的权限,并且拥有在故障转移群集的所有节点上作为操作系统的一部分进行操作的权限。To install a failover cluster, you must use a domain account with local administrator rights, permission to log on as a service, and to act as part of the operating system on all nodes in the failover cluster. 若要通过使用 SQL ServerSQL Server 安装程序来安装故障转移群集,请执行以下步骤:To install a failover cluster by using the SQL ServerSQL Server Setup program, follow these steps:

  1. 若要安装、配置和维护 SQL ServerSQL Server 故障转移群集,请使用 SQL ServerSQL Server 安装程序。To install, configure, and maintain a SQL ServerSQL Server failover cluster, use SQL ServerSQL Server Setup.

    • 确定创建故障转移群集实例(如群集磁盘资源、IP 地址和网络名称)和可用于故障转移的节点所需的信息。Identify the information you need to create your failover cluster instance (for example, cluster disk resource, IP addresses, and network name) and the nodes available for failover. 更多相关信息:For more information:

    • 必须在运行 SQL ServerSQL Server 安装程序之前完成这些配置步骤,可使用 Windows 群集管理器来执行操作。必须为要配置的各个故障转移群集实例设置一个 WSFC 组。The configuration steps must take place before you run the SQL ServerSQL Server Setup program; use the Windows Cluster Administrator to carry them out. You must have one WSFC group for each failover cluster instance you want to configure.

    • 您必须确保您的系统满足最低要求。You must ensure that your system meets minimum requirements. 有关 SQL ServerSQL Server 故障转移群集的具体要求的详细信息,请参阅 安装故障转移群集前的准备工作For more information on specific requirements for a SQL ServerSQL Server failover cluster, see Before Installing Failover Clustering.

  2. 在故障转移群集配置中添加或删除节点而不影响其他群集节点。Add or remove nodes from a failover cluster configuration without affecting the other cluster nodes. 有关详细信息,请参阅在 SQL Server 故障转移群集中添加或删除节点(安装程序)For more information, see Add or Remove Nodes in a SQL Server Failover Cluster (Setup).

    • 故障转移群集中的所有节点都必须属于同一平台(可以是 32 位或 64 位平台),并且必须运行相同版本的操作系统。All nodes in a failover cluster must be of the same platform, either 32-bit or 64-bit, and must run the same operating system edition and version. 而且,64 位 SQL ServerSQL Server 版本必须安装在运行 64 位版本的 Windows 操作系统的 64 位硬件上。Also, 64-bit SQL ServerSQL Server editions must be installed on 64-bit hardware running the 64-bit versions of Windows operating systems. 此版本中不对故障转移群集提供 WOW64 支持。There is no WOW64 support for failover clustering in this release.
  3. 为每个故障转移群集实例指定多个 IP 地址。Specify multiple IP addresses for each failover cluster instance. 可以为每个子网指定多个 IP 地址。You can specify multiple IP addresses for each subnet. 如果多个 IP 地址在同一子网上,SQL ServerSQL Server 安装程序会将依赖关系设置为 AND。If the multiple IP addresses are on the same subnet, SQL ServerSQL Server Setup sets the dependency to AND. 如果您正在创建跨多个子网的群集节点,则 SQL ServerSQL Server 安装程序将依赖关系设置为 OR。If you are clustering nodes across multiple subnets, SQL ServerSQL Server Setup sets the dependency to OR.

  4. SQL Server 故障转移群集实例 (FCI) 要求群集节点加入域。SQL Server failover cluster instance (FCI) requires the cluster nodes to be domain joined. 不支持使用以下配置:The following configurations are not supported:

    • 工作组群集上的 SQL FCI。SQL FCI on workgroup clusters.
    • 多域群集上的 SQL FCI。SQL FCI on Multi-Domain cluster.
    • 域和工作组群集上的 SQL FCI。SQL FCI on Domain + Workgroup Clusters.

SQL ServerSQL Server 故障转移群集安装选项Failover Cluster Installation options

选项 1:带“添加节点”功能的集成安装Option 1: Integrated installation with Add Node

SQL ServerSQL Server 集成故障转移群集安装包括两个步骤:integrated failover cluster installation consists of two steps:

  1. 创建并配置单节点 SQL ServerSQL Server 故障转移群集实例。Create and configure a single-node SQL ServerSQL Server failover cluster instance. 在成功配置完该节点时,您将拥有一个功能齐全的故障转移群集实例。At the completion of a successful configuration of the node, you have a fully functional failover cluster instance. 此时,由于故障转移群集内仅有一个节点,因此它不具备高可用性。At this time it does not have high-availability because there is only one node in the failover cluster.

  2. 在要添加到 SQL ServerSQL Server 故障转移群集中的每个节点上,运行带“添加节点”功能的安装程序以添加该节点。On each node to be added to the SQL ServerSQL Server failover cluster, run Setup with Add Node functionality to add that node.

选项 2:高级/企业安装Option 2: Advanced/Enterprise installation

SQL ServerSQL Server 高级/企业故障转移群集安装包括两个步骤:Advanced/Enterprise failover cluster installation consists of two steps:

  1. 在将要成为 SQL ServerSQL Server 故障转移群集一部分的每个节点上,运行带“准备故障转移群集”功能的安装程序。On each node that will be part of the SQL ServerSQL Server failover cluster, run Setup with Prepare Failover Cluster functionality. 此步骤将准备好节点使其可以加入群集,但在此步骤结束时不会有可工作的 SQL ServerSQL Server 实例。This step prepares the nodes ready to be clustered, but there is no operational SQL ServerSQL Server instance at the end of this step.

  2. 在准备好节点以便加入群集后,使用“完成故障转移群集”功能在拥有共享磁盘的节点上运行安装程序。After the nodes are prepared for clustering, run Setup on the node that owns the shared disk with the Complete Failover Cluster functionality. 此步骤将配置并完成故障转移群集实例。This step configures and completes the failover cluster instance. 此步骤结束时,您将有一个可以工作的 SQL ServerSQL Server 故障转移群集实例。At the end of this step, you will have an operational SQL ServerSQL Server failover cluster instance.

    备注

    两种安装选项都允许多节点 SQL ServerSQL Server 故障转移群集安装。Either installation option allows for multi-node SQL ServerSQL Server failover cluster installation. 在创建了 SQL ServerSQL Server 故障转移群集后,“添加节点”功能可用于在任一安装选项下添加更多节点。Add Node can be used to add additional nodes for either option after a SQL ServerSQL Server failover cluster has been created.

    重要

    SQL ServerSQL Server 安装位置的操作系统驱动器号在添加到 SQL ServerSQL Server 故障转移群集的所有节点上必须匹配。The operating system drive letter for SQL ServerSQL Server install locations must match on all the nodes added to the SQL ServerSQL Server failover cluster.

在安装过程中配置 IP 地址IP Address Configuration During Setup

SQL ServerSQL Server 安装程序在以下操作期间允许您设置或更改 IP 资源依赖关系设置:Setup lets you set or change the IP resource dependency settings during the following actions:

注意 支持 IPV6 IP 地址。Note IPV6 IP addresses are supported. 如果您同时配置 IPV4 和 IPV6,将像对待不同的子网那样处理它们,IPV6 首先联机。If you configure both IPV4 and IPV6 there are treated like different subnets, and IPV6 is expected to come online first.

SQL ServerSQL Server 多子网故障转移群集Multi-Subnet Failover Cluster

当群集上的节点位于不同子网时,您可以设置 OR 依赖关系。You can set OR dependencies when the nodes on the cluster are on different subnets. 但是, SQL ServerSQL Server 多子网故障转移群集中的每个节点必须是至少一个指定的 IP 地址的可能所有者。However, each node in the SQL ServerSQL Server multi-subnet failover cluster must be a possible owner of at least one of IP address specified.

另请参阅See Also

安装故障转移群集前的准备工作 Before Installing Failover Clustering
创建新的 SQL Server 故障转移群集(安装程序) Create a New SQL Server Failover Cluster (Setup)
从命令提示符安装 SQL Server 2016 Install SQL Server 2016 from the Command Prompt
升级 SQL Server 故障转移群集实例Upgrade a SQL Server Failover Cluster Instance