作为自动SQL Server安装过程的一部分,我想以编程方式检查Windows故障转移群集是否已经过validation。
有一些以编程方式validation集群的方法,例如Powershell cmdlet Test-Cluster ,但是我一直没能find一种方法来检查validation状态,而无需重新运行validation过程,validation过程可能很慢,对于某些testing需要使磁盘脱机。
有没有办法来检查validation状态,如可通过WMI,registry或Powershell cmdlet访问的属性?
如果是我,我想看看集群validation报告。 根据technet ,
To view the results of the tests after you close the wizard, choose one of the following: * Open the folder systemroot\Cluster\Reports (on a clustered server). * In the console tree, right-click the cluster, and then click View Validation Report. This displays the most recent validation report for that cluster.