zoukankan      html  css  js  c++  java
  • 如何在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

  • 相关阅读:
    Linux系统负载
    full nat
    close wait 状态的随想
    记录一下 性能分析问题
    golang 反射
    socket里面那个又爱又恨的锁
    Difference between skbuff frags and frag_list
    浅析TCP协议---转载
    http 怎样关闭
    http 响应 ngx_http_send_header ngx_http_output_filter
  • 原文地址:https://www.cnblogs.com/awpatp/p/2943556.html
Copyright © 2011-2022 走看看