如何在SharePoint 2013中移动Index文件的位置

本来就想只列一下参考链接就可以了, 但是经笔者亲自测试, 错误还是有点多, 笔者还是把经过测试的写在这里吧.

方便大家参考.

 

#Author: ZhongDaoXueYou
#Copyright: Help you, help me. 

#Get Serivce Application and Service Instance, to prepare parameters for below.
$ssa = Get-SPEnterpriseSearchServiceApplication
$IndexHost = Get-SPEnterpriseSearchServiceInstance -Identity "APP2-SPS2013"

#Get active topology. You might have more than one topologies, filter might be a good idea.
$currentActiveTopo = Get-SPEnterpriseSearchTopology -SearchApplication $ssa | Where-Object {$_.State -eq "Active"}

#Clone the topology.
$clone = New-SPEnterpriseSearchTopology -Clone -SearchApplication $ssa -SearchTopology $currentActiveTopo 

#Create a new index component to replace the old one.
New-SPEnterpriseSearchIndexComponent -SearchTopology $clone -IndexPartition 0 -SearchServiceInstance $IndexHost -RootDirectory C:\Index\IndexFolder

#Activate the new search topology
Set-SPEnterpriseSearchTopology -Identity $clone

#Verify that the new search topology is act
Get-SPEnterpriseSearchTopology -SearchApplication $ssa

#Verify that all components of the new search topology are running correctly
Get-SPEnterpriseSearchStatus -SearchApplication $ssa -Text
 

补充一点吧. 这里的脚本的目的是让存放Index文件的目录不放在C盘. 比如说你在你的后端存储上开辟了很多块盘组成的一个LUN, 希望将index存在这块速度快得多的空间上.

那么这里改的是Index Partition的存放位置, 那么Crawler本身也需要使用磁盘的, 确切的说是高达3MB以上的写IO. 那么里的存储如何优化呢?

答案就是, 运行这Crawler的机器上的SharePoint的安装位置需要进行配置. 如果你已经装好的SharePoint 2013, 你得在这台虚机上卸掉应用程序, 重装.

在File Location对话框的Search Index File location的部分填写路径即可.

 

参考资料

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

Move the search index location in SharePoint 2013

http://www.experts-exchange.com/blogs/ACH1LLES/B_7052-Move-the-search-index-location-in-SharePoint-2013.html

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

导航

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