How do I remove 1 index partition while preserving the index?

Got this - how do I delete the Index partition so I don't have the (2) - while I preserve the content of the index? 

May 22nd, 2015 2:43am

Hi,

Could you find the ComponentID of the index replica (2) of Index Partition 0 with the PowerShell script as below?

$ssa = Get-SPEnterpriseSearchServiceApplication
$active = Get-SPEnterpriseSearchTopology -SearchApplication $ssa -Active
Get-SPEnterpriseSearchComponent -SearchTopology $active

Also please show me the result.

If you can find the ComponentID, you can remove it with the following PowerShell script:

$ssa = Get-SPEnterpriseSearchServiceApplication
$active = Get-SPEnterpriseSearchTopology -SearchApplication $ssa -Active
$clone = New-SPEnterpriseSearchTopology -SearchApplication $ssa -Clone SearchTopology $active

# Remove Search Component
Remove-SPEnterpriseSearchComponent -Identity "ComponentID" -SearchTopology $clone -confirm:$false

# Activate  Search Topology Again
Set-SPEnterpriseSearchTopology -Identity $clone

Reference:

http://stevemannspath.blogspot.com/2013/05/sharepoint-2013-search-moving-index.html

http://sharepoint.stackexchange.com/questions/103834/sharepoint-2013-degraded-index-partition-index-out-of-sync-catching-up

Best Regards,

Eric

Free Windows Admin Tool Kit Click here and download it now
May 25th, 2015 9:57am

Hi Eric 

Thank you for answering - The TopologyID and ServerID (all correct) - and if I try to remove the one I think it is:         IndexComponent12

On the WFE1 I've got 2 index folders that each takes a lot of diskspace - it's this that I'm trying to fix

I get an error:

Remove-SPEnterpriseSearchComponent : Sequence contains no elements

----------------------------------------------------------

NumProcessingTasksInParallel : 4
MaxSortMemoryInMB            : 40
ComponentId                  : 4d8dc631-0e17-4734-a538-0bdcd0ffd3a5
Name                         : AnalyticsProcessingComponent1
ServerName                   : APP1

ComponentId : 71d9b59a-ac68-467b-bbdc-1c65ef9a34a4
Name        : CrawlComponent0
ServerName  : APP1

IndexPartitionOrdinal : 0
RootDirectory         : F:\SPSearchIndex
ComponentId           : 20c1e807-3840-4252-8c9d-21f6ca0b4c9f
Name                  : IndexComponent10
ServerName            : APP1

ComponentId : 0f72988f-9994-4f39-bdd9-479244a196df
Name        : ContentProcessingComponent1
ServerName  : APP1

ComponentId : ef5386c1-6699-4fa5-b3b5-73e5bd304e8c
Name        : QueryProcessingComponent1
ServerName  : APP1

ComponentId : fd685a15-25c4-48fe-8069-7aab89455cac
Name        : QueryProcessingComponent2
ServerName  : WFE1

ComponentId : 454ce0ca-2de6-4c13-92b9-b3a3df99ca8e
Name        : CrawlComponent1
ServerName  : WFE1

IndexPartitionOrdinal : 1
RootDirectory         : 
ComponentId           : 64121634-d258-4628-84dd-bb44c8e7f18d
Name                  : IndexComponent9
ServerName            : WFE1

ComponentId : ac09adf6-74de-48bf-8ce9-c8f4911c564f
Name        : ContentProcessingComponent2
ServerName  : WFE1

NumProcessingTasksInParallel : 4
MaxSortMemoryInMB            : 40
ComponentId                  : ab85b87f-1d81-4b18-b5fb-cb615e3a9d71
Name                         : AnalyticsProcessingComponent2
ServerName                   : WFE1

IndexPartitionOrdinal : 0
RootDirectory         : F:\SPSearchIndex
ComponentId           : c8a50fa2-9a2e-447a-9099-dc2c1a5407c3
Name                  : IndexComponent11
ServerName            : WFE1

ComponentId : 11f456ae-eaf9-444d-9610-de06efede996
Name        : AdminComponent1
ServerName  : APP1

