Windows AppFabric - 重命名服务器,配置现在不加载

时间:2011-04-19 14:05:16

标签: powershell appfabric

我的原始服务器名为xyz,配置如下: \ XYZ \ AppFabricConfig \ ClusterConfig.xml

我们重命名了服务器,它现在被称为123,但配置仍然指向 \ XYZ \ AppFabricConfig \ ClusterConfig.xml

尝试加载时出现以下错误:

Use-CacheCluster : ErrorCode<ERRCMS0001>:SubStatus<ES0001>:Error while trying t
o load configuration: An error occurred loading a configuration file: Logon fai
lure: unknown user name or bad password.
 (\\xyz\AppFabricConfig\ClusterConfig.xml)
At line:1 char:62
+ Import-Module DistributedCacheAdministration;Use-CacheCluster <<<<
    + CategoryInfo          : NotSpecified: (:) [Use-CacheCluster], DataCacheE
   xception
    + FullyQualifiedErrorId : ERRCMS0001,Microsoft.ApplicationServer.Caching.C
   ommands.UseCacheClusterCommand

我手动编辑了以下文件: C:\ Windows \ System32下\ AppFabric中\ DistributedCacheService.exe.config

并设置:configuration / dataCacheConfig / clusterConfig connectionString =“\ 123 \ AppFabricConfig \ ClusterConfig.xml”

但它还在尝试加载: \ XYZ \ AppFabricConfig \ ClusterConfig.xml

难倒 - 接近重新安装,但真的不喜欢!

1 个答案:

答案 0 :(得分:1)

在后视图中,处理此问题的最佳方法是使用remove-cachehost和remove-cacheadmin取消配置主机,重命名服务器,然后运行配置向导或运行add-cachehost和add-cacheadmin。

连接字符串也存在于注册表中,也在那里更改:本地机器\ software \ microsoft \ appfabric \ v1.0 \ configuration:connectionstring。

[编辑] 要从群集配置中删除/添加主机,还需要运行Register-cachehost和unregister-cachehost。