New-Cluster远程安装Windows故障转移群集

时间:2020-08-06 20:07:37

标签: windows powershell failovercluster

我正在处理一个脚本,该脚本将从远程服务器上安装Windows故障转移群集 远程服务器托管Windows Server 2016。 群集包含Windows Server 2019的2个节点Node1和Node2

我从远程服务器运行到cmdlet下面,并且当节点OS为Win 2016时,它很好地创建了故障转移群集,没有任何错误,但是当节点OS为Windows Server 2019以及我从中运行远程服务器时cmdlet操作系统是2016,然后出现以下错误

New-Cluster -Name "newcluster" -Node "win201906","win201905" -StaticAddress "10.0.3.22"

The clustered role was not successfully created. For more information view the report file below.
Report file location: C:\windows\cluster\Reports\Create Cluster Wizard winclus2021 on 2020.08.06 At 19.32.37.htm
New-Cluster : An error occurred while performing the operation.
    An error occurred while creating the cluster 'winclus2021'.
    An error occurred creating cluster 'winclus2021'.
    The parameter is incorrect

包含错误的文件是通用的

enter image description here

作为替代方案,我想到了使用invoke-command在节点本身上运行new-cluster命令,但它会给出错误消息

Invoke-Command -ComputerName Servername {
        New-Cluster -Name $using:Clustername -Node $using:Clusternodes -StaticAddress $using:Clusip
}

There was an error adding node 'win201906' to the cluster
    You do not have administrative privileges on the server 'win201906.constosonet.com'.
    Attempted to perform an unauthorized operation.
At line:2 char:9
+         Invoke-Command -ComputerName $Reports[0].Servername {
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : PermissionDenied: (:) [New-Cluster], ClusterCmdletException
    + FullyQualifiedErrorId : UnauthorizedAccess,Microsoft.FailoverClusters.PowerShell.NewClusterCommand
    + PSComputerName        : win201905

以上权限错误不正确,因为我正在使用域加入的帐户(在两个节点上均为本地管理员)运行cmdlet。我已经在该远程服务器上使用相同的帐户登录。

能否请您提出一种从远程服务器创建群集的更好方法?因为上述两种方法似乎都难以实现

0 个答案:

没有答案