IndexPartitionOrdinal : 0
RootDirectory         : F:\SearchIndexSP
ComponentId           : 14ed4198-fb31-4aab-906c-fb0c6b850044
Name                  : IndexComponent12
ServerName            : WFE1


  • Edited by JmATK 1 hour 36 minutes ago
May 26th, 2015 1:41am

Hi Eric 

Thank you for answering - The TopologyID and ServerID (all correct) - and if I try to remove the one I think it is:         IndexComponent12

On the WFE1 I've got 2 index folders that each takes a lot of diskspace - it's this that I'm trying to fix

I get an error:

Remove-SPEnterpriseSearchComponent : Sequence contains no elements

----------------------------------------------------------

NumProcessingTasksInParallel : 4
MaxSortMemoryInMB            : 40
ComponentId                  : 4d8dc631-0e17-4734-a538-0bdcd0ffd3a5
Name                         : AnalyticsProcessingComponent1
ServerName                   : APP1

ComponentId : 71d9b59a-ac68-467b-bbdc-1c65ef9a34a4
Name        : CrawlComponent0
ServerName  : APP1

IndexPartitionOrdinal : 0
RootDirectory         : F:\SPSearchIndex
ComponentId           : 20c1e807-3840-4252-8c9d-21f6ca0b4c9f
Name                  : IndexComponent10
ServerName            : APP1

ComponentId : 0f72988f-9994-4f39-bdd9-479244a196df
Name        : ContentProcessingComponent1
ServerName  : APP1

ComponentId : ef5386c1-6699-4fa5-b3b5-73e5bd304e8c
Name        : QueryProcessingComponent1
ServerName  : APP1

ComponentId : fd685a15-25c4-48fe-8069-7aab89455cac
Name        : QueryProcessingComponent2
ServerName  : WFE1

ComponentId : 454ce0ca-2de6-4c13-92b9-b3a3df99ca8e
Name        : CrawlComponent1
ServerName  : WFE1

IndexPartitionOrdinal : 1
RootDirectory         : 
ComponentId           : 64121634-d258-4628-84dd-bb44c8e7f18d
Name                  : IndexComponent9
ServerName            : WFE1

ComponentId : ac09adf6-74de-48bf-8ce9-c8f4911c564f
Name        : ContentProcessingComponent2
ServerName  : WFE1

NumProcessingTasksInParallel : 4
MaxSortMemoryInMB            : 40
ComponentId                  : ab85b87f-1d81-4b18-b5fb-cb615e3a9d71
Name                         : AnalyticsProcessingComponent2
ServerName                   : WFE1

IndexPartitionOrdinal : 0
RootDirectory         : F:\SPSearchIndex
ComponentId           : c8a50fa2-9a2e-447a-9099-dc2c1a5407c3
Name                  : IndexComponent11
ServerName            : WFE1

ComponentId : 11f456ae-eaf9-444d-9610-de06efede996
Name        : AdminComponent1
ServerName  : APP1

IndexPartitionOrdinal : 0
RootDirectory         : F:\SearchIndexSP
ComponentId           : 14ed4198-fb31-4aab-906c-fb0c6b850044
Name                  : IndexComponent12
ServerName            : WFE1


  • Edited by JmATK 1 hour 25 minutes ago
Free Windows Admin Tool Kit Click here and download it now
May 26th, 2015 1:47am

Hi,

I can see that there are three Index Components in your WFE1 server and you want to remove Index Component 12 whose ComponentId is 14ed4198-fb31-4aab-906c-fb0c6b850044.

So please check your PowerShell Script as below:

$ssa = Get-SPEnterpriseSearchServiceApplication
$active = Get-SPEnterpriseSearchTopology -SearchApplication $ssa -Active
$clone = New-SPEnterpriseSearchTopology -SearchApplication $ssa -Clone SearchTopology $active

# Remove Search Component
Remove-SPEnterpriseSearchComponent -Identity 14ed4198-fb31-4aab-906c-fb0c6b850044 -SearchTopology $clone -confirm:$false

# Activate  Search Topology Again
Set-SPEnterpriseSearchTopology -Identity $clone

Best Regards,

May 26th, 2015 3:33am

Hi Eric 

