显然,“验证”将通过失败来实际测试故障转移.但是命名“List”会让我觉得它只是在运行时对数据进行查询.我用以下脚本测试了这个:
$TestList = Test-Cluster -List | Where-Object {$_.DisplayName -like "List*"} Test-Cluster -Include $TestList.DisplayName -ReportName "c:\cluster reports\report"
生成此报告时,我没有看到任何已记录的群集错误或注意到任何故障转移活动. Microsoft technet对此也不是很清楚,但他们确实推断出这种行为符合我的想法.看这个摘录(强调我的):
Test results are captured in a file with the file name that you
specify. By running the validation tests,you can confirm that your
hardware and settings are compatible with Failover Clustering. There
are multiple types of tests,including Cluster,Inventory,Network,
Storage,System,and other types of tests. Storage tests will not test
online disks or storage pools that are in use by a clustered role. To
test such disks,first run Stop-ClusterGroup to stop the clustered
role,and then run Test-Cluster. After the tests are done,start the
clustered roles,also known as resource groups,again.
我想请你注意他们使用“验证”这个词.此外,在运行该脚本时,作为输出的一部分,它说:
Test Result: ClusterSkippedTestsCompleted
如果包含验证测试,则结果为:
Test Result: ClusterConditionallyApproved
在我的测试环境中,网络测试产生了一些警告,触发了条件批准.我已经搜索了相当多的文档来描述“验证”与“列表”拆分背后的逻辑,但我没有发现任何东西.这引出了一个问题……
列表请求是否会触发故障转移事件?