Stop-ServiceFabricNode cmdlet导致Azure Service Fabric Cluster连接无法响应

时间:2016-10-25 15:45:12

标签: powershell azure azure-service-fabric cmdlets

我想停止其中一个服务结构群集资源(包含5个节点)的节点,因此我使用了Stop-ServiceFabricNode。我成功完成了3个节点,第4个节点导致我的PowerShell ISE挂起,我不得不在中途取消它。之后我无法连接到我的服务结构实例。

当我尝试使用Connect-ServiceFabricCluster时,我收到错误消息:

WARNING: Failed to contact Naming Service. Attempting to contact Failover Manager Service...
WARNING: Failed to contact Failover Manager Service, Attempting to contact FMM...
False
WARNING: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed becau
se connected host has failed to respond <IP>
Connect-serviceFabricCluster : No cluster endpoint is reachable, please check if there is connectivity/firewall/DNS issue.
At line:1 char:1
+ Connect-serviceFabricCluster -ConnectionEndpoint "<resourcename>.w ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Connect-ServiceFabricCluster], FabricException
    + FullyQualifiedErrorId : TestClusterConnectionErrorId,Microsoft.ServiceFabric.Powershell.ConnectCluster

请告诉我如何启用连接。

1 个答案:

答案 0 :(得分:0)

您通过PowerShell与之交谈的REST API将在您关闭的节点上运行。在某些时候他们不再可用:

  

Stop-ServiceFabricNode cmdlet将停止您指定的节点   通过停止Fabric.exe进程停止NodeName参数   托管在其上的所有系统服务和用户服务副本   Service Fabric节点。

以下选项之一可能有效。希望选项1:

  1. 所有已停止的节点中的RDP,并使用指向节点IP地址和端口的IpAddressOrFQDN和ClusterConnectionPort执行Start-SeviceFabricNode script
  2.   

    Start-ServiceFabricNode cmdlet启动由指定的节点   已使用停止的NodeName参数   Stop-ServiceFabricNode cmdlet

    危险区域:

    1. 从Azure门户中,重新启动VM比例集。 可能会导致数据丢失
    2. 从Azure门户重新分配您的VM比例集。 会导致数据丢失
    3. 重新创建群集会导致数据丢失
相关问题