您的位置:首页 > 其它

在SharePoint 2013 场中移除服务器,提示 cacheHostInfo is null 错误

2015-03-02 00:00 369 查看

Problem

在SharePoint 2013 场中移除服务器,提示 cacheHostInfo is null 错误

Resolution

这是由于SharePoint 2013中分布式缓存实例(Distributed Cache)在此服务器上已被注册,如果需要将此服务器从SharePoint 场里移除,首先必须将分布式缓存实例在此服务器上删除。

所以,通过PowerShell,得到分布式缓存实例,然后将其删除即可。

获取实例名



删除此Distributed Cache实例(比如该实例在GCP-WEB 01这台服务器上被注册)



完整PowerShell 代码如下

Add-PSSnapin Microsoft.SharePoint.PowerShell $SPFarm = Get-SPFarm $cacheClusterName = "SPDistributedCacheCluster_" + $SPFarm.Id.ToString() $cacheClusterManager = [Microsoft.SharePoint.DistributedCaching.Utilities.SPDistributedCacheClusterInfoManager]::Local $cacheClusterInfo = $cacheClusterManager.GetSPDistributedCacheClusterInfo($cacheClusterName); $instanceName ="SPDistributedCacheService Name=AppFabricCachingService"
$serviceInstance = Get-SPServiceInstance | ? {($_.Service.Tostring()) -eq $instanceName -and ($_.Server.Name) -eq "Your Server Name"} $serviceInstance.Delete()
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