SharePoint 2013 Distributed Cache Service错误和解决办法

接上篇 SharePoint 2013 SPDistributedCacheService 介绍与配置

本文介绍常见 Distributed Cache Service错误和解决办法.

1.  ErrorCode<ERRCAdmin010>:SubStatus<ES0001>:Specified host is not present in cluster.

PS C:> Use-CacheCluster
PS C:> Get-CacheHostConfig –ComputerName [yourServerName] -CachePort 22233

该错误通常在没有加入Cluster 的机器上运行以上命令时抛出,解决办法为将该机器注册到Cluster 中: 

PS C:> Register-CacheHost –Provider [yourProvider] –ConnectionString [yourConnectionString] -Account "NT AuthorityNetwork Service" -CachePort 22233 -ClusterPort 22234 -ArbitrationPort 22235 -ReplicationPort 22236 –HostName [yourServerName]

需要替换三个参数:

a. [yourProvider]  和 [yourProvider], 该参数可以在注册表HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\AppFabric\V1.0\Configuration节点下的ConnectionString 和 Provider中找到,或者在 C:\Program Files\AppFabric 1.1 for Windows Server 目录下的 DistributedCacheService.exe.config

b. -Account, 需要根据需要替换

c. [yourServerName] 为机器名 


如果遇到错误说该机器已经配置Cache,可以运行 Remove-SPDistributedCacheServiceInstance  -Graceful 


2. 运行  Get-CacheHost发现某个Host 的状态为Down 

PS C:> Get-CacheHost

You should see the following.

HostName : CachePort         Service Name            Service Status Version Info
——————–         ————            ————– ————
MyServer1.domain.com:22233   AppFabricCachingService UP             3 [3,3][1,3]
MyServer2.domain.com:22233   AppFabricCachingService UP             3 [3,3][1,3]

可以运行命令将其启动

PS C:> Start-CacheHost –ComputerName [yourServerName] –CachePort 22233

如果启动失败,检查该Host的"AppFabric Caching Service" 是否被禁用。

如果还是出错,则需要运行以下命令检查配置

PS C:> Export-CacheClusterConfig c\:CacheConfig.txt

找到错误修正后可以运行以下命令导入Cache Cluster 的配置

PS C:> Import-CacheClusterConfig C:\CacheConfig.txt

然后使用以下命令启动Cache cluster

PS C:> Start-CacheCluster

可以使用以下命令检查Cache cluster 是否存在问题

PS C:> Get-CacheClusterHealth
可以使用以下命令查看Cache的内容

Get-Cache


 



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值