Thank you for answering - The TopologyID and ServerID (all correct) - and if I try to remove the one I think it is:         IndexComponent12

On the WFE1 I've got 2 index folders that each takes a lot of diskspace - it's this that I'm trying to fix

I get an error:

Remove-SPEnterpriseSearchComponent : Sequence contains no elements

----------------------------------------------------------

NumProcessingTasksInParallel : 4
MaxSortMemoryInMB            : 40
ComponentId                  : 4d8dc631-0e17-4734-a538-0bdcd0ffd3a5
Name                         : AnalyticsProcessingComponent1
ServerName                   : APP1

ComponentId : 71d9b59a-ac68-467b-bbdc-1c65ef9a34a4
Name        : CrawlComponent0
ServerName  : APP1

IndexPartitionOrdinal : 0
RootDirectory         : F:\SPSearchIndex
ComponentId           : 20c1e807-3840-4252-8c9d-21f6ca0b4c9f
Name                  : IndexComponent10
ServerName            : APP1

ComponentId : 0f72988f-9994-4f39-bdd9-479244a196df
Name        : ContentProcessingComponent1
ServerName  : APP1

ComponentId : ef5386c1-6699-4fa5-b3b5-73e5bd304e8c
Name        : QueryProcessingComponent1
ServerName  : APP1

ComponentId : fd685a15-25c4-48fe-8069-7aab89455cac
Name        : QueryProcessingComponent2
ServerName  : WFE1

ComponentId : 454ce0ca-2de6-4c13-92b9-b3a3df99ca8e
Name        : CrawlComponent1
ServerName  : WFE1

IndexPartitionOrdinal : 1
RootDirectory         : 
ComponentId           : 64121634-d258-4628-84dd-bb44c8e7f18d
Name                  : IndexComponent9
ServerName            : WFE1

ComponentId : ac09adf6-74de-48bf-8ce9-c8f4911c564f
Name        : ContentProcessingComponent2
ServerName  : WFE1

NumProcessingTasksInParallel : 4
MaxSortMemoryInMB            : 40
ComponentId                  : ab85b87f-1d81-4b18-b5fb-cb615e3a9d71
Name                         : AnalyticsProcessingComponent2
ServerName                   : WFE1

IndexPartitionOrdinal : 0
RootDirectory         : F:\SPSearchIndex
ComponentId           : c8a50fa2-9a2e-447a-9099-dc2c1a5407c3
Name                  : IndexComponent11
ServerName            : WFE1

ComponentId : 11f456ae-eaf9-444d-9610-de06efede996
Name        : AdminComponent1
ServerName  : APP1

IndexPartitionOrdinal : 0
RootDirectory         : F:\SearchIndexSP
ComponentId           : 14ed4198-fb31-4aab-906c-fb0c6b850044
Name                  : IndexComponent12
ServerName            : WFE1


  • Edited by JmATK Tuesday, May 26, 2015 6:10 AM
Free Windows Admin Tool Kit Click here and download it now
May 26th, 2015 5:40am

Hi Eric 

trying - but getting this

Remove-SPEnterpriseSearchComponent : Sequence contains no elements
At line:1 char:1
+ Remove-SPEnterpriseSearchComponent -Identity 14ed4198-fb31-4aab-906c-fb0c6b85004 ... 

May 26th, 2015 11:16am

Hi,

How about the PowerShell script as below:

$ssa = Get-SPEnterpriseSearchServiceApplication
$active = Get-SPEnterpriseSearchTopology -SearchApplication $ssa -Active
$clone = New-SPEnterpriseSearchTopology -SearchApplication $ssa -Clone SearchTopology $active

# Get the Index Search Component ID To Remove
$indexComponentID = (Get-SPEnterpriseSearchComponent -SearchTopology $clone -Identity IndexComponent12).componentID

# Remove Search Component
Remove-SPEnterpriseSearchComponent -Identity $indexComponentID.GUID -SearchTopology $clone -confirm:$false
# Activate  Search Topology
Set-SPEnterpriseSearchTopology -Identity $clone

Best Regards,

Eric

Free Windows Admin Tool Kit Click here and download it now
May 27th, 2015 3:10am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics