PowerShell 创建群集Failover Clustering
原创
©著作权归作者所有:来自51CTO博客作者丶_梓芮的原创作品,请联系作者获取转载授权,否则将追究法律责任
故障转移群集是一组独立的计算机,这些计算机相互协作以提高群集角色的可用性和可伸缩性。
如果一个或多个群集节点出现故障,其他节点就会开始提供服务--该过程称为故障转移。
此外,群集角色会得到主动监视以验证它们是否正常工作。 如果不工作,则会重新启动这些角色或将其移动到其他节点。
# Cluster Nodes
$hosts = "H2019-host01,H2019-host02"
# install Failover Cluster
$hosts.Split(',') | %{Invoke-Command -ComputerName $_ -ScriptBlock {Install-WindowsFeature -Name Failover-Clustering -IncludeManagementTools}}
# Restart Cluster Nodes
$hosts.Split(',') | %{Restart-Computer -ComputerName $_ -Force}
# Create Cluster And NoStorage
New-Cluster -Name Win_Clu01 -Node H2019-host01,H2019-host02 -StaticAddress 10.1.1.49 -NoStorage
Loading
Quoting: https://learn.microsoft.com/zh-cn/windows-server/failover-clustering/failover-clustering-overview