Topology activation failed. Each partition must have at least one index component from the previous topology in the new topology, in the same host.

在测试环境中, 如果在尝试修改search service application 的topology的时候, 遇到这样的报错:

PS C:\Users\administrator.P1119VSPEX> Set-SPEnterpriseSearchTopology -Identity $newTopology
Set-SPEnterpriseSearchTopology : Topology activation failed. Each partition must have at least one index component
from the previous topology in the new topology, in the same host. Otherwise this change could cause document loss.
At line:1 char:1
+ Set-SPEnterpriseSearchTopology -Identity $newTopology
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (Microsoft.Offic...tSearchTopology:SetSearchTopology) [Set-SPEnterpriseSea
   rchTopology], SearchTopologyActivationException
    + FullyQualifiedErrorId : Microsoft.Office.Server.Search.Cmdlet.SetSearchTopology

 

image

 

解决方案

=============================

最佳解决方案应该是修改的同时保持原来的index component, Apply一次. 然后移除原来的index comonent, 再Apply一次.

由于笔者的是个测试环境, 所以不存在索引服务受干扰的问题, 所以直接就reset了index.

再次尝试apply命令Set-SPEnterpriseSearchTopology, 也成功的完成了!

 

所以如果图省事, 那么reset index也可以解决这个报错了.

posted on 2013-04-22 10:43  中道学友  阅读(1374)  评论(0编辑  收藏  举报

导航

技术追求准确,态度积极向上