Cachehostinfo is null - Error in WFE01 while configuring Distributed Cache in my multi server Prod.Farm

sharepoint.stackexchange https://sharepoint.stackexchange.com/questions/217404

Вопрос

Am trying t configure the DC-distributed cache for a WFE for my SP 2013 SP1 WITH APRIL 2017 CU - MULTISERVER farm but when i run the powershell cmdlets for creating the DC -Distributed Cache

Add-SPDistributedCacheServiceInstance

it thrown error:

cachehostinf is null

Update: now am getting

failed to connect to hosts in the cluster

cacheinfohostisnull

Это было полезно?

Решение

1st run this script to cleare all the running instances of the DC

$instanceName ="SPDistributedCacheService Name=AppFabricCachingService"  
$serviceInstance = Get-SPServiceInstance | ? {($_.service.tostring()) -eq $instanceName -and ($_.server.name) -eq $env:computername} 

If($serviceInstance -ne $null){ $serviceInstance.Delete()}

Now run this command and it should not show any thing

Get-SPServiceInstance | ? {($_.service.tostring()) -eq "SPDistributedCacheService Name=AppFabricCachingService"} | select Server, Status

Now make sure that appfabric service is stoped and start type disabled. Check it from services console.

Finally Run the

Add-SPDistributedCacheServiceInstance

Wait for minutes now check the status again.

Use-CacheCluster 
Get-CacheHost
Лицензировано под: CC-BY-SA с атрибуция
Не связан с sharepoint.stackexchange
scroll top