Changing Search Topology in SharePoint 2013 - Run all 6 components in 2 App Servers

Ref Links:

This link is to split and run across 4 servers
https://technet.microsoft.com/en-us/library/jj862356(v=office.15).aspx

This link is to run same 6 components in 2 servers
http://blog.fpweb.net/modify-search-topology-in-sharepoint-server-2013/


$hostA = Get-SPEnterpriseSearchServiceInstance -Identity "SGTCX-SP2APP01"
$hostB = Get-SPEnterpriseSearchServiceInstance -Identity "SGTCX-SP2APP02"
Start-SPEnterpriseSearchServiceInstance -Identity $hostA
Start-SPEnterpriseSearchServiceInstance -Identity $hostB


Get-SPEnterpriseSearchServiceInstance -Identity $hostA
Get-SPEnterpriseSearchServiceInstance -Identity $hostB

$ssa = Get-SPEnterpriseSearchServiceApplication
$newTopology = New-SPEnterpriseSearchTopology -SearchApplication $ssa


New-SPEnterpriseSearchAdminComponent -SearchTopology $newTopology -SearchServiceInstance $hostA
New-SPEnterpriseSearchCrawlComponent -SearchTopology $newTopology -SearchServiceInstance $hostA
New-SPEnterpriseSearchContentProcessingComponent -SearchTopology $newTopology -SearchServiceInstance $hostA
New-SPEnterpriseSearchAnalyticsProcessingComponent -SearchTopology $newTopology -SearchServiceInstance $hostA
New-SPEnterpriseSearchQueryProcessingComponent -SearchTopology $newTopology -SearchServiceInstance $hostA
New-SPEnterpriseSearchIndexComponent -SearchTopology $newTopology -SearchServiceInstance $hostA -IndexPartition 0

New-SPEnterpriseSearchAdminComponent -SearchTopology $newTopology -SearchServiceInstance $hostB
New-SPEnterpriseSearchCrawlComponent -SearchTopology $newTopology -SearchServiceInstance $hostB
New-SPEnterpriseSearchContentProcessingComponent -SearchTopology $newTopology -SearchServiceInstance $hostB
New-SPEnterpriseSearchAnalyticsProcessingComponent -SearchTopology $newTopology -SearchServiceInstance $hostB
New-SPEnterpriseSearchQueryProcessingComponent -SearchTopology $newTopology -SearchServiceInstance $hostB
New-SPEnterpriseSearchIndexComponent -SearchTopology $newTopology -SearchServiceInstance $hostB -IndexPartition 0

Set-SPEnterpriseSearchTopology -Identity $newTopology

Get-SPEnterpriseSearchTopology -SearchApplication $ssa

Get-SPEnterpriseSearchStatus -SearchApplication $ssa -Text


Now stop in the other app servers

Stop-SPEnterpriseSearchServiceInstance -Identity "SGTCX-SP1APP01" (Where central admin is present)
Stop-SPEnterpriseSearchServiceInstance -Identity "SGTCX-SP1APP02" (Where central admin and other services are running)

$ssa = Get-SPServiceApplication –Name “Search Service Application”
$active = Get-SPEnterpriseSearchTopology -SearchApplication $ssa -Active
Get-SPEnterpriseSearchComponent -SearchTopology $active

The above 3 cmdlets are for finding index location, if the RootDirectory is not returning any results, then run the below 2 cmdlets


$ssa = Get-SPEnterpriseSearchServiceApplication
$ssa.AdminComponent.IndexLocation

This should show the correct Path. If you are not happy with this path, then run the below command to set the Index location to a drive which has more space.

Set-SPEnterpriseSearchServiceInstance -DefaultIndexLocation "D:\SP Search Index"


Comments

Popular posts from this blog

Using External Content Types with Stored Procedures with Input Parameters

Comparison of Power BI Service vs. Power BI Report Server vs. SQL Server Reporting Services