虚拟化 频道

故障转移群集动手实验5:管理集群

  任务A:浏览 Windows PowerShell FailoverClusters Module

  步骤:

  本次练习,你将熟悉Windows PowerShell 用户界面,熟悉如何执行一些常规的任务.

  " 登陆计算机 BAL-DC-01

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

  1. 在 Start menu,在 Administrative Tools中, 单击 Windows PowerShell Modules.

  2. 为了能浏览failover clustering commands,在 PowerShell console中输入下列每行命令后,按回车:

  " You can press the UP ARROW key to recall a previous command and reduce typing.

  Get-Command -Module FailoverClusters

  Get-Command *Cluster*Node*

  Get-Help Add-ClusterNode -Example

  任务B:删除和添加 Cluster Nodes

  步骤:

  本次任务,用Windows PowerShell删除和添加 Cluster Nodes.

  " 登陆计算机 BAL-DC-01

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

  " 开启Windows PowerShell Module 窗口.

  1. 在 PowerShell console中输入下列每行命令后,按回车:

  " These commands will display the cluster nodes, remove BAL-NODE-0 and then add it back in again. When you remove BAL-NODE-02, click Yes to confirm the action.

  $Cluster = "Cluster.woodgrovebank.com"

  Get-ClusterNode -Cluster $Cluster

  Remove-ClusterNode -Cluster $Cluster BAL-NODE-02 -Force

  Get-ClusterNode -Cluster $Cluster

  Get-Cluster $Cluster | Add-ClusterNode BAL-NODE-02

  任务C:手工切换集群资源

  步骤:

  本次任务你将执行手工在节点间切换资源.

  " 登陆计算机 BAL-DC-01

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

  " 开启Windows PowerShell Module 窗口.

  1. 在 PowerShell console中输入下列每行命令后,按回车:

  " These commands will transfer the DHCP service to BAL-NODE-02.

  " You can observe the failover in the Cluster Management tool.

  $Cluster = "Cluster.woodgrovebank.com"

  Get-ClusterGroup -Cluster $Cluster

  Move-ClusterGroup ClusterDHCP -Cluster $Cluster -Node BAL-NODE-02

  Get-ClusterGroup -Cluster $Cluster

  任务D:运行 Cluster Validation Report

  步骤:

  本次任务,你将用Windows PowerShell 生成一个集群验证报告.

  " 登陆计算机 BAL-DC-01

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

  " 开启Windows PowerShell Module 窗口

  1. 在 PowerShell console中输入下列命令后,按回车:

  Test-Cluster -Node BAL-NODE-01, BAL-NODE-02 -Ignore Storage -ReportName c:\windows\cluster\reports\FinalValidationReport

  2. 当集群验证完成后,打开 c:\Windows\Cluster\Reports文件夹,查看最新创建的报告的详细信息.

  "  Running the validation wizard against an existing cluster will provide you with additional information in the report, including inventories, resource dependencies and suggest best practices based on how your have configured your highly-available resources.

 

0
相关文章