博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
笔者亲自测试通过的修改SharePoint 2013的Topology脚本记录
阅读量:6709 次
发布时间:2019-06-25

本文共 2776 字,大约阅读时间需要 9 分钟。

#2013-08-26 更新#Author: ZhongDaoXueYou#Copyright: 反正也是抄微软的, 大家随便用.#Routine Starts Hereif ((Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue) -eq $null) {    Add-PSSnapin "Microsoft.SharePoint.PowerShell"}$hostA = Get-SPEnterpriseSearchServiceInstance -Identity "APP1-SPS2013"$hostB = Get-SPEnterpriseSearchServiceInstance -Identity "APP2-SPS2013"Start-SPEnterpriseSearchServiceInstance -Identity $hostAStart-SPEnterpriseSearchServiceInstance -Identity $hostB#Wait until all the search service instances are running#Commands below should return "Online" for both servers.Get-SPEnterpriseSearchServiceInstance -Identity $hostAGet-SPEnterpriseSearchServiceInstance -Identity $hostB$ssa = Get-SPEnterpriseSearchServiceApplication$newTopology = New-SPEnterpriseSearchTopology -SearchApplication $ssa#Topology:#APP1: AdminComponent, CrawlComponent, ContentProcessingComponent,AnalyticsProcessingComponent#APP2: QueryProcessingComponent, IndexComponentNew-SPEnterpriseSearchAdminComponent -SearchTopology $newTopology -SearchServiceInstance $hostANew-SPEnterpriseSearchCrawlComponent -SearchTopology $newTopology -SearchServiceInstance $hostANew-SPEnterpriseSearchContentProcessingComponent -SearchTopology $newTopology -SearchServiceInstance $hostANew-SPEnterpriseSearchAnalyticsProcessingComponent -SearchTopology $newTopology -SearchServiceInstance $hostANew-SPEnterpriseSearchQueryProcessingComponent -SearchTopology $newTopology -SearchServiceInstance $hostBNew-SPEnterpriseSearchIndexComponent -SearchTopology $newTopology -SearchServiceInstance $hostB -IndexPartition 0#To prevent error message "Topology activation failed. Each partition must have at least one index component..."#"...from the previous topology in the new topology.",#You may need to reset index in your test environment before you move on.#Activate the new search topologySet-SPEnterpriseSearchTopology -Identity $newTopology#Verify that the new search topology is active, and get the old topology's IDGet-SPEnterpriseSearchTopology -SearchApplication $ssa#Remove the old topology object. Replace the ID with your own$oldTopology = Get-SPEnterpriseSearchTopology -SearchApplication $ssa -Identity 35ef8906-b5f2-48bf-a3e5-8b53bdcb69eaRemove-SPEnterpriseSearchTopology -Identity $oldTopology#Verify that all components of the new search topology are running correctlyGet-SPEnterpriseSearchStatus -SearchApplication $ssa -Text

 

运行结果

 

2013-08-26 更新 运行完脚本后, 可能会发现有些component(比如Index component需要拷贝索引, Admin component需要一些额外的配置)的状态是黄色的三角叹号, 不用担心, 等一下就会变为正常的绿色小勾了.

如果长时间保持黄色的叹号图标, 请检查你的index分区是否还有足够空间. 如果还不行, 就得查看SharePoint 日志排错了.

 

参考资料

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

Add Microsoft.SharePoint.PowerShell Snap-In to All PowerShell Windows

Change the default search topology in SharePoint Server 2013

转载地址:http://veflo.baihongyu.com/

你可能感兴趣的文章
jQuery的deferred对象详解
查看>>
redis 学习笔记一
查看>>
批处理最完整人性化教程
查看>>
h5新增属性
查看>>
版本制作自动化方案
查看>>
vue-cli在控制台创建vue项目时乱码的问题
查看>>
vs2012 下asp.net 引用vs2012创建项目中的类生成的Dll文件
查看>>
绿题大集合
查看>>
Nginx 从入门到放弃(四)
查看>>
K8S 二进制部署
查看>>
剑指offer——面试题20:表示数值的字符串
查看>>
django01简单介绍
查看>>
console引起的eclipse 僵死/假死 问题排查及解决[转]
查看>>
android aidl通信 RemoteCallbackList客户端注册回调
查看>>
http://www.cnblogs.com/wuhuisheng/category/257549.html
查看>>
javascript研究小组知识库
查看>>
css图标与文字对齐实现方法
查看>>
nginx 403 forbidden centos
查看>>
Unity 虚拟摇杆的实现
查看>>
JS之路——数组对象
查看>>