虚拟化 频道

故障转移群集动手实验2:建立转移集群

  【IT168 虚拟化频道】故障转移群集(即服务器群集)是由单独的计算机组成的,用于改进应用和服务可用性的组合。集合的服务器(即节点)通过电缆或软件连接在一起。如果其中的一个节点出现了故障,则通过被称作故障转移的流程,使集群中的另一个节点接替故障节点的任务,确保对服务造成的影响最低。故障转移集群通常为需要为关键的服务应用提高可用性的IT人员所采用。在Windows server 2008中,对于故障转移群集的改进目的是为了简化集群,使他们更安全,更稳定。

  通过本系列动手实验,您可以了解到:如何配置 Windows Failover Clustering、如何创建高可用性文件服务器、如何创建一个高可性 DHCP Server、正确使用 Windows Failover Clustering PowerShell Cmdlets。

  前提条件

  要想完成试验,你必须具备:

  " 对SAN存储概念的理解

  " 对集群和高可性的理解

  试验概述

  本次试验将介绍如何用 Windows Server 2008 R2集群技术实现高可用性的过程. 现已有一个具有公共SAN存储的两节点的群集. 再此基础上,创建两个资源:文件服务器和DHCP服务器.当验证当前节点失败,另外节点正确响应后,你可以用新的集群管理命令集 PowerShell Cmdlets 实现一些基本的管理任务.

  场景

  Woodgrove Bank, Inc 是一家位于San Diego, USA 的医药公司,该公司有几个在线应用和架构服务希望运行在Windows Server 2008 R2 cluster 上,确保这些应用的高可 用性。公司已经购买了SAN存储设备并且和服务器节点已经连接好。

  虚拟机技术

  本试验使用基于Hyper-V的虚拟机,开启虚拟机之前,确保你应用正确的快照。当开启虚拟机后,参考试验手册中的登陆信息登陆到虚拟机。

  试验所用的机器

  下列是本次试验所用的虚拟机描述信息.
 

  虚拟机 Role

  R2Lab-BAL-DC-01 Domain Controller

  R2Lab-BAL-NODE-01 Cluster Node

  R2Lab-BAL-NODE-02 Cluster Node

  注意User Account Control

  试验中有些步骤需要用到UAC提升权限。

  本练习中,我们将建立一个新的 Windows Failover Cluster.首先配置两个节点,建立集群验证报告,然后使用集群管理工具执行一系列的测试,确保节点具备建立集群的条件 。最后将用 Failover Cluster Manager 建立一个新的failover cluster.

  任务A:验证集群配置(Validating a Cluster Configuration)

  步骤:

  集群验证向导执行扩展的测试,确保计算机具备配置集群和相关功能的条件.集群验证向导测试结果也可以保存成一个报告文件.

  " 登陆计算机 BAL-DC-01;

  " 用户名 Woodgrovebank\Administrator,密码 Passw0rd!

  1. 开始菜单,管理工具中选择 Failover Cluster Manager.

  2. 在 Failover Cluster Manager中 ,在Actions面板上,点击 Validate a Configuration.

  3. 在开始页面上,选择 Next.

  4. 在 Select Servers or a Cluster 页面, 在名称输入框中,输入 BAL-NODE-01 然后单击 Add.

  5. 在名称输入框中,输入 BAL-NODE-02, 单击 Add  然后选择单击 Next.

  6. 在 Testing Options页面,单击k Run only tests I select 然后单击 Next.

  a) You should always run a validation test before creating your cluster or making configuration changes to your cluster.

  7. 在 Tests 页面,在 test list中,不选择 Storage 后然后单击 Next.

  a) The storage tests are the most time-consuming tests and can take up to 8 minutes to complete in this lab. You are skipping these tests in this lab to save time. You should run the storage tests in a production environment.

  8. 单击 Next.

  9. 你能选择 View Report 按钮,浏览详细的验证报告.

  a) The report is saved in c:\users\administrator\AppData\Local\Temp\ and can be referred to at any time.

  b) To change the location of the validation report you can run the PowerShell command Test-Cluster

  10. 当测试完成后 ,点击 Finish.

  任务B:建立新的集群(Create a New Failover Cluster)

  步骤:

  在本任务中,你将利用集群管理工具建立一个新群集,集群管理工具可以集群中的任何一个节点上.

  " 登陆计算机 BAL-DC-01;

  " 用户名 Woodgrovebank\Administrator,密码 Passw0rd!

  " 打开 Failover Cluster Manager 管理工具.

  1. 在Failover Cluster Manager中 ,在  Actions面板上单击 Create a Cluster.

  2. 在 Create Cluster Wizard, 单击 Next.

  3. 在 Select Servers or a Cluster 页面, 在名称输入框中,输入 BAL-NODE-01 然后单击 Add.

  4. 在名称输入框中,输入 BAL-NODE-02, 单击 Add  然后选择单击 Next

  5. 单击 No 然后单击 Next.

  6. 在Access Point for Administering the Cluster页面, 在Cluster Name 处输入 Cluster, 在 Cluster IP Address处输入192.168.1.101, 然后单击 Next.

  a) If the cluster nodes are configured to acquire and address via DHCP, you are not required to enter an IP Address.

  b) Static IP addressing is being used in this lab to reduce the time required to start the Virtual Machines.

  7. 在 Confirmation page, 单击 Next, 一旦配置完成后,单击 Finish.

  8. 在Failover Cluster Manager,单击 Cluster.woodgrovebank.com.

  a) If cluster.woodgrovebank.com does not automatically appear, click Manage a Cluster and then click OK.

  9. 浏览Cluster and Cluster Core Resources 区域的汇总信息

  a) These areas contain information on the resources and status of the cluster.

 

0
相关文章